FC6A S
ERIES
MICROS
MART
U
SER
’
S
M
ANUAL
FC9Y-B1722 5-31
5: F
UNCTIONS
AND
S
ETTINGS
Example program 1
Using the single-phase high-speed counter on the ladder program, this example program turns on external output Q2 when
1,000 pulses are counted.
Application description
When pulses are input to external input I0 and the count reaches 1,000, external output Q2 is turned on.
In the WindLDR Function Area Settings, select Two/Single-phase High-speed Counter for Group 1.
In the High-speed Counter Settings dialog box, configure the settings as follows.
External Input : Group 1
Operation Mode : Single-phase High-speed Counter
Counting Mode : Adding Counter
Comparison Action : Comparison Output
Comparison settings
Tag Name/Device Address : D0000 (data register)
Number of Comparisons : 1
Comparison Output : Q2 (external output when matched)
Comparison1 (D0004) : 0 (upper word)
Comparison1 (D0005) : 1,000 (lower word)
Keep : Cleared
Reset value (D8216) : 0 (upper word)
Reset value (D8217) : 0 (lower word)
Overflow : Cleared
Underflow : Cleared
Use HSC Reset Input : Cleared
Keep the current value
when PLC is powered up
: Cleared