Rockwell Automation 1771-DB BASIC MODULE User Manual

Page 287

Advertising
background image

Chapter
Call Routines 69–127

13

13 -29

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

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 -29

input 2

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

13 -29

input 3

number of words to be transferred

13 -29

input 4

message time-out value

13 -29

output 1

call status

13 -30

Input Argument One
The first input argument is the node address of the remote device (1–31).
If the number is not within the range 1 to 31, then the output argument
equals 10, and the write 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 specified below, 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 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 BASIC module output buffer starting at word 100 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.

CALL 93: Write Output
Buffer to Remote DH-485
Common Interface File

Advertising