Download Language Reference Guide

Transcript
CHN1 (continued)
Communications Error Flag (RS-485)
Related
Commands:
CHN
CHN0
RCHN
RCHN0
RCHN1
Example:
Host transmitted A=100 but the serial port actually received K=100 then tried to
execute K=100
PRINT(CHN1) 'responds to host with 4
'since K= is invalid
Example: (test individual flags)
IF CHN1&4
PRINT("CHANNEL 1 - scan error occurred")
ELSEIF CHN1&1
PRINT("CHANNEL 1 - buffer overflow")
ENDIF
Example: (test all flags)
IF CHN1
PRINT("CHANNEL 1 SERIAL ERROR !!")
ENDIF
84