Input functions, Chapter 13, Chapter – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual

Page 191

Advertising
background image

1

Publication 1746-RM001A-US-P

Chapter

13

Input Functions

This chapter describes and illustrates commands that allow the BASIC or BASIC-T
module to read input data from its external ports within the BASIC program or
from the command line. Table 13.1 lists the corresponding mnemonics.

Table 13.1 Chapter Reference Guide

If you need (to)

Use this
mnemonic

Page

Transfer data from PRT1 or PRT2 to the SLC I/O or M files.

CALL 22

13-2

Transfer data from a remote DH485 data file to the SLC
processor.

CALL 27

13-8

Handle all errors that are not handled by the ONERR statement.

CALL 29

13-13

Get a numeric input character from port PRT2.

CALL 35

13-15

Transfer the CPU output image buffer to the module input buffer. CALL 53

13-17

Transfer the CPU M0 file to the module input buffer.

CALL 56

13-18

Transfer the DH485 interface file to the module input buffer.

CALL 84

13-19

Read remote DH485 data file to the BASIC input buffer.

CALL 90

13-20

Read remote DH485 interface file to the module input buffer.

CALL 92

13-23

Get the DF1 packet length.

CALL 117

13-25

Allow unsolicited writes from a remote SLC or PLC node.

CALL 118

13-26

Read a PLC data file.

CALL 122

13-30

Read the console input device.

GET

13-38

Read the console input device connected to PRT2.

GET#

13-38

Read the console input device connected to PRT1.

GET@

13-38

Read a line of characters from the program port buffer.

INPL

13-39

Read a line of characters from the port PRT2 buffer.

INPL#

13-39

Read a line of characters from the port PRT1 buffer.

INPL@

13-39

Read a string of characters from the program port buffer.

INPS

13-40

Read a string of characters from the port PRT2 buffer.

INPS#

13-40

Read a string of characters from the port PRT1 buffer.

INPS@

13-40

Input a string or variable.

INPUT

13-40

Input a string or variable from port PRT2.

INPUT#

13-40

Input a string or variable from port PRT1.

INPUT@

13-40

Load a variable.

LD@

13-43

READ data in the data statement.

READ

13-45

Advertising