
3-21
3 Operation and Configuration
CJ-series High-speed Counter Units Operation Manual for NJ-series CPU Unit(W492)
3-5 Outp
ut Con
tr
o
l
3
3-5
Output Control
z
Output Control Mode
The 32 Outputs (2 external and 30 internal) of the High-speed Counter Unit can be controlled auto-
matically in two ways:
• Range Mode. In Range Mode you can define up to a maximum of 32 Ranges per Counter. The
Outputs are controlled according to the Counter Value being within Range Limits. For a detailed
description about Range Mode refer to 3-5-1 Range Mode.
• Comparison Mode. In Comparison Mode you can define up to a maximum of 32 Comparison
data per Counter. The Outputs are controlled according to the direction in which the Counter
Value crosses the Comparison Value. For a detailed description about Comparison Mode refer to
3-5-2 Comparison Mode.
If the Unit is configured for Range Mode all two Counters will operate in Range Mode. If the Unit is
configured for Comparison Mode all two Counters will operate in Comparison Mode.
The Output Control Mode is set with bits 0 to 7 of the following device variables for CJ-series Unit
(for setting).
Besides automatically, the Digital Outputs can also be controlled manually (refer to 3-5-3 Manual
Output Control).
z
Unit Output Pattern
Both in Range and Comparison Mode the 32 Outputs of the Unit are represented by the Unit Output
Pattern. The Unit uses the Unit Output Pattern internally to control the Outputs. The Unit Output Pat-
tern consists of 30 Soft (internal) Outputs and 2 Digital Outputs. The two Digital Outputs represent
the Outputs O0 and O1 of the Unit.
Name of device variable
for CJ-series Unit
Type
Name
Function
*_OutCtlMdCfg
WORD
Output Control
Mode/AND/OR
Counter Output
Patterns
Bits 0 to 7: Output Control Mode
Sets the Output Control Mode.
16#00: Range Mode
16#01: Comparison Mode
Bits 8 to 15: Counter output pattern AND/OR
selection
For Range Mode, selects whether the
Counter output pattern is logically OR or
AND.
16#00: OR
16#01: AND
31
4
3
2
1
0
Unit Output Pattern:
31 30 29
16 15 14
6
5
4
3
2 O1 O0
(for Unit internal use only)
Digital Outputs
O0 and O1
Soft Outputs 2 to 31
Digital Outputs 0 and 1 correspond with the Digital Outputs O0 and O1.