Transfer data between the slc processor and – Rockwell Automation 1746-BAS-T SLC 500 Basic Basic-T Modules User Manual

Page 64

Advertising
background image

Publication 1746-UM004B-EN-P - December 2005

4-16 Programming Overview

For more information regarding the use of these commands, refer to
the BASIC Language Reference Manual, publication 1747-RM001.

Transfer 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.

CALL 114

Initiates DF1 packet transmission.

CALL 115

Checks DF1 packet transmission status.

CALL 117

Gets DF1 packet length.

CALL 119

Resets port parameters back to their default settings.

Command

Purpose

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

Advertising
This manual is related to the following products: