EasyManuals Logo
Home>Allen-Bradley>Control Unit>SLC 500 BASIC

Allen-Bradley SLC 500 BASIC User Manual

Allen-Bradley SLC 500 BASIC
84 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #61 background imageLoading...
Page #61 background image
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.
Spare Allen-Bradley Parts

Table of Contents

Other manuals for Allen-Bradley SLC 500 BASIC

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Allen-Bradley SLC 500 BASIC and is the answer not in the manual?

Allen-Bradley SLC 500 BASIC Specifications

General IconGeneral
BrandAllen-Bradley
ModelSLC 500 BASIC
CategoryControl Unit
LanguageEnglish

Related product manuals