SLC Processor
Spare Allen-Bradley Parts
Transferring Data Between the SLC Processor and Port PRT1
Use port PRT1 to interface the module with external devices sending ASCII code.
The commands in the following table are used to transfer data either to or from
port PRT1.
Table 4.10 Data Transfer Commands
Command
Purpose
PRINT@
Prints a string or variable to PRT1.
INPUT@
Inputs a string or variable from PRT1.
INPL@
Inputs a string or variable from PRT1.
INPS@
Inputs a string or variable from PRT1.
GET@
Reads a console input device connected to PRT1.
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.
Figure 4.4 Data Flow Between the SLC Processor and Port PRT1 of the Module
PRINT@
CALL 23
CALL 22
INPUT@
INPL@
INPS@
GET@
In addition, the commands in the following table provide status of and control over
the data transfer between the SLC processor and port PRT1 of the module.
Table 4.11 Status and Control Commands
Command
Purpose
MODE
Sets the port parameters of PRT1, PRT2, and DH485.
CALL 94
Displays the current port PRT1 configuration on the program port terminal
screen.
CALL 95
Retrieves the number of characters in the input or output buffer of port PRT1.
CALL 96
Clears port PRT1 input and output buffers.
CALL 103
Prints the complete output buffer with addresses, front pointer, and number of
characters in the buffer to the program port screen.
CALL 104
Prints the complete input buffer with addresses, front pointer, and number of
characters in the buffer to the program port screen.
CALL 105
Resets the port parameters of port PRT1 to their default setting.
For more information regarding the use of these commands, refer to the BASIC
Language Reference Manual (publication number 1747-RM001A-US-P).
256 bytes
PRT1 OUTPUT QUEUE
256 bytes
PRT1 INPUT QUEUE
1746-BAS or 1746-BAS-T Module
Programming Overview
4-15
PORT PRT1
Publication 1746-UM004A-US-P
Need help?
Do you have a question about the SLC 500 BASIC and is the answer not in the manual?
Questions and answers