Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual
Page 159

Publication 1746-RM001A-US-P
Output Functions 12-9
If the file type is not one of these listed below, the status equals 2 and the write
message does not take place. Enter the file type code as shown:
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.
The sixth input argument is the number of words to be transferred. If the number
is not within the range shown, the status equals 2 and the transfer does not occur.
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 with the status equal
to 55 in the input file word 1, bits 0-7. If the time-out value is not within the range
(1 through 255), the status POPped equals 2 and the transfer does not take place.
The eighth input argument is the selection of the source CPU output image file,
CPU M0 file, or the internal string:
•
0 - CPU output image file
•
1 - CPU M0 file
•
2 - Internal string
If you chose internal string (2), CALL 29 can be executed to initiate each data
transfer without requiring SLC processor interaction. The output file word 0, bit
11 will also initiate a string transaction.
The ninth input argument is the word offset within the source CPU file. The word
offset points to the first data location. If you chose the CPU output image file, the
Table 12.2 File Type
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
Table 12.3 Valid Length Range
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