Purpose – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual

Page 172

Advertising
background image

Publication 1746-RM001A-US-P

12-22 Output Functions

CALL 93 – Write Output
Buffer to Remote DH485
Common Interface File

Purpose

Use CALL 93 to write up to 40 words starting at word 0 of the module output
buffer to the remote DH485 Common Interface File at the designated node
address, starting at the designated word offset. 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 write 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 specified below, 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 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 data from the module output buffer starting at word 0 is written to the remote
common interface file starting at the specified word, 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 12.7 the output argument.

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