FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726
24-7
24: C
LOCK
I
NSTRUCTIONS
Examples: TSUB
The following examples demonstrate the TSUB instruction to that will subtract time data in two different modes.
• Mode 0
• Mode 1
I0
D1
D20
S1
D0
S2
D10
TSUB
0
Source 1
20
D0
(Hour)
30
D1 (Minute)
40
D2 (Second)
Source 2
10
D10
(Hour)
10
D11 (Minute)
5
D12 (Second)
–
Destination 1
10
D20
(Hour)
20
D21 (Minute)
35
D22 (Second)
When the result is less than 00:00:00, 24 is added to the result, turning on special internal relay M8003 (borrow).
Source 1
8
D0
(Hour)
10
D1 (Minute)
5
D2 (Second)
Source 2
10
D10
(Hour)
30
D11 (Minute)
30
D12 (Second)
–
Destination 1
21
D20
(Hour)
39
D21 (Minute)
35
D22 (Second)
SOTU
I0
D1
D200
S1
D8008
S2
D100
TSUB
1
Source 2
5
D100
(Hour)
15
D101 (Minute)
25
D102 (Second)
Source 1
7
D8008
(Year)
8
D8009
(Month)
23
D8010
(Day)
–
Destination 1
10
D8012
(Hour)
20
D8013 (Minute)
30
D8014 (Second)
4
D8011 (D of W)
7
D200
(Year)
8
D201
(Month)
23
D202
(Day)
5
D204
(Hour)
5
D205 (Minute)
5
D206 (Second)
4
D203 (D of W)
SOTU
(Note)
Note:
D8011 in source 1 is not used for execution and does not need to be designated. The day of week is calculated automatically from the
resultant year, month, and day, and stored to D203 of destination 1.
Summary of Contents for MICROSmart FC6A Series
Page 1: ...B 1726 7 FC6A SERIES Ladder Programming Manual ...
Page 8: ...Preface 7 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 32: ...1 OPERATION BASICS 1 20 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 96: ...3 INSTRUCTIONS REFERENCE 3 18 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 130: ...4 BASIC INSTRUCTIONS 4 34 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 192: ...9 SHIFT ROTATE INSTRUCTIONS 9 12 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 272: ...12 DISPLAY INSTRUCTIONS 12 24 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 284: ...14 REFRESH INSTRUCTIONS 14 6 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 502: ...25 DATA LOG INSTRUCTIONS 25 22 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 546: ...26 SCRIPT 26 44 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 598: ...APPENDIX A 14 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...