Download USER MANUAL - Divelbiss Corporation

Transcript
Chapter 12
Real Time Clock
Select the PLCHIP_Pxx_rtc and click ok. The real time clock will install and the Target’s Devices window will
close returning to the Target Properties Window. The real time clock will now be listed in the Devices pane.
Refer to Figure 12-2.
Figure 12-2
There are no additional configuration or setup required to use the real time clock. Click ok to close the Target
Properties window and click ok to close the Project Settings window. Be sure to save the ladder diagram
project. The real time clock is now ready to be used in the ladder diagram.
Using the Real Time Clock
To use the real time clock in a ladder diagram project, four function blocks are provided. Two blocks (GETDATE and GETTIME) are used to read the current date and time from the real time clock. The remaining two
blocks (SETDATE and SETTIME) are used to actually set the date and time on the real time clock. Figure
12-3 represents a ladder diagram program that will read the date and time.
The real time clock date and time may also be synced to a connected computer using EZ LADDER
Toolkit. See the Target Utilites section in Chapter 4 - Configuring Targets.
The real time clock function blocks use variables as inputs (for setting date and time) and outputs for reading
date and time. These integer variables are global and may be used anywhere in the ladder diagram. Figure
12-4 represents a ladder diagram to set the date and time.
Divelbiss Corporation - P-Series - EZ LADDER Toolkit User Manual
105