Rockwell Automation 1771-DB BASIC MODULE User Manual

Page 319

Advertising
background image

Chapter
Call Routines 69–127

13

13 -61

Input Argument One
The first input argument is the type of PLC READ command you issued:

0 = disable the previously executed CALL 122
2 = common interface file – PLC-2 unprotected READ command
3 = PLC-3 file – word range READ command
5 = PLC-5 file – typed READ command

Input Argument Two
The second input argument is the node address of the remote PLC device
(0 through 255). If the number is not within this range, the status equals 2
and the read message does not occur.

Input Argument Three
The third input argument is the file number to be read on the PLC remote
device (0 through 255). If the number is not within this range, the status
equals 2 and the read message does not occur. The parameter is ignored if
the common interface file is chosen in the first parameter, but you must
still PUSH it.

Input Argument Four
The fourth input argument is the file type to be read from the PLC remote
device. Enter the file type code as shown below. This argument is ignored
if you chose the common interface file in the first parameter but you must
still PUSH it (assumes integer type). If the file type is not one of these, the
status equals 2 and the read message does not take place.

File type

File type code

Words/Element
(1 word = 16 bits)

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

input file

ASC(I)

1 word/element

output file

ASC(O)

1 word/element

Input Argument Five
The fifth input argument is the starting word offset within the file on the
PLC-2 remote device (0 through 32766). For PLC-3 integer, binary, or
status files, the value is 0–9999. For PLC-3 I/O files, the value is 0–4095.
For PLC-3 timer or counter files the value must be 0. If the number is not
within this range, the status equals 2 and the transfer does not occur.

Advertising