
CI-154 User’s Manual
Page 60
The following Holding Registers provide a means to set the date and time of the
counter by writing to the Modbus registers.
Holding Registers (Write)
Data Contents
41001 – 40006
Set date/time. Must write to all six registers:
Month, Day, Year, Hours, Minutes, Seconds
Example reading of holding registers:
To read the Holding Registers 40001 – 40016 issue the following Modbus command:
MBAP HEADER
FUNCTION
CODE
DATA
Sent to unit
00 01 00 00 00 06 01
03
00 00 00 10
Received from unit
00 01 00 00 00 23 01
03
20
00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00
00 00
To read a single Holding Register issue the command as follows: Read Channel 1
counts
MBAP HEADER
FUNCTION CODE
DATA
Sent to unit
00 01 00 00 00 06 01
03
00 08 00 02
Received from unit
00 01 00 00 00 07 01
03
04 00 01 21 32
The data field above has two parts, the 00 08 is the Holding Register address, and
the second part, 00 02, is the number of registers to be returned. Also note that
each register is 2 bytes. The returned value has a high word and a low word, where
high word is first, 00 01, and low word is second, 21 32. The value in decimal is:
74034.
Содержание CI-154
Страница 2: ...CI 154 User s Manual Page ii ...
Страница 4: ...CI 154 User s Manual Page iv ...
Страница 9: ...CI 154 User s Manual Page ix FRONT VIEW OF CI 154 ...
Страница 10: ...CI 154 User s Manual Page x REAR PANEL OF CI 154 ...
Страница 16: ...CI 154 User s Manual Page 6 ...
Страница 18: ...CI 154 User s Manual Page 8 ...
Страница 80: ...CI 154 User s Manual Page 70 ...
Страница 84: ...CI 154 User s Manual Page 74 ...
Страница 92: ...CI 154 User s Manual Page 82 ...
Страница 96: ...CI 154 User s Manual Page 86 ...
Страница 98: ...CI 154 User s Manual Page 88 ...