beautypg.com

Rockwell Automation 1771-DB BASIC MODULE User Manual

Page 244

background image

Chapter
Call Routines 0–68

12

12 -54

Input Argument Four
The fourth input argument is the file type you want to write to the remote
device. This number is ignored if choose the CIF in the first parameter
(assumes integer file). If the file type is not one of those listed, the status
equals 2 and the write message does not take place. Enter the file type
code as shown:

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
SLC remote device (0 through 32766). If the number is not within this
range, the status equals 2 and the transfer does not occur.

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.

File type code

Valid length range

ASC(N)

1 to 40

ASC(C)

1 to 13

ASC(T)

1 to 13

ASC(B)

1 to 40

ASC(R)

1 to 13

common interface file

1 to 40

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 write response (0.1 through 25.5 seconds).
If the write response is not received within this time, the message aborts
and the status equals 55 in BTR word 1. If the time-out value is not within
the range (1 through 255), the output argument status equals 2 and the
transfer does not take place.