Specifications
Allen-Bradley DH+ Driver Help
R15:18.POS Position field of control 18 file 15.
R6:1.POS/4 Position field of control 1 file 6 (bit 4).
R6:0.S Status word of control 6 file 0.
R6:0.S/6 Status word of control 6 file 0 (bit 6).
Integer Files
To access an integer file, specify a file number, a word and an optional bit in the word. The default data type for
all syntax is shown in bold.
Syntax Data Type
N<file>:<word> Short, Word, BCD, DWord, Long, LBCD
N<file>:<word> [rows][cols] Short, Word, BCD, DWord, Long, LBCD*
N<file>:<word> [cols] Short, Word, BCD, DWord, Long, LBCD*
N<file>:<word>/<bit> Boolean
N<file>/bit Boolean
*Array types.
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
Communications Parameters.
The following file numbers and maximum word locations are allowed for each model. The maximum word location
is one less when accessing a 32 bit data type (Long, DWord or Long BCD).
PLC Model File Number Max Word
SLC Family 7, 9-999 999
PLC-5 Family 3-999 1999
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 data in a Float file, specify 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). For more information, refer to
Communications Parameters.
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.
www. kepware.com
50