![ICP DAS USA tET Series User Manual Download Page 114](http://html1.mh-extra.com/html/icp-das-usa/tet-series/tet-series_user-manual_3891537114.webp)
Ethernet I/O Modules
E.
H
H
o
o
w
w
d
d
o
o
I
I
r
r
e
e
a
a
d
d
D
D
I
I
C
C
o
o
u
u
n
n
t
t
e
e
r
r
f
f
o
o
r
r
t
t
h
h
e
e
P
P
E
E
T
T
L
L
/
/
t
t
E
E
T
T
/
/
t
t
P
P
E
E
T
T
S
S
e
e
r
r
i
i
e
e
s
s
M
M
o
o
d
d
u
u
l
l
e
e
s
s
c
c
o
o
r
r
r
r
e
e
c
c
t
t
l
l
y
y
?
?
A:
If your software shows wrong value of DI Counter for the PETL/tET/tPET series module, verify that
the related parameters on your software are correct, as follows:
The DI Counter records data as 32-bit value and is transmitted as two 16-bit registers. Consequently,
the register address has an offset of 2, i.e., the address of the second channel will be at
starting-a 2, and so on.
Example: Reading the values for 6 DI Counters on a tPET-P6 module.
Using the API of nModbus:
Ushort[]
counter = master.
ReadInputRegisters
(1,
0x10
,
12
);
For more detailed information about the starting address, channels, and declared length
parameters, etc., refer to the
section 6.3 Modbus Register Table
DI Counter
Register
16-bit
………..
16-bit
16-bit
16-bit
16-bit
16-bit
32-bit
32-bit
32-bit
0
1
2
3
4
5
D/I Channel 0
D/I Channel 0
D/I Channel 0
………..
………..
Starting Address
6 channels * 2 registers =
12 registers
Declare 16-bit
ICP DAS CO., LTD.
PETL/tET/tPET DIO Series User Manual, Ver. 2.1, Sep. 2014, Page: 114
ГК
Атлант
Инжиниринг
–
официальный
представитель
в
РФ
и
СНГ
+7(495)109-02-08 [email protected] www.bbrc.ru