iDect FC6A series User Manual page 215

Microsmart all-in-one type
Table of Contents

Advertisement

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
• 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.
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.
Comparison settings
FC6A S
M
S
A
ERIES
ICRO
MART
Pulse Motor
Rotary
Encoder
FC6A Series MicroSmart
External Input
: Group 1
Operation Mode
: Two-phase High-speed Counter
Counting Mode
: 4-edge Count
Comparison Action
: Comparison Output
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
: Checked
when PLC is powered up
-
-O
T
U
'
M
LL
IN
NE
YPE
SER
S
ANUAL
5: F
UNCTIONS AND
Paper Roll
Paper Feed Roller
FC9Y-B1722
S
ETTINGS
Perforator
5-29

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents