Publication 1746-UM004A-US-P
Programming Overview 4-13
Transferring Data
You can transfer data, through the use of various commands, between the SLC
processor and:
• port PRT2
• port PRT1
• port DH485
• the 1746-BAS or 1746-BAS-T module
Transferring Data Between the SLC Processor and Port PRT2
Use port PRT2 to interface the module with external devices sending ASCII code
(bar code decoders and printers) or DF1 packets (PLCs). The commands in the
following table are used to transfer data either to or from port PRT2.
Figure 4.3 Data Flow Between the SLC Processor and Port PRT2 of the Module
Table 4.8 Data Transfer Commands
Command Purpose
PRINT# Prints a string or variable to PRT2.
INPUT# Inputs a string or variable from PRT2.
INPL# Inputs a string or variable from PRT2.
INPS# Inputs a string or variable from PRT2.
GET# Reads a console input device connected to PRT2.
CALL 22 Transfers data from PRT1 or PRT2 to the SLC I/O or M files.
CALL 23 Transfers data from the SLC I/O or M files to PRT1 or PRT2.
CALL 118 Allows unsolicited writes from a remote SLC or PLC node.
CALL 122 Reads a PLC data file and transfers it to the SLC I/O or M files.
CALL 123 Transfers data from the SLC I/O or M files to a remote PLC.
SLC Processor
CALL 123
CALL 23
CALL 22
CALL 122
CALL 118
PRINT#
INPUT#
INPL#
INPS#
GET#
PRT2 OUTPUT QUEUE
PRT2 INPUT QUEUE
256 bytes
256 bytes
Port PRT2
1746-BAS or 1746-BAS-T Module
Spare Allen-Bradley Parts