Page 31 of 34
File Name:
Doc#586p.docx
Setting And Reading The Real Time Clock Through Modbus:
Modbus registers 40007 through 400013 are real time clock read registers as seen in figure 1.3. To set the clock current values
must be entered into registers 40014 through 40020. Any of these registers left to zero will result in an incorrect clock setting.
Once desired clock date and time values are entered bit 0 of register 40001 must be toggled for the controller to accept the values.
This can be done by setting bit 0 high or writing a 1 to register 40001. The controller will then accept the new values.
Figure 1.3
Miscellaneous Floating Point and Integer Readings:
Battery voltage and amperage along with engine run hours, system pressure, system start pressure, time until start, time until stop
and engine starts can all be read from the controller Real or Floating Point registers. These are Modbus registers 40021 through
40037. These registers are word or double word. All available floating point and integer registers are shown in Figure 1.4 and do
not require scaling.
Figure 1.4
No more than 50 registers can be polled at a time.
Historical Alarms and Events:
The historical events and alarms can be viewed from Modbus registers 40107 through 40114. Here it is possible to scroll through
the entire log and set the log pointer to the most current record. Register 40107 contains a number representing the actual log
number entry location in the controller. Register 40108 contains a number representing the event or alarm that can be indexed
using figures 1.6 through 1.9. Registers 40109 through 40114 show the date and time stamp information for the log record being
pointed to.
To maneuver through the log:
Toggling bit 3 or writing an 8 to register 40001 will increment the log by one entry.
Toggling bit 4 or writing a 16 to register 40001 will decrement the log by one entry.
Toggling bit 7 or writing a 128 to register 40001 will set the log to view the most current log entry.
Description
Modbus Registers
Usage Notes For Read Only Registers
Real Time Clock Month
040007
PLC Read Real Time Clock Month 1-12
Real Time Clock Day
040008
PLC Read Real Time Clock Day 1-31
Real Time Clock Year
040009
PLC Read Real Time Clock Year 00-99
Real Time Clock Hour
040010
PLC Read Real Time Clock Hour 1-24
Real Time Clock Minute
040011
PLC Read Real Time Clock Minute 0-59
Real Time Clock Second
040012
PLC Read Real Time Clock Seconds 0-59
Real Time Clock Day Of Week
040013
PLC Read Real Time Clock Day Of Week 0-6 "Sunday = 0"
**Must Have All Fields Filled To Set PLC Clock, Null Fields Will Write 0's To The Clock**
**Once Desired Clock Values Are Entered, Toggling Bit 0 Of Modbus Register 040001 Or PLC Address V9001.0 Will Set Clock
Real Time Clock Set Month
040014
PLC Set Real Time Clock Month 1-12
Real Time Clock Set Day
040015
PLC Set Real Time Clock Day 1-31
Real Time Clock Set Year
040016
PLC Set Real Time Clock Year 00-99 "Cannot Enter 2006, Must Enter 06"
Real Time Clock Set Hour
040017
PLC Set Real Time Clock Hour 1-24
Real Time Clock Set Minute
040018
PLC Set Real Time Clock Minute 0-59
Real Time Clock Set Second
040019
PLC Set Real Time Clock Second 0-59
Real Time Clock Set Day Of Week
040020
PLC Set Real Time Clock Day Of Week 0-6 "Sunday = 0"
Description
Modbus Registers
Usage Notes For Read Only Registers
Battery 1 Volts Reading
040021-040022
Battery 1 Volts Floating Point Value
Battery 2 Volts Reading
040023-040024
Battery 2 Volts Floating Point Value
Battery 1 Amps Reading
040025-040026
Battery 1 Amps Floating Point Value
Battery 2 Amps Reading
040027-040028
Battery 2 Amps Floating Point Value
Engine Run Hours
040029-040030
Engine Run Hours Floationg Point Value
System Pressure PSI
040031-040032
System Pressure 0-300 PSI Floating Point Value
Start Pressure PSI
040033-040034
Screen 101 Start Pressure 0-300 PSI Floating Point Value
Time Until Start
040035
Time Until Start Integer Value (Seconds)
Time Until Stop
040036
Time Until Stop Integer Value (Seconds)
Engine Starts
040037
Number of Engine Starts Integer Value