
Publication 1746-UM004A-US-P
Programming Overview
4-15
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.
Figure 4.4 Data Flow Between the SLC Processor and Port PRT1 of the Module
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.
For more information regarding the use of these commands, refer to the
BASIC
Language Reference Manual
(publication number 1747-RM001A-US-P).
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.
SLC Processor
PRINT@
INPUT@
INPL@
INPS@
GET@
PRT1 OUTPUT QUEUE
PRT1 INPUT QUEUE
256 bytes
256 bytes
PORT PRT1
CALL 23
CALL 22
1746-BAS or 1746-BAS-T 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.
Summary of Contents for 1746-BAS
Page 4: ...Publication 1746 UM004A US P Summary of Changes ii...
Page 8: ...Publication 1746 UM004A US P Table of Contents iv...
Page 26: ...Publication 1746 UM004A US P 1 14 Module and Development Software Overview...
Page 34: ...Publication 1764 UM001A US P 2 8 Component Selection...
Page 70: ...Publication 176 UM04A US P A 4 Specifications...
Page 83: ...Spare Allen Bradley Parts...