As seen in the runstopISO_TCP example it is possible to modify the runmode-state of the Simatic device. Is there also a way to only read the state the device is currently in?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The state is somewhere in the SZL-lists, which can also be read with libnodave. SZL-lists (system state lists) are organized by an id and an index. Refer to Siemens documentation to find out which id and index it is.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
As seen in the runstopISO_TCP example it is possible to modify the runmode-state of the Simatic device. Is there also a way to only read the state the device is currently in?
The state is somewhere in the SZL-lists, which can also be read with libnodave. SZL-lists (system state lists) are organized by an id and an index. Refer to Siemens documentation to find out which id and index it is.