IAI America SSEL User Manual
Page 236
214
Part 2 Programs
(Note) A READ command must be executed before the other side sends the end character.
SCHA
10
OPEN
0
READ
0
2
Other side
CLOS
0
x Return code of the READ command
The return code is stored in a local variable. The variable number can be set by “Other
parameter No. 24.” The default variable number is 99.
0: READ completed successfully (Receive complete)
1: READ timeout (the timeout value is set by a TMRD command) (Continue to receive)
2: READ timer cancelled (the wait status is cancelled by a TIMC command) (Continue to
receive)
3: READ SCIF overrun error (Receive disabled)
4: READ SCIF receive error (framing error or parity error) (Receive disabled)
5: READ factor error (program abort error) (Receive disabled)
(Cannot be recognized by SEL commands)
6: READ task ended (program end request, etc.) (Receive disabled)
(Cannot be recognized by SEL commands)
7: READ SCIF receive error due to other factor (Receive disabled)
8: READ SIO overrun error (Receive disabled)
9: READ SIO parity error (Receive disabled)
10: READ SIO framing error (Receive disabled)
11: READ SIO buffer overflow error (Receive disabled)
12: READ SIO receive error due to other factor (Receive disabled)
13
a 20: Used only in Ethernet (optional)
21: READ SIO receive temporary queue overflow error (Receive disabled)
22: READ SIO slave receive queue overflow error (Receive disabled)