Moog Animatics SmartMotor™ Developer's Guide,Rev. L
Page 362 of 909
EXAMPLE: (test individual flags)
IF CHN(0)&8
PRINT("HOST CHANNEL - parity error occurred")
ELSEIF CHN(0)&1
PRINT("HOST CHANNEL - buffer overflow")
ENDIF
EXAMPLE: (test all flags)
IF CHN(0)!=0
PRINT("SERIAL ERROR !!")
ENDIF
RELATED COMMANDS:
CCHN(type,channel) Close Communications Channel (RS-232 or RS-485) (see page 360)
OCHN(...) Open Channel (see page 601)
ZS Global Reset System State Flag (see page 818)
Part 2: Commands: CHN(channel)