VersaGateway User’s Manual
Document #: 2015006.1.pdf
PAGE 33 of 44
Divelbiss Corporation • 9778 Mt. Gilead Road • Fredericktown, Ohio 43019 • 1-800-245-2327 • www.divelbiss.com
Device Features
Real Time Clock
VersaGateway Devices include a Real Time Clock. The real time clock (after being set) provides the Month, Day, Day of the Week,
Year, Hour, Minute and Second. The real time clock maintains time when power is off as long as the on-board lithium battery is
good. The real time clock device is automatically installed and enabled when the VersaGateway target is selected (based on avail
-
ability per model).
The battery for the real time clock generally has years of life before replacement is needed. Should the battery need to be replaced,
replace the battery with the same type and size as the original. Contact Divelbiss product support for information about changing
the battery.
To use the Real Time Clock functionality in a ladder diagram, several function blocks are available. To read current Time or Date,
use the GETTIME and GETDATE function blocks. To set the current Time or Date, use the SETTIME and SETDATE function blocks. For
details on using function blocks, refer to the P-Series EZ LADDER Toolkit Manual
The VersaGateway ships from the factory with the real time clock battery disabled (paper between battery and battery clip) to con
-
serve battery life. You must enable the battery by removing the paper.
Failure to enable the battery will result in loss of actual date and time when unit is not powered.
Battery and Voltage Monitoring
The VersaGateway device has an on-board analog input that monitors the on-board battery voltage. This analog input is provided
for applications that wish to monitor the on-board battery and optionally display or communicate its status.
The battery analog input is automatically installed when the VersaGateway device target is selected in the Project Settings Menu.
The analog input is represented as an integer with a range of 0-4095 for 0-3VDC. It is access in the ladder diagram by the integer
variable
A
N_BATT
. This variable represents the current voltage battery voltage. With the battery removed, AN_BATT will read the
maximum (4095) reading in the software (open-circuit).
The lithium battery is a 3VDC battery. Data retention of the Real Time Clock and SRAM storage will function down to
2.0VDC. To avoid data loss, the battery should be replaced before reaching 2.0VDC. As this is a lithium battery, the voltage
curve accelerates at lower levels causing the time between the battery voltage reading 2.5VDC and the point of data loss
(2.0VDC) to be short. The replacement / warning level should be set at a voltage where there is sufficient time to allow for
battery replacement.
SAE J1939 / NMEA 2000
The VersaGateway device supports SAE J1939 and NMEA 2000 communications over CAN. SAE J1939 and NMEA 2000 may be con
-
figured and installed to operate on either of the two on-board CAN ports (CAN0 or CAN1).
As SAE J1939 and NMEA 2000 utilize the CAN port, a CAN port must be installed prior to the installation and configuration
of SAE J1939 / NMEA 2000. For CAN port installation, refer to the
CAN Port 0
and
CAN Port 1 - NMEA Compliant
Sections
of this manual.
With a CAN port installed, SAE J1939 / NMEA 2000 must be installed in the ladder diagram project using the EZ LADDER Toolkit
Project Settings Menu.