Purpose – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual
Page 210

Publication 1746-RM001A-US-P
13-20 Input Functions
CALL 90 – Read Remote
DH485 Data File to
BASIC Input Buffer
Purpose
Use CALL 90 to read up to 40 words from the designated node address, file
number, file type, and element offset of a remote DH485 data file to the module
input buffer starting at word 0. This routine has six 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 read message does not take place.
The second input argument is the file number on the remote device (0 to 255). If
the number is not within the range 0 to 255, then the output argument equals 11,
and the read message does not take place.
The third input argument is the file type read from the remote device. Valid file
type codes are ASC(N), ASC(S), ASC(C), ASC(T), ASC(B), and ASC(R). If the
file type is not one of these valid types, then the output argument equals 241, and
the read message does not take place.
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.
The fifth input argument is the number of elements to be transferred. If the
number is not within the valid length range specified in Table 13.6, then the
output argument equals 13, and the transfer does not take place.
Table 13.5 File Type to be Read from Remote Device
File Type
File Type Code
Words/Element
Integer File
ASC(N)
1 word/element
Status File
ASC(S)
1 word/element
Counter File
ASC(C)
3 words/element
Timer File
ASC(T)
3 words/element
Bit File
ASC(B)
1 word/element
Control File
ASC(R)
3 words/element
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.