6
-
17
CHAPTER6 FUNCTIONS
1
2
3
4
5
6
7
8
6.5 C
lock
Functio
n
(5) Precautions
(a) Initial clock data setting
No clock data is set at the factory.
Clock data is required for some functions of the CPU module used in the system, such as error history storage,
or for intelligent function modules.
Before using the CPU module for the first time, set the time correctly.
(b) Clock data correction
If a part of the clock data is corrected, rewrite the entire clock data to the CPU module.
(c) Clock data setting range
When changing clock data, write data within the range given in (3) in this section.
If data outside of clock range is written to the CPU module, the clock function does not operate normally.
However, the CPU module does not detect an error if the clock data is out of the range.
(d) Use for clock data of 1/1000 sec.
1) Function that clock data of 1/1000 sec. can be used
Only the following instructions can use the clock data of 1/1000 sec.
• S(P).DATERD
• S(P).DATE+
• S(P).DATE-
Other instructions cannot use the clock data of 1/1000 sec.
(Such as for reading data by SM/SD, storing the time of error occurrence as error history data, reading data
by GX Developer, or reading data by dedicated instructions of other modules.)
2) When clock data is changed
When clock data is changed by GX Developer or instructions (including dedicated instruction of other
modules), the clock of 1/1000 sec. is reset to 0.
Table6.7 Example of clock data
Write operation to the CPU
module
CPU module operation
February 30
Executed
An error is not detected.
32 of month 13
Not executed
When the DATEWR instruction is executed, "OPERATION ERROR" (error code:
4100) is detected.
When SM210 is turned on, SM211 turns on.
Содержание 00JCPU
Страница 1: ......
Страница 2: ......
Страница 96: ...2 51 2 4 5 Character string data 1 Definition The CPU module uses shift JIS code character strings...
Страница 541: ......
Страница 542: ......