Clock Function - Mitsubishi Electric MELSEC-Q00U(J)CPU User Manual

Table of Contents

Advertisement

3.5

Clock Function

This function reads the internal clock data of the CPU module by a sequence program and uses it for time
management. The clock data is used for time management required for some functions in the system, such as storing
date into the error history.
Remark
The Built-in Ethernet port QCPU can set the time in the CPU module automatically by using the time setting function (SNTP
client).
QnUCPU User's Manual (Communication via Built-in Ethernet Port)
(1) Clock operation at power off and momentary power failure
Clock operation continues by the internal battery of the CPU module even when the programmable controller is
powered off or power failure occurs exceeding the allowable momentary power failure time.
(2) Clock data
The following table lists the details of clock data in the CPU module.
Data name
Second
Day of the week
1/1000 seconds
*1
Storing in SD213 for the first two digits and SD210 for the last two digits of the year
*2
Can be read using Expansion clock data read (S(P).DATERD) instruction.
MELSEC-Q/L Programming Manual (Common Instruction)
Year
Month
Day
Hour
Minute
*2
Description
*1
Four digits
(from 1980 to 2079)
1 to 12
1 to 31 (Automatic leap year detection)
0 to 23 (24 hours)
0 to 59
0 to 59
0
1
2
3
4
5
6
0 to 999
CHAPTER 3 FUNCTIONS
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
127
3

Advertisement

Table of Contents
loading

Table of Contents