Specifications
49
www.kepware.com
Allen-Bradley DH+/DH-485 Device Driver Help
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
You can access Float files by specifying a file number and an element. The only data type allowed is Float.
Syntax
Data Type
F<file>:<element>
Float
F<file>:<element> [rows][cols]
Float array
F<file>:<element> [cols]
Float array
The number of array elements (in bytes) cannot exceed the block request size specified. This means that array size
cannot exceed 8 Floats given a block request size of 32 bytes)
The following file numbers and maximum word locations are allowed for each model.
PLC Model
File Number
Max Word
SLC Family
8-999
999
PLC-5 Family
3-999
1999
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
You can access data in an ASCII file by specifying a file number and character location. The default data type for all
syntax is shown in bold.
Syntax
Data Type
A<file>:<char>
Char, Byte (1)
A<file>:<char> [rows][cols]
Char, Byte (1)
A<file>:<char> [cols]
Char, Byte (1)
A<file>:<word> offset>/length
String (2)
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 ABDH+/DH-485 driver allows accessing to the character level. This means that if you use the
programming software A10:0=AB, 'A' would be stored in the high byte of A10:0 and'B' would be stored in the low byte.
If you use the AB DH+/DH-485 driver, you would make two assignments, A10:0=A and A10:1=B, which would result in
the same data being stored in the PLC memory.
Referencing this file as string data allows access to data at word boundaries like the programming software. The length
can be up to 236 characters. If a string that is sent to the device is smaller in length than the length specified by the
address, the driver null terminates the string before sending it down to the controller.
The following file numbers and maximum character locations are allowed for each model.
PLC Model
File Number
Max Character
SLC Family
9-999
1999
PLC-5 Family
3-999
1999