Error state

If at the input "GetValu" a HIGH-signal is present, the function block reads the last error states. 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

Error

O WORD Access error
Count O WORD Number of states
State1 O STRING State part 1
State2 O STRING State part 2
BitSet O LONGLONG State mask

Parameters

The maximum number of readable states must be set using the function block (max 32/32 default).

Comments

"State1" and "State2" form a state string together. A STRING value represents a maximum of 17 characters. For this reason, longer strings will be split at a maximum of 2 STRING values. Any additional strings will be truncated.