Visual programming for not programmers

The last error in the Modbus

Block is used to display information about the last error in the exchange are tied to him by a slave. Output "ErrorCode" will be either the last error code or 0 if in the last exchange session there was no error. The output "New Error" at occurrence of each error to generate a long pulse in one cycle of the program.

Error codes:
Function is not supported - 1
Error requested address - 2
Slave master is not responding (timeout) - 244
Error CRC - 255