5: S
PECIAL
F
UNCTIONS
« FC4A M
ICRO
S
MART
U
SER
’
S
M
ANUAL
»
5-17
Example: Single-phase High-speed Counter
This example demonstrates a program for single-phase high-speed counter HSC2 to count input pulses and turn on output
Q2 every 1000 pulses.
Program Parameters
Programming WindLDR
Ladder Diagram
When the
MicroSmart
starts operation, preset value 1000 is stored to preset value special internal relay D8048. Gate input
special internal relay M8035 is turned on at the end of the third scan to start the high-speed counter to count input pulses.
Group 2 (I3)
Single-phase High-speed Counter
Enable Comparison
Yes
Comparison Output
Q2
HSC Preset Value (D8048)
1000
M8120
M8120 is the initialize pulse special internal relay.
1st scan
MOV instruction stores a reset value of 1000 to D8048 (preset value).
M8035 (gate input) is turned off.
M0 is turned off.
3rd scan
At the rising edge of M0, M8035 (gate input) is turned on. After the END
processing of the third scan, HSC2 star ts counting.
2nd scan
At the falling edge of M8120 (initialize pulse), M0 is turned on. HSC2 is
initialized in the END processing of the second scan.
When HSC2 current value reaches 1000, output Q2 (comparison output)
is turned on, and HSC2 star ts to repeat counting from zero.
END
M0
M8035
R
M8035
S
SOTU
M0
R
M8120
M0
S
SOTD
REP
S1 –
1000
D1 –
D8048
MOV(W)
Содержание FC4A-C10R2
Страница 1: ...FC4A SERIES Micro Programmable Logic Controller User s Manual FC9Y B812 ...
Страница 6: ...PREFACE 4 FC4A MICROSMART USER S MANUAL ...
Страница 94: ...2 MODULE SPECIFICATIONS 2 74 FC4A MICROSMART USER S MANUAL ...
Страница 184: ...6 ALLOCATION NUMBERS 6 20 FC4A MICROSMART USER S MANUAL ...
Страница 218: ...8 ADVANCED INSTRUCTIONS 8 8 FC4A MICROSMART USER S MANUAL ...
Страница 240: ...11 BINARY ARITHMETIC INSTRUCTIONS 11 8 FC4A MICROSMART USER S MANUAL ...
Страница 244: ...12 BOOLEAN COMPUTATION INSTRUCTIONS 12 4 FC4A MICROSMART USER S MANUAL ...
Страница 252: ...13 SHIFT ROTATE INSTRUCTIONS 13 8 FC4A MICROSMART USER S MANUAL ...
Страница 274: ...15 WEEK PROGRAMMER INSTRUCTIONS 15 8 FC4A MICROSMART USER S MANUAL ...
Страница 378: ...22 DUAL TEACHING TIMER INSTRUCTIONS 22 4 FC4A MICROSMART USER S MANUAL ...
Страница 386: ...23 INTELLIGENT MODULE ACCESS INSTRUCTIONS 23 8 FC4A MICROSMART USER S MANUAL ...
Страница 408: ...24 ANALOG I O CONTROL 24 22 FC4A MICROSMART USER S MANUAL ...
Страница 426: ...26 COMPUTER LINK COMMUNICATION 26 6 FC4A MICROSMART USER S MANUAL ...