The system variable #L_IOStatus stores error information in the bottom 8 bits.
#L_IOStatus
S-No.
Model number of the unit where the error occurred is stored.
31.4.4.1 Error Code - FLEX NETWORK