Reading The Clock Data; Precautions On The Clock Data - Mitsubishi Electric MELSEC iQ-R Series User Manual

Process cpu module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Using SM/SD
After SM210 (Clock data set request) is tuned on, values stored in SD210 (Clock data) to SD216 (Clock data) are written to
the CPU module. Once the write operation is finished, SM210 is turned off. If values in SD210 to SD216 are out of the
effective range, SM211 (Clock data set error) turns on and the values in SD210 to SD216 are not written to the CPU module.
Using the instruction
Use the DATEWR instruction to write the clock data to the CPU module. ( MELSEC iQ-R Programming Manual (CPU
Module Instructions, Standard Functions/Function Blocks))
Automatic change using the SNTP server
The time of CPU module is automatically set by collecting clock data from the time information server (SNTP server)
connected to the LAN at the specified timing. ( MELSEC iQ-R Ethernet User's Manual (Application))

Reading the clock data

The clock data can be read in one of the following methods:
• Using SM/SD
• Using the instruction
Using SM/SD
When SM213 (Clock data read request) is turned on, the clock data is read to SD210 to SD216.
Using the instruction
Use the DATERD(P)/S(P).DATERD instructions to read the clock data from the CPU module. ( MELSEC iQ-R
Programming Manual (CPU Module Instructions, Standard Functions/Function Blocks))

Precautions on the clock data

The following lists the precautions on the clock data.
When using the product for the first time
Since the clock data is not set at the factory, be sure to set the correct data.
Modifying the clock data
Even if a portion of the clock data is changed, be sure to write all the data to the CPU module again.
Range of the clock data
The clock data must be written within the following range.
Page 185 Clock data
Even within the range, the clock function does not operate normally if data outside the clock range is written to the CPU
module.
Ex.
Operating status of the CPU module when impossible date is set
Date
February 30
32nd of month 13
13 CLOCK FUNCTION
186
13.1 Time Setting
Write operation to the CPU module
Executed
Not executed
CPU module operating status
An error is not detected.
• When the DATEWR instruction is executed, "Operation error" (error code: 3405H)
is detected.
• When SM210 is turned on, SM211 turns on.

Advertisement

Table of Contents
loading

Table of Contents