Omron CP1E CPU UNIT SOFTWARE User Manual page 156

Cp1e cpu unit software
Table of Contents

Advertisement

11 High-speed Counters
Example 2
High-speed counter PV
Target value 1
Target value 2
Comparison is
executed according
to the order of the
Target value 3
values in the table.
Target value 4
Interrupt task number that is started.
• Up to 6 target values (between 1 and 6) can be registered in the comparison table.
• A different interrupt task can be registered for each target value.
• If the PV is changed, the changed PV will be compared with the target values in the table, even if the
PV is changed while the target value comparison operation is in progress.
Precautions for Correct Use
Precautions for Correct Use
• When the count direction (incrementing/decrementing) changes at a PV that matches a target
value or a count after a target value, the next target value cannot be matched in that direction.
Set the target values so that they do not occur at the peak or trough of count value changes.
Bad
Target value 1
Target value 2
• The maximum response frequencies of the high-speed counters are given in the following table.
High-speed counter 0
High-speed counter 1
High-speed counter 2
High-speed counter 3
High-speed counter 4
High-speed counter 5*
* High-speed counter 5 is not supported by E10 CPU Units.
11-18
No.0
No.1 No.5 No.8
OK
Match / Target value + 1
Target value 1
Target value 2
Match / Target value + 1
Item
Incremental pulse
Up and down pulses
Pulse plus direction
Differential phase (×4)
Incremental pulse
Up and down pulses
Pulse plus direction
Differential phase (×4)
Incremental pulse
Incremental pulse
Incremental pulse
Incremental pulse
Comparison table
Number of values = 4
Target value 1 (when counting up)
Interrupt task = 0
Target value 2 (when counting down)
Interrupt task = 1
Target value 3 (when counting down)
Interrupt task = 5
Target value 4 (when counting down)
Interrupt task = 8
Time
Target value + 2
Target value + 2
E-type CPU Unit
N/NA-type CPU Unit
10kHz
100kHz
5kHz
50kHz
10kHz
100kHz
10kHz
100kHz
5kHz
5kHz
10kHz
10kHz
CP1E CPU Unit Software User's Manual(W480)

Advertisement

Table of Contents
loading

Table of Contents