IDEC MICROSmart FC6A Series Ladder Programming Manual page 480

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

Advertisement

24: C
I
LOCK
NSTRUCTIONS
Examples: HOUR
The following examples demonstrate the HOUR instruction that will 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
HOUR
I0
Source 1
50
D0
(Hour)
35
D1
(Minute)
55
D2
(Second)
• Source Device S1: Constant
HOUR
I0
Source 1
50
Constant
(Hour)
24-12
S1
D1
D2
D0
D100
Q2
D1900
Destination 1
3
D100
(Hour)
25
D101
(Minute)
45
D102
(Second)
S1
D1
D2
50
D100
Q2
D1900
Destination 1
3
D100
(Hour)
25
D101
(Minute)
45
D102
(Second)
FC6A S
MICROS
ERIES
MART
D0·D1·D2 ↔ D100·D101·D102 → Q2
D3
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 assigned by destination device D1 and compared with the
preset value stored in data registers D0·D1·D2 assigned by source device
S1.
When the measured value reaches the preset value, output Q2 assigned by
destination device D2 is turned on.
Data registers D1900 and D1901 assigned by destination device D3 are
reserved for system work area.
50 ↔ D100·D101·D102 → Q2
D3
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 assigned by destination device D1 and compared with 50
hours assigned by source device S1.
When the measured value reaches 50 hours, output Q2 assigned by
destination device D2 is turned on.
Data registers D1900 and D1901 assigned by destination device D3 are
reserved for system work area.
L
P
M
ADDER
ROGRAMMING
FC9Y-B1726
ANUAL

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents