Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual

Page 258

Advertising
background image

Publication 1746-RM001A-US-P

B-2 BASIC Command, Statement, and CALL Quick Reference Guide

CALL 24

PUSH [value to be converted]
PUSH [word number of module output
buffer]

BASIC floating-point to 16-bit signed integer

9-2

CALL 25

PUSH [value to be converted]
PUSH [word number of module output
buffer]

BASIC floating-point to 16-bit binary

9-3

CALL 26

POP[ SLC processor status]

Generate an interrupt to the SLC processor.

8-4

CALL 27

PUSH [type of READ command]
PUSH [remote node address]
PUSH [remote file number]
PUSH [remote file type]
PUSH [starting word offset of remote file]
PUSH [number of words to be transferred]
PUSH [message time-out value]
PUSH [selection of destination file]
PUSH [word offset within destination file]
PUSH [string number]
POP [CALL 27 status]

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

13-8

CALL 28

PUSH [type of WRITE command]
PUSH [remote node address]
PUSH [remote file number]
PUSH [remote file type]
PUSH [remote starting word offset]
PUSH [number of words to be transferred]
PUSH [message time-out value]
PUSH [selection of source file]
PUSH [word offset within source file]
PUSH [string number]
POP [CALL 28 status]

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

12-6

CALL 29

PUSH [CALL 27, 28, 122, or 123 for the CALL
you want activated]
POP [status of transaction]

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

12-13,

13-13

CALL 30

PUSH [bits per word]
PUSH [parity enable]
PUSH [number of stop bits]
PUSH [software handshaking enable/disable]
PUSH [hardware handshaking enable/disable]

Set PRT2 port parameters.

14-1

CALL 31

None

Display current PRT2 port setup.

12-14

CALL 35

POP [ASCII value of character]

Get numeric input character from port PRT2.

13-15

CALL 36

PUSH [buffer selection]
POP [number of characters]

Get number of characters in PRT2 buffers.

11-2

CALL 37

PUSH [buffer selection]

Clear port PRT2 input and output buffers.

12-15

CALL 38

PUSH [0 or 1]

Initiate transactions defined by CALLs 27, 28,
122, and 123.

8-5

Mnemonic

Required PUSHes or POPs

Description

Active In

Command

Mode

Only

Page

Advertising