You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@streampipes.apache.org by "tenthe (via GitHub)" <gi...@apache.org> on 2023/09/30 05:47:47 UTC
[I] Arrays are not supported for S7 PLCs
tenthe opened a new issue, #1980:
URL: https://github.com/apache/streampipes/issues/1980
### Body
Currently a user can not read arrays from an S7 PLC.
## Reason
In the current implementation, a user cannot read PLC values as arrays because the option is not provided through the GUI.
In PLC4X this can be done by appending the array information to the address configuration.
Since we concatenate the `Data-Type` (selected in a drop-down) to the `Start-Address` in the code, a user has no way to provide this information in the GUI.
Here is an example for an array: `%{Memory-Area}{Start-Address}:{Data-Type}[{array-size}]`.
## Open Questions
### How can we support arrays for each data type?
#### Possible solution:
For basic types we can use an array of this type.
**Sample event:**
```
{
'number': [1,2,3],
'string': ['a', 'b', 'c'],
'bool': [true, false, true]
}
```
### How is the user option displayed in the GUI?
Add a block of code where the user can add a new line for a new variable.
On the left is the variable name and on the right is the PLC4X S7 address.
**Sample:**
```
# VariableName=%{Memory-Area}{start-address}:{Data-Type}[{array-size}]
temperature=%DB3.DB0.0[BOOL]
```
### StreamPipes Committer
I acknowledge that I am a maintainer/committer of the Apache StreamPipes project.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampipes.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Arrays are not supported for S7 PLCs
Posted by "dominikriemer (via GitHub)" <gi...@apache.org>.
dominikriemer closed issue #1980: Arrays are not supported for S7 PLCs
URL: https://github.com/apache/streampipes/issues/1980
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampipes.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Arrays are not supported for S7 PLCs
Posted by "tenthe (via GitHub)" <gi...@apache.org>.
tenthe commented on issue #1980:
URL: https://github.com/apache/streampipes/issues/1980#issuecomment-1742680840
The variable `List<Map<String, String>> nodes` in `Plc4xS7Adapter` contained a list with the following entries in the map:
- plc_node_runtime_name
- plc_node_type
- plc_node_name
To unify this with the new alternative of the code block input I will change it to:
`List<Map<String, String>> nodes`, the key is the runtime name and the value is the PLC4X address
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampipes.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org