
3-37
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-4 Output
Control Con
figur
at
ion
z
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.
z
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 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).
3-5-4
Output Control Configuration
Name of device variable
for CJ-series Unit
Type
Name
Function
*_OutStaCtlMdCfg
WORD
Output Driver
NPN/PNP/Output
State Control
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.)
Name of device variable
for CJ-series Unit
Type
Name
Function
*_PreOutPatCfg
UDINT
Predefined Output
Pattern
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.