Omron CP1E CPU UNIT SOFTWARE User Manual page 157

Cp1e cpu unit software
Table of Contents

Advertisement

Precautions for Correct Use
Precautions for Correct Use
• There are restrictions on the maximum response frequencies of the high-speed counters
when using target matching.
Use the counters for target matching under the frequencies in the following table.
If the pulse frequencies input to the high-speed counters are higher than those in the table,
count values may not agree.
For unit version 1.0
Counter numbers for
target matching
More than 1 point
For unit version 1.1
Enabling/Disabling
pulse outputs
Disabling pulse
outputs
Enabling pulse outputs
• When using target matching, the interval between interrupts for target matches and the
interval between interrupts for the next target matches after the count direction (increment-
ing/decrementing) changing must be longer than 3 ms plus the sum of execution time for
interrupt tasks that may possibly happen at the same time.
The sum of execution time for interrupt tasks in one cycle is stored in A442. (For CPU Unit
version 1.0 or earlier, the interval must be longer than 6 ms plus the sum of execution time
for interrupt tasks that may possibly happen at the same time and the data in A442 is unsta-
ble.)
• If the input setting is set for up/down pulse inputs or differential phase inputs (×4), do not
change the direction at a high frequency when using target matching. If changing direction
at a high frequency, the interval of direction changing must be longer than 500µs.
If changing direction at a high frequency when using target matching, cycle time exceeded
error may occur.
There is no restriction when target matching is not used.
Example: Up/down pulse inputs
Increment Pulse
Decrement Pulse
• Cycle time exceeded error occurs when using target matching
When using target matching, if the encoder input values change fast due to vibration, the
direction changing may be at a high frequency, cycle time exceeded error may occur as a
result. At this time, take measures to stabilize the encoder inputs or use range comparison.
CP1E CPU Unit Software User's Manual(W480)
Increment pulse
Pulse plus direction
Differential phase (×4)
Up and down pulses
20kHz max.
5kHz max.
Increment pulse
Counter numbers for
Pulse plus direction
target matching
Up and down pulses
Only one point
100kHz max.
More than two points
60kHz max.
Only one point
50kHz max.
More than two points
40kHz max.
9
10
11
12
11
10
9
500µs min.
11 High-speed Counters
Differential phase (×4)
30kHz max.
15kHz max.
10kHz max.
8
7 6
5
6 7 8 9
11
11-19

Advertisement

Table of Contents
loading

Table of Contents