Omron CJ1W-CT021 Operation Manual page 90

High-speed counter units
Hide thumbs Also See for CJ1W-CT021:
Table of Contents

Advertisement

Output Control
3-5-1-2
Configuration and operation in Range Mode
Specifying Range-Data
Range Data
70
In Range Mode every Counter can be assigned up to a maximum of 32 Ranges.
The Data of every Range is contained by 3 double words:
Lower Range Limit, specifying the Lower Limit of the Range
Upper Range Limit, specifying the Upper Limit of the Range
Output Pattern, specifying which Outputs have to be activated when that
Range is active
The Counter Type (Circular or Linear) determines the range in which the Upper
and Lower Limits can be set. For Circular Counters this range is 00000000
FFFFFFFF
H
Linear Counters the Upper Range Limit must be greater than the Lower Range
Limit. The Unit will generate an error if the Upper Range Limit ≤ Lower Range Limit
(refer to 5-2 "Error codes" for more details). For Circular Counters, the Upper
Range Limit can be set lower than the Lower Range Limit.
To configure a Counter in Range Mode for every Range that you want to use the
Range-Data must be set. Each data-item is specified by two words (=32 bits). For
the exact memory location to set the Range-Data refer to 4-2-1 "Memory Map-
ping".
15 14 13 12 11 10 9
15 14 13 12 11 10 9
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
In the Output Pattern the Outputs are represented by:
= Digital Outputs 0-1
(corresponding with Physical Digital Outputs O0 and O1)
= Soft Outputs 2-31
In the Output Pattern of the Range every single Output can be configured to turn
ON when that Range is active. To configure an Output to turn ON you must set the
corresponding bit to 1. If multiple Ranges of a Counter are active at the same time,
the Output Patterns of those Ranges are logically OR'ed to become the Output
Pattern of that Counter.
Note
1. The Counter Range-Data can also be changed during actual operation using
the IOWR-instruction. Refer to 4-3 "IOWR-Instruction" for more details.
2. In Range Mode it is possible to apply Hysteresis to Ranges in order to prevent
Digital Outputs from toggling due to unwanted oscillating of an encoder. Refer
to 3-7-3 "Hysteresis" for detailed information.
3. Precautions When Setting Range Data
Comparison Stoppage during Comparison of Ranges
The comparison operation stops for 1.5 ms from when the High-speed
Counter Value falls within the Upper Range Limit or Lower Range Limit for
and for Linear Counters this range is 80000000
8
7
6
5
4
3
7
7
6
5
4
3
2
1
0
Lower Range Limit
Upper Range Limit
2 O1 O0
Output Pattern
Section 3-5
-
H
-7FFFFFFF
. For
H
H

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents