IDEC FC4A-C10R2 User Manual page 136

Fc4a series microsmart micro programmable logic controller
Table of Contents

Advertisement

5: S
F
PECIAL
UNCTIONS
Ladder Diagram
When the
MicroSmart
special internal relay M8031 is turned on at the end of the third scan to start the high-speed counter to count input pulses.
SUB(W)
S1 –
65535
M8120
ADD(W)
S1 –
SOTU
M0
SOTD
M8120
Q1
Timing Chart
Current Value D8045
Reset Value D8046
Comparison Output Q1
5-16
starts operation, reset value 62836 is stored to reset value special internal relay D8046. Gate input
S2 –
D1 –
REP
2700
D0
S2 –
D1 –
REP
D0
1
D8046
R
M8031
R
M0
S
M8031
S
M0
TIM
T0
5
M8030
END
65535
62836
ON
OFF
« FC4A M
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.
HSC1 is initialized 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.
When the high-speed counter current value exceeds
65535, comparison output Q1 is turned on and the
current value is reset to 62836.
0.5 sec for punching
S
U
'
M
ICRO
MART
SER
S
ANUAL
2700 pulses
»

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents