Rockwell Automation 1771-DB BASIC MODULE User Manual

Page 237

Advertising
background image

Chapter
Call Routines 0–68

12

12 -47

Input Argument Four
The fourth input argument is the file type to be read from the remote
device. This number is ignored if the CIF is chosen in the first parameter
(assumes integer file). If the file type is not one of these listed below,
the status equals 2 and the read message does not take place. Enter the file
type code as shown below when you PUSH the fourth input parameter.

File type

File type code

Words/Element

integer file

ASC(N)

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 Argument Five
The fifth input argument is the starting word offset within the file on the
remote device (0 through 32766). If the number is not within this range,
the status equals 2 and the transfer does not occur. (The SLC 500
processor only supports 0 through 255 words per file.)

Input Argument Six
The sixth input argument is the number of elements you want to transfer.
If the number is not within the range shown, the status equals 2 and the
transfer does not occur. SLC 5/01 and SLC 5/02 processors support
transfers up to 41 words maximum.

File type code

Valid length range

ASC(N)

1 to 63

ASC(C)

1 to 21

ASC(T)

1 to 21

ASC(B)

1 to 63

ASC(R)

1 to 21

common interface file

1 to 63

Important: When selecting the BTR buffer as the destination in Input
Argument Eight, the valid length range in Input Argument Six assumes
that the proper block-transfer length has been set.

Input Argument Seven
The seventh input argument is the message time-out value. This value (1
through 255) corresponds to the number of hundreds of milliseconds that
are allowed to receive the read response (0.1 through 25.5 seconds). If the
read response is not received within this time, the message aborts with the
status equal to 55 in the BTR word 1. If the time-out value is not within
the range (1 through 255), the output status equals 2 and the transfer does
not take place.

Advertising