
4-11
4 Exchanging Data with CPU
CJ-series High-speed Counter Units Operation Manual for NJ-series CPU Unit(W492)
4-2 Mem
o
ry
Alloca
tion
4
4-2-3 D
etails of De
vice V
ar
iab
les f
or CJ-ser
ies Unit (f
or in
put/output)
Variable tables
z
For outputs
Variable name
Array
Data type
CmpData
[0..11]
_sCJCT021_Ex_RngLin
4-2-3
Details of Device Variables for CJ-series Unit (for input/output)
Name of device variable
for CJ-series Unit
Type
R/W
Name
Function
General
*_OutCtl0
BOOL
RW
Manual Output Con-
trol (Output 0)
0: External output (O0) OFF (factory value)
1: External output (O0) ON
*_OutCtl1
BOOL
RW
Manual Output Con-
trol (Output 1)
0: External output (O1) OFF (factory value)
1: External output (O1) ON
*_AutoMan
BOOL
RW
Automatic/Manual
0: Automatic output control (factory value)
1: Manual output control
*_RdNxtErr
BOOL
RW
Read Next Error
If multiple errors occurred at the same time, at the
rising edge from 0 to 1, the next error is read out
from the error list in this Unit and the error code is
stored in *_ErrCode1 (error code 1) and
*_ErrCode2 (error code 2).
Factory value: 0
Counter 1
*_Ch1_Enbl
BOOL
RW
Open Gate*1 *3
0 to 1: Opens the gate (starts the count).
Factory value: 0
*_Ch1_Dsbl
BOOL
RW
Close Gate*1 *3
0 to 1: Closes the gate (stops the count).
Factory value: 0
*_Ch1_Prst
BOOL
RW
Preset
*3
0 to 1: Loads preset values.
Factory value: 0
*_Ch1_Rst
BOOL
RW
Reset
*3
0 to 1: Counter reset (Resets Counter Values to 0)
Factory value: 0
*_Ch1_RstEnbl
BOOL
RW
Reset Enable
*2
0: Disable (factory value)
1: Enables Z phase input, Digital Input reset
Lower limit
Upper limit
Output pattern
Lower limit
Lower limit
Upper limit
Output pattern
CmpData[0].LowLmt
CmpData[0].UpLmt
CmpData[0].OutPat
CmpData[1].LowLmt
CmpData[11].LowLmt
CmpData[11].UpLmt
CmpData[11].OutPat
D01850
D01921
6
×
12 = 72 words
Range data
range 0
Range data
range 1
Range data
range 11