FC6A S
ERIES
MICROS
MART
U
SER
’
S
M
ANUAL
FC9Y-B1722 5-33
5: F
UNCTIONS
AND
S
ETTINGS
Example program 2
Using the two-phase high-speed counter, the pulses from a rotary encoder are input to the FC6A Series MICROSmart and a
continuous workpiece is marked at a regular interval.
Application description
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.
• The rotary encoder pulses are input to external input
I0. A continuous sheet of paper is marked (holes are
punched) at a regular interval (every 2,700 pulses).
• The rotary encoder is directly connected to the paper
feed roller, and output pulses are counted by the
high-speed counter and controlled.
• The cycle time is the time to count 2,700 pulses.
When the hole punch time is 0.5 seconds, the
operation condition is 2,700 pulse count time > 0.5
seconds.
Paper Roll
Paper Feed Roller
Perforator
Rotary
Encoder
FC6A Series MICROSmart
Pulse Motor
External Input : Group 1
Operation Mode : Two-phase High-speed Counter
Counting Mode : 4-edge Count
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) : 2,700 (lower word)
Keep : OFF
Reset value (D8216) : 0 (upper word)
Reset value (D8217) : 0 (lower word)
Overflow : OFF
Underflow : OFF
Use HSC Reset Input : OFF
Keep the current value
when PLC is powered up
: Checked