5: S
PECIAL
F
UNCTIONS
5-14
FC5A M
ICRO
S
MART
U
SER
’
S
M
ANUAL
FC9Y-B1268
Ladder Diagram
When the MicroSmart starts operation, reset value 62836 is stored to reset value special data register D8046. Gate input
special internal relay M8031 is turned on at the end of the third scan to start the high-speed counter to count input
pulses.
M8120
M8120 is the initialize pulse special internal relay.
1st scan
SUB and ADD instructions are used to store a reset value of 62836 (65535
– 2700 + 1) to D8046 (reset value).
M8031 (gate input) is turned off.
M0 is turned off.
3rd scan
At the rising edge of M0, M8031 (gate input) is turned on. After the END
processing of the third scan, HSC1 starts counting.
2nd scan
At the falling edge of M8120 (initialize pulse), M0 is turned on. M8032
(reset input) is turned on to initialize HSC1 in the END processing of the
second scan.
When HSC1 overflows 65535, output Q1 (comparison output) is turned
on to start timer T0. HSC1 starts to repeat counting.
When the timer times out 0.5 sec, M8030 (comparison output reset) is
turned on to turn off output Q1.
END
M0
M8031
R
M8031
S
SOTU
REP
S2 –
2700
D1 –
D0
S1 –
65535
SUB(W)
REP
S2 –
1
D1 –
D8046
S1 –
D0
ADD(W)
M0
R
M8120
M0
S
SOTD
Q1
TIM
5
T0
M8030
M8032
Timing Chart
Comparison Output Q1
ON
OFF
Current Value D8045
When the high-speed counter current value exceeds
65535, comparison output Q1 is turned on and the cur-
rent value is reset to 62836.
Reset Value D8046
62836
65535
0.5 sec for punching
2700 pulses
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]