24: C
LOCK
I
NSTRUCTIONS
24-12
FT1A S
MART
A
XIS
U
SER
’
S
M
ANUAL
FT9Y-B1382
Examples: HOUR
The following examples demonstrate the HOUR instruction to measure the input ON duration value in hours, minutes, and seconds
and to compare the value in two different ways.
Source Device S1: Data Register
Source Device S1: Constant
I0
D3
D1900
S1
D0
HOUR
Destination 1
3
D100
(Hour)
25
D101 (Minute)
45
D102 (Second)
D1
D100
D2
Q2
Source 1
50
D0
(Hour)
D0·D1·D2 « D100·D101·D102
Q2
While input I0 is on, the ON duration is measured. The measured time
value (hour, minute, and second) is stored to data registers
D100·D101·D102 designated by destination device D1 and compared with
the preset value stored in data registers D0·D1·D2 designated by source
device S1.
When the measured value reaches the preset value, output Q2 designated
by destination device D2 is turned on.
Data registers D1900 and D1901 designated by destination device D3 are
reserved for system work area.
35
D1 (Minute)
55
D2 (Second)
I0
D3
D1900
S1
50
HOUR
Destination 1
3
D100
(Hour)
25
D101 (Minute)
45
D102 (Second)
D1
D100
D2
Q2
Source 1
50
Constant
(Hour)
50 « D100·D101·D102
Q2
While input I0 is on, the ON duration is measured. The measured time
value (hour, minute, and second) is stored to data registers
D100·D101·D102 designated by destination device D1 and compared with
50 hours designated by source device S1.
When the measured value reaches 50 hours, output Q2 designated by
destination device D2 is turned on.
Data registers D1900 and D1901 designated by destination device D3 are
reserved for system work area.
Содержание 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 ...