Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual
Page 200

Publication 1746-RM001A-US-P
13-10 Input Functions
The first input argument is the type of SLC READ command issued:
•
0 - Disable the previously executed CALL 27
•
1 - Common Interface File Read
•
2 - SLC Typed Read
The second input argument is the node address of the SLC remote device (0
through 31). If the number is not within this range, the status equals 2 and the read
message does not occur.
The third input argument is the file number on the SLC 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
(CIF) is chosen in the first parameter. The CIF is always file 9.
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.
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.)
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.
SLC 5/01 and SLC 5/02 processors support transfers up to 41 words maximum.
Table 13.2 File Type to be Read from Remote Device
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 13.3 Valid Length Range
File Type Code
Valid Length Range
ASC(N)
1 to 64
ASC(C)
1 to 21
ASC(T)
1 to 21
ASC(B)
1 to 64
ASC(R)
1 to 21
Common Interface File
1 to 64