IDEC MICROSmart FC6A Series Ladder Programming Manual page 475

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

Examples: TSUB
The following examples demonstrate the TSUB instruction to that will subtract time data in two different modes.
• Mode 0
TSUB
SOTU
0
I0
D0
D1
D2
When the result is less than 00:00:00, 24 is added to the result, turning on special internal relay M8003 (borrow).
D0
D1
D2
• Mode 1
TSUB
SOTU
1
I0
D8008
D8009
D8010
D8011
D8012
D8013
D8014
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.
S1
S2
D0
D10
D20
Source 1
20
(Hour)
30
(Minute)
40
(Second)
Source 1
8
(Hour)
10
(Minute)
5
(Second)
S1
S2
D8008
D100
D200
Source 1
7
(Year)
8
(Month)
23
(Day)
4
(Note)
(D of W)
10
(Hour)
20
(Minute)
30
(Second)
FC6A S
MICROS
ERIES
D1
Source 2
10
D10
(Hour)
10
D11
(Minute)
5
D12
(Second)
Source 2
10
D10
(Hour)
30
D11
(Minute)
30
D12
(Second)
D1
Source 2
5
D100
(Hour)
15
D101
(Minute)
25
D102
(Second)
L
P
MART
ADDER
ROGRAMMING
24: C
Destination 1
D20
(Hour)
D21
(Minute)
D22
(Second)
Destination 1
D20
(Hour)
D21
(Minute)
D22
(Second)
Destination 1
D200
(Year)
D201
(Month)
D202
(Day)
D203
(D of W)
D204
(Hour)
D205
(Minute)
D206
(Second)
M
FC9Y-B1726
ANUAL
I
LOCK
NSTRUCTIONS
10
20
35
21
39
35
7
8
23
4
5
5
5
24-7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents