Output Control - Omron CJ1W-CT021 Operation Manuals

For nj-series cpu unit. high-speed counter units.
Hide thumbs Also See for CJ1W-CT021:
Table of Contents

Advertisement

3-5

Output Control

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).
Name of device variable
for CJ-series Unit
*_OutCtlMdCfg
Besides automatically, the Digital Outputs can also be controlled manually (refer to 3-5-3 Manual
Output Control).
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.
Unit Output Pattern:
(for Unit internal use only)
CJ-series High-speed Counter Units Operation Manual for NJ-series CPU Unit(W492)
Type
WORD
Output Control
Mode/AND/OR
Counter Output
Patterns
31
31 30 29
16 15 14
Digital Outputs 0 and 1 correspond with the Digital Outputs O0 and O1.
3 Operation and Configuration
Name
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
4
3
6
5
4
3
Function
2
1
0
2 O1 O0
Digital Outputs
O0 and O1
Soft Outputs 2 to 31
3-21
3

Advertisement

Table of Contents
loading

Table of Contents