Program with the MODBUS Protocol
248083447-1 Rev 1
6-3
Configuring
with the
MODBUS
Protocol
Setting the Real Time Clock
The Real Time Clock (RTC) can be read in registers 40027 and 40028
as shown in Table 6-2.
Register 40027 is the high word for the real time clock; 40028 is the
low word. The date/time is calculated as the number of seconds since
midnight of 1/1/1970.
The date & time is stored in a 4-byte unsigned integer or as a 32-bit
unsigned integer.
In order to change the RTC to the current local date/time, enter the high
and low values as unsigned integers to registers 40035 and 40036
respectively, which are the Data Set registers. See Table 6-3.
Then write the command
13
to the command register 40002. This will
write the values in the Data Set registers (40035 and 40036) to the RTC
registers (40027 and 40028).
The Real Time Clock can also be set in the Configuration Software
Tool.
Table 6-2 Real Time Clock Registers
Register
Data Type
Description
40027
unsigned integer
Real Time Clock (RTC) [high]. Works in
conjunction with 40028. Displays date and
time, in number of seconds since
midnight, 1/1/1970.
40028
unsigned integer
Real Time Clock [low]
Table 6-3 Data Set Registers
Register
Data Type
Description
40035
unsigned integer
Data Set [high]. Works in conjunction
with 40036. Data entered here is applied
to the device through the command
register.
40036
unsigned integer
Data Set [low]
Содержание ApexR02
Страница 1: ......
Страница 2: ...00 ...
Страница 3: ...Lighthouse Worldwide Solutions ApexRemote Airborne Particle Counter Operating Manual ...
Страница 6: ......
Страница 10: ...Lighthouse ApexRemote Operating Manual t iv 248083447 1 Rev 1 ...
Страница 12: ...Lighthouse ApexRemote Operating Manual ii 248083447 1 Rev 1 ...
Страница 22: ...Lighthouse ApexRemote Operating Manual 2 8 248083447 1 Rev 1 ...
Страница 32: ...Lighthouse ApexRemote Operating Manual 3 10 248083447 1 Rev 1 ...
Страница 76: ...Lighthouse ApexRemote Operating Manual A 18 248083447 1 Rev 1 ...
Страница 78: ...Lighthouse ApexRemote Operating Manual B 2 248083447 1 Rev 1 ...
Страница 83: ...00 ...
Страница 84: ......