EasyManua.ls Logo

IDEC MICROSmart FC6A Series

IDEC MICROSmart FC6A Series
604 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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.

Table of Contents

Other manuals for IDEC MICROSmart FC6A Series

Related product manuals