You are on page 1of 2

Top Back Contact Us

VOL. 24 High-speed counter


Example Multi-step comparator operation with high-speed counter

Outline
By counting the pulses from the encoder, control the feeding amount of cloth and cut it at a specified length.
The high-speed counter is used to count the high-speed pulses from the encoder.
The number of pulses for the deceleration point, stopping point, and overrunning point are preset in data memories.

Start of winding
Cutting
machine Enter the preset
Film Decrease in value of the number
winding speed of pulses for each
point.

End of winding
Encoder

Pulley for
Cutting Overrunning
detection

Alarm

Application: Cutting products at a specified length

■ Programming Technique
This control requires three preset values of the number of pulses to determine deceleration, stopping, and
overrunning points.
The program of multi-step comparator operation can be simplified by using the multi-step comparator mode of the
high-speed counter’s cam switch function.
In the multi-step comparator mode, the value in DM1401 is compared with each preset value (DM 1406 to
DM1469). When the value in DM1401 is larger than the preset value, the corresponding relay is turned ON/OFF.
Up to 32 points can be set as the preset values.

High-speed counter CTH1 counts the pulses from the encoder received through inputs 0005 and 0007. The current
value of CTH1 is transferred to DM1401 as the value for comparison.
Set the preset values (comparator values) in DM1406 to DM1469 before the operation.
To enable the multi-step comparator operation, turn ON special utility relay 2314.
To stop the operation, turn OFF special utility relay 2715.

Devices used in multi-step comparator mode


Special utility relays
2314: Operation start relay (Operation starts when turned ON)
2315: Error relay (Turns ON during an error.)
2715: In-operation relay (Turns ON during operation.)
Data memories
DM1400: The initial No. of output relays
DM1401: The value to be compared. (0 to 65535)
DM1402: Enter “65535” in the multi-step comparator mode.
DM1406: Preset value to turn ON output relay “initial No. + 0” (0 to 65534)
DM1407: Preset value to turn OFF output relay “initial No. + 0” (0 to 65534)
DM1408: Preset value to turn ON output relay “initial No. + 1” (0 to 65534)
DM1409: Preset value to turn OFF output relay “initial No. + 1” (0 to 65534)
: :
DM1468: Preset value to turn ON output relay “initial No. + 31” (0 to 65534)
DM1469: Preset value to turn OFF output relay “initial No. + 31” (0 to 65534)
Top Back Contact Us

VOL. 24 High-speed counter


Programming Example
When input 0001 turns ON, the multi-step comparator mode is enabled.
When input 0002 turns ON, the multi-step comparator mode is disabled.
Outputs are assigned as follows:
Deceleration: 0500, Stopping: 0501, Overrunning: 0502

2008 2213 2214 CTH1


SET RES RES High-speed counter CTH1 is set to the double multiplication mode.

#00500 #65535
DW DW Relay 0500 is set as the initial relay to be used in the multi-step
DM1400 DM1402 comparator mode. The multi-step comparator mode is specified.
#10000 #15000 #20000
DW DW DW The positions where relays 0500 to 0502 turn ON/OFF are
DM1406 DM1408 DM1410 specified.
#11000 #16000 #21000
DW DW DW
DM1407 DM1409 DM1411
2002 HSP
0005 The input time constants for inputs 0005 and 0007 are set to 10 µs.
HSP
0007
2002 CTH1
0005
High-speed counter CTH1 counts the pulses from the encoder.
CTH1 DM1401 The current value of CTH1 is transferred to DM1401. This value is
LDA STA used for the comparison.
0000 1000 1000 2314
DIFU SET When input 0000 turns ON, the multi-step comparator mode is
0001 1001 2715 activated.
1001
DIFU RES When input 0001 turns ON, The multi-step comparator mode is
stopped.
END

ENDH

Tips The multi-step comparator mode compares values with the value stored in DM1401.
Therefore, not only the high-speed counter values but also the current values of a timer or
counter can be used for the multi-step comparator operation.

You might also like