Syntax – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual

Page 219

Advertising
background image

Publication 1746-RM001A-US-P

Input Functions 13-29

If the DH485 port is used for data transfer, an offset of greater than 40 hex (64
decimal) words should not be used. Unsolicited write packets of greater than 64
causes a write to the DH485 program port buffer, leading to improper operation.
The size of the data packet can be up to the maximum for the input file selected.

If the CPU input image file is chosen as the destination, this offset must not be 0 or
1. Zero is a reserved word for the handshaking bits. Word 1 is reserved for the PLC
transaction number used with CALLs 27, 28, 122, and 123. A 0 or 1 causes an
error to be POPped (2 = bad input parameter) and the CALL is not executed.

The fourth input argument is the string number. If the second input argument
does not select internal string usage, the value of this input argument is ignored but
must still be PUSHed.

The fifth input argument is the maximum word length allowed for the data packet.
Any packets received by the module of greater size are rejected. Entering 0 causes
the module to accept packets of any size and all packets are received up to the
maximum length of the destination file. Excess data is truncated.

The output argument is the status of the CALL. It has the following values:

0 – Successful

1 – Disabled

2 – Bad input parameter

3 – Selected DH485/DF1 port not enabled

4 – String too small

5 – String is not dimensioned

Syntax

PUSH [CALL enable/disable]

PUSH [selection of destination file and/or string]

PUSH [word offset in destination file]

PUSH [string number]

PUSH [maximum word length]

CALL 118

POP [CALL 118 status]

Advertising