Output Control
Section 3-5
43
3-5-1-2
Configuration and operation in Range Mode
Specifying Range-Data
In Range Mode every Counter can be assigned up to a maximum of 4 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
H
-
FFFFFFFF
H
and for Linear Counters this range is 80000000
H
-7FFFFFFF
H
. For
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 section Section 5-2
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 section Section 4-2-1
.
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.
If Range Mode is used with Ring Counter Mode, a maximum ring value of 3
or more should be set up. Note that a value of 1 or 2 will not generate an error
message.
2.
The Counter Range-Data can also be changed during actual operation using
the IOWR-instruction. Refer to section
for more
details.
3.
In Range Mode it is possible to apply Hysteresis to Ranges in order to prevent
Outputs from toggling due to unwanted oscillating of an encoder. Refer to sec-
tion Section 3-7-1
4.
Precautions When Setting Range Data
Lower Range Limit
Range Data
Upper Range Limit
15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
0
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
Output Pattern
In the Output Pattern the Outputs are represented by:
= Soft Outputs 0-31
15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
0
Содержание CJ1W-CTL41-E
Страница 2: ...i SYSMAC CJ series CJ1W CTL41 E 4 Channel Counter Unit Operation Manual Produced September 2004...
Страница 3: ...ii...
Страница 5: ...iv...
Страница 9: ...viii...
Страница 31: ......
Страница 43: ......
Страница 73: ......
Страница 119: ......
Страница 123: ......
Страница 126: ......
Страница 127: ......
Страница 131: ......
Страница 133: ...116...