Omron SYSMAC CS Series Instruction & Reference Manual page 968

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

3. Instructions
Example Programming
 CADD
When CIO 0.00 turns ON in the following example, the calendar data in D100 through D102 (year,
month, day, hour, minutes, seconds) is added to the time data in D200 and D201 (hours, minutes,
seconds) and the result is output to D300 through D302.
0.00
C
T
R
 CSUB
When CIO 0.00 turns ON in the following example, the time data in D200 and D201 (hours, minutes,
seconds) is subtracted from the calendar data in D100 through D102 (year, month, day, hour, minutes,
seconds) and the result is output to D300 through D302.
0.00
C
T
R
934
D100
C:
D100
D200
D101
D102
D300
T:
D200
D201
R:
D300
D301
D302
C:
D100
D101
D100
D102
D200
D300
T:
D200
D201
R:
D300
D301
D302
18:30:20
99
12
10 December, 1999
10 minutes, 15 seconds
06
00
600 hours
18:40:35
04
18
4 January, 2000
00
01
18:30:20
10 July, 1998
50 hours, 10 minutes, 15 seconds
16:20:05
8 July, 1998
CS/CJ/NSJ Series Instructions Reference Manual (W474)

Advertisement

Table of Contents
loading

Table of Contents