beautypg.com

Rockwell Automation 1771-DB BASIC MODULE User Manual

Page 277

background image

Chapter
Call Routines 69–127

13

13 -19

Input Argument Four
The fourth input argument is the starting element 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.

Important: The offset is twice of what is expected. 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 Five
The fifth input argument is the number of elements to be transferred. If the
number is not within the valid length range specified in the table, then the
output argument equals 13, and the transfer does not take place.

File type code

Valid length range

ASC(N)

1 to 40

ASC(S)

1 to 40

ASC(C)

1 to 13

ASC(T)

1 to 13

ASC(B)

1 to 40

ASC(R)

1 to 13

Input Argument Six
The sixth 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
buffers starting at word 100 and filling as many words as specified by the
element length of the message.