Output Control Configuration - 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-4

Output Control Configuration

NPN or PNP Output Driver
NPN output or PNP output can be set for each Digital Output (0, 1) to match the user application.
NPN output or PNP output is selected by setting in bit 0 and bit 1 of the following device variable for
CJ-series Unit (for setting). The default is that NPN output is selected.
Name of device variable
for CJ-series Unit
*_OutStaCtlMdCfg
Output State Control
You can select and control 32-bit output statuses when the CPU Unit operating mode is changed
from RUN to PROGRAM mode, when an I/O bus check error occurs, or when an overflow/underflow
error occurs.
By default, the Output status control (Bits 12 to 15 of the above device variables for CJ-series Unit
(for setting)) is set to 0. The Unit continues refreshing output ON/OFF statuses automatically
according to the mode set by the user (i.e. Range or Comparison Mode).
When the output status control is set to 1, the output ON/OFF status is held. In other words, the out-
put ON/OFF status retains the status from just before the CPU Unit Operating Mode was changed,
the I/O bus check error occurred, or the overflow/underflow error occurred.
• If the Output status control is set to 2, the predefined output pattern is applied to the output (exter-
nal output + internal output) when the CPU Unit operating mode is changed, when an I/O bus
check error occurs, or when an overflow/underflow error occurs. The output pattern is decided by
the following device variable for CJ-series Unit (for setting).
Name of device variable
for CJ-series Unit
*_PreOutPatCfg
CJ-series High-speed Counter Units Operation Manual for NJ-series CPU Unit(W492)
Type
Name
WORD
Output Driver
NPN/PNP/Output
State Control
Type
Name
UDINT
Predefined Output
Pattern
3 Operation and Configuration
Function
Bits 01 to 00: Digital Output driver
(NPN/PNP) selection
Bit 00: For output 0
0: NPN (default)
1: PNP
Bit 01: For output 1
0: NPN (default)
1: PNP
Bits 02 to 11: Use with 0 (default).
Bits 12 to 15: Output status control (See
below.)
Function
Bit 00 corresponds to Digital Output O0. Bit
01 corresponds to Digital Output O1. Bits 02
to 31 correspond to internal outputs 2 to 31.
Each bit is 1 for ON or 0 for OFF.
3
3-37

Advertisement

Table of Contents
loading

Table of Contents