Allen-Bradley Ethernet Driver
Binary Files
To access Binary files, specify a file number and a word (and optionally, a bit in the word). The default data type
for all syntax is shown in bold.
Syntax Data Type
B<file>:<word> Short, Word, BCD, DWord, Long, LBCD
B<file>:<word> [rows][cols] Short, Word, BCD, DWord, Long, LBCD*
B<file>:<word> [cols] Short, Word, BCD, DWord, Long, LBCD*
B<file>:<word>/<bit> Boolean
B<file>:<word>/<bit> [rows][cols] Boolean*
B<file>:<word>/<bit> [cols] Boolean*
B<file>/bit Boolean
B<file>/bit [rows][cols] Boolean*
B<file>/bit [cols] Boolean*
*Array types
Note: The number of array elements (in bytes) cannot exceed the block request size specified. This means
that array size cannot exceed 16 words given a block request size of 32 bytes. For more information, refer to
Block Request Size.
File Numbers and Word Locations
The following file numbers and word locations are allowed for each model. The maximum word location is one
less when accessing as a 32-bit data type (Long, DWord, or Long BCD).
PLC Model File Number Max. Word
SLC 5/05 Open 3, 9-999 999
PLC-5 Family 3-999 1999
SoftPLC 3-9999 9999
Example Description
B3:0 Word 0
B3/26 Bit 26
B12:4/15 Bit 15 word 4
B3:10 [20] 20 element array starting at word 10
B15:0 [6][6] 6 by 6 element array starting at word 0
B3/7 [8] 8 element Boolean array starting at bit 7
B3/32 [6][9] 6 by 9 element Boolean array starting at bit 32
B3:11/2 [12] 12 element Boolean array starting at bit 2 word 11
B3:23/4 [5][8] 5 by 8 element Boolean array starting at bit 4 word 23
Timer Files
Timer files are a structured type whose data is accessed by specifying a file number, an element and a field.
The default data type depends on the field being accessed. Integer fields receive a default data type of Word.
Syntax Data Type
T<file>:<element>.<field> Depends on field
File Numbers and Elements
The following file numbers and maximum element are allowed for each model.
www. kepware.com
23