Rockwell Automation 1771-DB BASIC MODULE User Manual

Page 284

Advertising
background image

Chapter
Call Routines 69–127

13

13 -26

Use CALL 92 to read up to 40 words from the remote DH-485 Common
Interface File of the designated node address, starting at the designated
word offset to the BASIC module input buffer starting at word 100.

Input and Output Arguments

This routine has four input arguments and one output argument.

Argument

Description

Page

input 1

node address of the remote device (1–31)

13 -26

input 2

starting word offset within the file on the remote device
(0 to 255)

13 -26

input 3

number of words to be transferred

13 -26

input 4

message time-out value

13 -26

output 1

call status

13 -27

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

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

Important: The offset is twice what you expect. For example, if an offset
of 3 is PUSHed, the data is written to the remote DH-485 data file
beginning at element 6.

Input Argument Three
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.

Input Argument Four
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 BASIC module input
buffer starting at word 100 and filling as many words as specified by the
word length of the message.

CALL 92: Read Remote
DH-485 Common Interface
File to BASIC Input Buffer

Advertising