Syntax – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual
Page 196

Publication 1746-RM001A-US-P
13-6 Input Functions
The last CALL 22 or CALL 23 executed determines the byte swap option for all
active CALL 22 commands previously executed.
The output argument is the status of the CALL. It has the following values:
•
0 - Successful setup
•
1 - Disabled
•
2 - Bad input parameter
•
3 - PRT2 is chosen but it is already enabled for DF1 protocol. Transfer is not
executed.
•
4 - String too small
•
5 - String is not dimensioned
If data is being received into the serial port faster than the SLC processor is
retrieving data, the input buffer of the port fills up. If you use handshaking
between the port and the external device, no data is lost.
Syntax
PUSH [source port number]
PUSH [maximum number of characters to be transferred]
PUSH [decimal value of character delimiter]
PUSH [selection of destination file and/or string]
PUSH [word offset within the destination file]
PUSH [string number]
PUSH [byte swap selection]
CALL 22
POP [CALL 22 status]