
4 Exchanging Data with CPU
4-12
CJ-series High-speed Counter Units Operation Manual for NJ-series CPU Unit(W492)
*1
Initially, after the Controller is reset or the Unit is restarted, the Gate is closed. In order to start counting pulses,
it is necessary to open the gate by setting Open Gate to 1 for the Counter used.
*2
Bit(s) have no function for Simple Counters.
*3
These bits may not be executed if they are ON for only one task period. Always keep these bits turned ON until
the execution status changes in the corresponding bits (refer to the section on device variables for CJ-series
Unit for input).
Note The "*" at the head of the device variable name for CJ-series Unit is the device name when this Unit is regis-
tered in the Unit Configuration. By default, a device name is assigned from "J01" in the order of registration in
the Unit Configuration
*_Ch1_PrstLinCtVal
DINT
RW
Preset Value
Preset value
Used for Simple Counter or Linear Counter.
Data range:
−
2,147,483,648 to 2,147,483,647
Unit: Pulse
Factory value: 0
*_Ch1_PrstRingCtVal
UDINT
RW
Preset Value
Preset value
Used for Circular Counter.
Data range:
0 to 4,294,967,295
Unit: Pulse
Factory value: 0
Counter 2
*_Ch2_Enbl
BOOL
RW
Open Gate*1 *3
0 to 1: Opens the gate (starts the count).
Factory value: 0
*_Ch2_Dsbl
BOOL
RW
Close Gate*1 *3
0 to 1: Closes the gate (stops the count).
Factory value: 0
*_Ch2_Prst
BOOL
RW
Preset
*3
0 to 1: Loads preset values.
Factory value: 0
*_Ch2_Rst
BOOL
RW
Reset
*3
0 to 1: Counter reset (Resets Counter Values to 0)
Factory value: 0
*_Ch2_RstEnbl
BOOL
RW
Reset Enable
*2
1: Enables Z phase input, and Digital Input reset
0: Disable
Factory value: 0
*_Ch2_PrstLinCtVal
DINT
RW
Preset Value
Preset value
Used for Simple Counter or Linear Counter.
Data range:
−
2,147,483,648 to 2,147,483,647
Unit: Pulse
Factory value: 0
*_Ch2_PrstRingCtVal
UDINT
RW
Preset Value
Preset value
Used for Circular Counter.
Data range:
0 to 4,294,967,295
Unit: Pulse
Factory value: 0
Name of device variable
for CJ-series Unit
Type
R/W
Name
Function