Program with the MODBUS Protocol
248083440-1 Rev 5
7-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 7-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 7-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 7-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 7-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]
Summary of Contents for ApexP3
Page 1: ...ApexPortable P A R T I C L E C O U N T E R OPERATING MANUAL ApexP3 ApexP5...
Page 2: ...00...
Page 3: ...Lighthouse Worldwide Solutions ApexPortable Airborne Particle Counter Operating Manual...
Page 6: ......
Page 12: ...Lighthouse ApexPortable Operating Manual ii 248083440 1 Rev 5...
Page 16: ...Lighthouse ApexPortable Operating Manual 1 4 248083440 1 Rev 5...
Page 26: ...Lighthouse ApexPortable Operating Manual 3 6 248083440 1 Rev 5...
Page 30: ...Lighthouse ApexPortable Operating Manual 4 4 248083440 1 Rev 5...
Page 87: ...Operate the ApexPortable 248083440 1 Rev 5 5 57 Figure 5 95 Failed Report Sample...
Page 92: ...Operate the ApexPortable 248083440 1 Rev 5 5 62...
Page 120: ...Lighthouse ApexPortable Operating Manual A 18 248083440 1 Rev 5...
Page 122: ...Lighthouse ApexPortable Operating Manual B 2 248083440 1 Rev 5...
Page 128: ...Lighthouse ApexPortable Operating Manual I 6 248083440 1 Rev 5...
Page 129: ...00...