Rockwell Automation 1771-DB BASIC MODULE User Manual

Page 281

Advertising
background image

Chapter
Call Routines 69–127

13

13 -23

Input Argument Four
The fourth input argument is the starting element 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 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 range specified below, then the output argument
equals 13, and the transfer does not take place.

File type

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 write
response (1 to 50 = 0.1 to 5.0 seconds). If the write 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 write data from the BASIC module output buffer is written to the
remote device starting at word 100 and filling as many words as specified
by the element length of the message.

Advertising