Transfer data, Transfer data -14, Transfer data between the slc processor and – Rockwell Automation 1746-BAS-T SLC 500 Basic Basic-T Modules User Manual
Page 62
Publication 1746-UM004B-EN-P - December 2005
4-14 Programming Overview
Transfer 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.
Transfer 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 (PLC
controllers). The commands in the following table are used to transfer
data either to or from port PRT2.
Command
Renumbers the Program Starting at
Key Strokes
Renumber
The beginning of the program. The new
line numbers begin at 10 and increment by
10.
[REN]
The beginning of the program. The new
line numbers begin at 10 and increment by
NUM.
[REN[NUM]]
The beginning of the program. The new
line numbers begin with NUM1 and
increment by NUM2.
[REN[NUM1],[NUM2]]
NUM2. The new line numbers begin with
NUM1 and increment by NUM3.
[REN[NUM1],[NUM2],[NUM3]
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.