Specifications
Allen-Bradley DF1 Driver Help
Micrologix 3-255 255
All SLC 3-255 255
PLC-5 3-999 1999
The maximum word location is one less when accessing as a 32 bit data type (Long, DWord or Long BCD).
Examples
Example Description
N7:0 Word 0.
N7/26 Bit 26.
N12:4/15 Bit 15 word 4.
N7:10 [8] 8 Element array starting at word 10.
N15:0 [4] [5] 4 by 5 element array starting at word 0.
Float Files
To access Float files, specify a file number and an element. The default data types are shown in bold.
Syntax Data Type Access
F<file>:<element> Float Read/Write
F<file>:<element> [rows][cols] Float* Read/Write
F<file>:<element> [cols] Float* Read/Write
*Array type.
The number of array elements (in bytes) cannot exceed the block request size specified. This means that the
array size cannot exceed 8 Floats given a block request size of 32 bytes.
Ranges
PLC Model File Number Max Word
Micrologix 3-255 255
All SLC 3-255 255
PLC-5 3-999 1999
Examples
Example Description
F8:0 Float 0.
F8:10 [16] 16 Element array starting at word 10.
F15:0 [4] [4] 16 Element array starting at word 0.
ASCII Files
To access ASCII file data, specify a file number and a character location. The default data types are shown in
bold.
Syntax Data Type Access
A<file>:<char> Char, Byte* Read/Write
A<file>:<char> [rows][cols] Char, Byte* Read/Write
A<file>:<char> [cols] Char, Byte* Read/Write
A<file>:<word offset>/length String** Read/Write
*The number of array elements cannot exceed the block request size specified. Internally, the PLC packs two
characters per word in the file, with the high byte containing the first character and the low byte containing the
second character. The PLC programming software allows access at the word level or two-character level. The
Allen-Bradley DF1 driver allows accessing to the character level.
Using the programming software, A10:0 = AB, would result in 'A' being stored in the high byte of A10:0 and 'B'
being stored in the low byte. Using the Allen-Bradley DF1 driver, the two assignments A10:0 = A and A10:1 =
B would result in the same data being stored in the PLC memory.
www. kepware.com
32