Mitsubishi Electric MELSEC Q Series User Manual page 163

Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

(3) Changing and reading clock data
(a) Changing clock data
There are 2 ways to change clock data as described below.
• Using Setting/monitoring tools for the C Controller module
Select [Online]  [Set Clock] to change the clock data.
• Using user program
Use the C Controller module dedicated function (CCPU_SetRTC function) to change the clock data.
Obtain clock data from an external computer or programmable controller CPU on the network.
Then, by setting the clock data again for the C Controller module with the CCPU_SetRTC function, adjust
the clock of the C Controller module.
Function name
CCPU_SetRTC
● OS clock setting
C Controller module sets its integral clock time to the OS clock time at the power up or startup after resetting.
Set the time to the running OS clock by using the user program.
(b) Reading clock data
To read clock data, use the C Controller module dedicated function (CCPU_GetRTC).
Function name
CCPU_GetRTC
(4) Clock data accuracy
For accuracy of the clock data, refer to the following.
 Page 45, Section 3.2
To correct the clock data, synchronize the data with the time of the SNTP server on the network.For the time
setting function (SNTP), refer to the following.
 Page 202, Section 12.2.1
Note11.3
Q24DHCCPU-LS
Q26DHCCPU-LS
Q24DHCCPU-LS and Q26DHCCPU-LS cannot be set by user programs.
Note11.3
Note11.3
Sets time in the C Controller module integral clock.
For "-LS", consult with the
partner (operating system vendor).
Acquires time in the C Controller module integral clock.
CHAPTER 11 BASIC FUNCTIONS
Function
Function
11
161

Advertisement

Table of Contents
loading

Table of Contents