Omron CJ1-CT021 Operation Manual page 85

High-speed counter unit
Table of Contents

Advertisement

Output Control

&RQILJXUDWLRQ DQG RSHUDWLRQ LQ 5DQJH 0RGH
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
and for Linear Counters this range is 80000000
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).
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.
8
7
6
5
4
3
2
1
7
7
6
5
4
3
2 O1 O0
-7FFFFFFF
H
0
Lower Range Limit
Upper Range Limit
Output Pattern
Section 3-5
-
H
. For
H

Advertisement

Table of Contents
loading

Table of Contents