Rockwell Automation 1771-DB BASIC MODULE User Manual
Page 328
Chapter
Call Routines 69–127
13
13 -70
Input Argument Three
The third input argument is the file number to be written to on the PLC
remote device (0 through 255). If the number is not within this range, the
status equals 2 and the write message does not occur. If you choose the
common interface file in the first parameter this input is ignored, but you
must still PUSH it.
Input Argument Four
The fourth input argument is the destination file type on the remote device.
This number is ignored if you choose the common interface file in the first
parameter (assumes integer file). If file type code is not one shown in the
table the status equals 2 and write 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 (decimal). For PLC-3 I/O files, the value
is 0–4095 (decimal). For PLC-3 timer or counter files the value is 0.
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 to be transferred.
If the number is not within the range shown below, the status equals 2 and
the transfer does not occur.
File type code
Valid element length range
ASC(N)
1 to 63
ASC(S)
1 to 63
ASC(C)
1 to 21
ASC(T)
1 to 21
ASC(B)
1 to 63
ASC(R)
1 to 21
ASC(I)
1 to 63
ASC(O)
1 to 63
common interface file
1 to 63