0000
00
(146)
CSUB D00100
D02000
D00500
341
Precautions
C, C+1, C+2, T, and T+1 must be BCD and in the proper format.
Note Refer to page 101 for general precautions on operand data areas.
Flags
ER (A50003):
Time or calendar data is not in the correct format
(including impossible dates such as Feb. 30).
Content of
*
DM word is not BCD when set for BCD.
EQ (A50006):
ON when the content of R, R+1, and R+2 is 0 after execu-
tion.
Example
When CIO 000000 is ON in the following example, the time data in D02000 and
D02001 is subtracted from the calendar data in D01000 through D01002 and
output as calender data to D00500 through D00502.
Address
Instruction
Operands
00000
LD
000000
00001
CSUB(146)
D00100
D00200
D00500
90
04
12
18
40
30
1532
27
19
90
02
07
22
13
11
C + 2 : D00102
C + 1 : D00101
C : D00100
T + 1 : D02001
T : D02000
R + 2 : D00502
R + 1 : D00501
R : D00500
5-26-5 CLOCK COMPENSATION: DATE(179)
(179)
DATE
C
Ladder Symbol
Variations
↑
DATE(179)
Operand Data Areas
C: Control word
CIO, G, A, T, C, DM
Description
When the execution condition OFF, DATE(179) is not executed. When the ex-
ecution condition is ON, DATE(179) changes the internal clock setting according
to the clock data in four consecutive control words (first word: C). The internal
clock setting is copied to the clock function area (G001 to G004).
Time Instructions
Section 5-26
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...