FT1A S
MART
A
XIS
U
SER
’
S
M
ANUAL
FT9Y-B1382
24-7
24: C
LOCK
I
NSTRUCTIONS
Examples: TSUB
The following examples demonstrate the TSUB instruction to 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, the resultant hour data is added with 24, 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 need not be designated. The day of week is calculated automatically from the resultant
year, month, and day, and stored to D203 of destination 1.
Содержание microsmart pentra
Страница 1: ...FT1A SERIES FC9Y B1382 Ladder Programming Manual ...
Страница 6: ...Preface 5 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 104: ...7 DATA COMPARISON INSTRUCTIONS 7 10 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 122: ...8 BINARY ARITHMETIC INSTRUCTIONS 8 18 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 138: ...10 SHIFT ROTATE INSTRUCTIONS 10 12 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 162: ...11 DATA CONVERSION INSTRUCTIONS 11 24 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 188: ...12 CALENDAR COMPARISON INSTRUCTIONS 12 26 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 198: ...15 REFRESH INSTRUCTIONS 15 4 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 202: ...16 INTERRUPT CONTROL INSTRUCTIONS 16 4 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 266: ...20 DUAL TEACHING TIMER INSTRUCTIONS 20 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 318: ...25 USER COMMUNICATION INSTRUCTIONS 25 22 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...