How to Change Date and Time without using CLICK Programming Software |
Topic: CL194
|
This help topic explains how to change the Date and Time in the CLICK CPU module without using CLICK Programming Software. The Date and Time can be changed when the CLICK PLC is in either RUN and STOP modes.
|
Note: This feature is supported from CLICK CPU firmware V2.00.
Note: The most CLICK CPU modules support the real time clock feature. However, the following four CLICK CPU modules don’t support it. |
|||||||||
Note: If the CLICK PLC is protected by a password, the ‘Change Date and Time in PLC’ option must be unchecked in the Password Setup (Pull down menu: Setup > Password Setup…) as shown below in advance to change the Date and Time via a com port. |
The CLICK CPU module stores the Date information in the following system Data Registers:
MODBUS 984 Addressing |
MODBUS HEX Addressing |
|||||
System Data Register |
Data Type |
Valid Data Range |
MODBUS Address |
Function Code |
MODBUS Address |
Function Code |
SD19 |
Year |
2000-2099 |
361459 |
04 |
F012h |
04 |
SD21 |
Month |
1-12 |
361461 |
04 |
F014h |
04 |
SD22 |
Day |
1-31 |
361462 |
04 |
F015h |
04 |
|
Note: These system Data Registers are Read Only. | |
Step 1:
To change the Date in the CLICK CPU module, use the following system Data Registers to set new Date.
MODBUS 984 Addressing |
MODBUS HEX Addressing |
|||||
System Data Register |
Data Type |
Valid Data Range |
MODBUS Address |
Function Code |
MODBUS Address |
Function Code |
SD29 |
Year |
2000-2099 |
461469 |
03, 06, 16 |
F01Ch |
03, 06, 16 |
SD31 |
Month |
1-12 |
461471 |
03, 06, 16 |
F01Eh |
03, 06, 16 |
SD32 |
Day |
1-31 |
461472 |
03, 06, 16 |
F01Fh |
03, 06, 16 |
|
Note: You must set all the valid Year, Month and Day to change the Date in the CLICK CPU module. You can’t change only one or two of them. | |
Step 2:
After setting the new Year, Month and Day in the above system data registers, turn the system control bit SC53ON to update the Date in the CLICK CPU module. If the CLICK CPU module updates the Date successfully, the system control bit SC54 turns OFF. However, if the new Year, Month and Day are not valid, SC54 turns ON.
MODBUS 984 Addressing |
MODBUS HEX Addressing |
|||||
System Data Register |
Data Type |
Valid Data Range |
MODBUS Address |
Function Code |
MODBUS Address |
Function Code |
SC53 |
Date Change |
ON or OFF |
61493 |
01, 05, 15 |
F034h |
01, 05, 15 |
SC54 |
Date Change Error |
ON or OFF |
161494 |
02 |
F035h |
02 |
|
Note: SC53 does not turn OFF automatically. Turn SC53 OFF before the next attempt. Note:SC54 is Read Only. |
|
If you use an HMI panel to change the Date in the CLICK CPU module, the parts on the screen would be configured like this.
The CLICK CPU module stores the Time information in the following system Data Registers:
MODBUS 984 Addressing |
MODBUS HEX Addressing |
|||||
System Data Register |
Data Type |
Valid Data Range |
MODBUS Address |
Function Code |
MODBUS Address |
Function Code |
SD24 |
Hour |
0-23 |
361464 |
04 |
F017h |
04 |
SD25 |
Minute |
0-59 |
361465 |
04 |
F018h |
04 |
SD26 |
Second |
0-59 |
361466 |
04 |
F019h |
04 |
|
Note: These system Data Registers are Read Only: | |
Step 1:
To change the Time in the CLICK CPU module, use the following system Data Registers to set new Time:
MODBUS 984 Addressing |
MODBUS HEX Addressing |
|||||
System Data Register |
Data Type |
Valid Data Range |
MODBUS Address |
Function Code |
MODBUS Address |
Function Code |
SD34 |
Hour |
0-23 |
461474 |
03, 06, 16 |
F021h |
03, 06, 16 |
SD35 |
Minute |
0-59 |
461475 |
03, 06, 16 |
F022h |
03, 06, 16 |
SD36 |
Second |
0-59 |
461476 |
03, 06, 16 |
F023h |
03, 06, 16 |
|
Note: You must set all of the valid Hour, Minute and Second to change the Time in the CLICK CPU module. You can’t change only one or two of them. | |
Step 2:
After setting the new Hour, Minute and Second in the above system data registers, turn the system control bit SC55 ON to update the Time in the CLICK CPU module. If the CLICK CPU module updates the Time successfully, the system control bit SC56 turns OFF. However, the new Hour, Minute and Second are not valid, SC56 turns ON.
MODBUS 984 Addressing |
MODBUS HEX Addressing |
|||||
System Data Register |
Data Type |
Valid Data Range |
MODBUS Address |
Function Code |
MODBUS Address |
Function Code |
SC55 |
Time Change |
ON or OFF |
61495 |
01, 05, 15 |
F036h |
01, 05, 15 |
SC56 |
Time Change Error |
ON or OFF |
161496 |
02 |
F037h |
02 |
|
Note: SC55 does not turn OFF automatically. Turn SC55 OFF before the next attempt. Note: SC56 is Read Only. |
|
If you use an HMI panel to change the Time in the CLICK CPU module, the parts on the screen would be configured like this: