Purpose – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual

Page 213

Advertising
background image

Publication 1746-RM001A-US-P

Input Functions 13-23

CALL 92 – Read Remote
DH485 Common
Interface File to BASIC
Input Buffer

Purpose

Use CALL 92 to read up to 40 words from the remote DH485 Common Interface
File of the designated node address, starting at the designated word offset to the
module input buffer starting at word 0. This routine has four input arguments and
one output argument.

The first input argument is the node address of the remote device (0 to 31). If the
number is not within the range 0 to 31, then the output argument equals 10, and
the read message does not take place.

The second input argument is the starting word offset within the file on the remote
device (0 to 32767). If the number is not within the range 0 to 32767, then the
output argument equals 12, and the transfer does not take place.

The third input argument is the number of words to be transferred. If the number
is not within the range (1 to 40), then the output argument equals 13, and the
transfer does not take place.

The fourth input argument is the message time-out value. This value is the number
of hundreds of milliseconds that are allowed to receive the read response (1 to 50 -
0.1 to 5.0 seconds). If the read response is not received within this time, the
message aborts with the output argument equal to 55. If the number is not within
the range 1 to 50, the output argument equals 14, and the transfer does not take
place.

The read data from the remote device is read into the module input buffer starting
at word 0 and filling as many words as specified by the word length of the message.

Upon return from the CALL, the output argument specifies the status of the
message instruction. Table 13.8 defines the output arguments.

IMPORTANT

The offset will be twice of what is expected. For example, if an
offset of 3 was PUSHed, the data will be written to the remote
DH485 data file beginning at element 6.

Advertising