Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual

Page 223

Advertising
background image

Publication 1746-RM001A-US-P

Input Functions 13-33

The third input argument is the file number to be read on the PLC 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
is chosen in the first parameter, but must still be PUSHed.

The fourth input argument is the file type to be read from the PLC remote device.
Enter the file type code as shown below. This argument is ignored if the common
interface file is chosen in the first parameter but must still be PUSHed (assumes
integer type). If the file type is not one of these, the status equals 2 and the read
message does not take place.

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. For PLC-3 I/O files, the value is 0-4095. For PLC-3 timer or
counter files the value must be 0. 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 elements to be transferred. If the
number is not within the range shown, the status equals 2 and the transfer does not
occur.

Table 13.10 File Type to be Read from Remote Device

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

Table 13.11 Valid Element Length Range

File Type Code

Valid Element Length Range

ASC(N)

1 to 64

ASC(S)

1 to 64

ASC(C)

1 to 21

ASC(T)

1 to 21

ASC(B)

1 to 64

ASC(R)

1 to 21

ASC(I)

1 to 21

ASC(O)

1 to 21

Common Interface File

1 to 21

Advertising