Run state
If at the input "GetValu" a HIGH-signal is present, the function block reads the run state information. If an error occurs during the reading process, "Error" is displayed at the output.
Signals
Name | I/O | Type(s) | Function |
---|---|---|---|
GetValu | I | BIT | Activate reading |
I | WORD | Access error | |
Count | O | WORD | Number of states |
State1 | O | STRING | State part 1 |
State2 | O | STRING | State part 2 |
BitSet | O | LONGLONG | Mask of states |
Parameters
The maximum number of readable states must be set using the function block (max 32/32 default).
Comments
"State1" and "State2" together form a state string. A STRING -value represents a maximum of 17 characters. For this reason, longer strings will be a maximum of 2 STRING –split values. Any additional strings will be truncated.