Omron CJ1W-CT021 Operation Manuals page 136

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

Advertisement

4 Exchanging Data with CPU
Name of device variable
for CJ-series Unit
*_Ch1_PrstLinCtVal
*_Ch1_PrstRingCtVal
*_Ch2_Enbl
*_Ch2_Dsbl
*_Ch2_Prst
*_Ch2_Rst
*_Ch2_RstEnbl
*_Ch2_PrstLinCtVal
*_Ch2_PrstRingCtVal
*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
4-12
Type
R/W
Name
DINT
RW
Preset Value
UDINT
RW
Preset Value
Counter 2
BOOL
RW
Open Gate*1 *3
BOOL
RW
Close Gate*1 *3
BOOL
RW
*3
Preset
BOOL
RW
*3
Reset
BOOL
RW
Reset Enable
DINT
RW
Preset Value
UDINT
RW
Preset Value
CJ-series High-speed Counter Units Operation Manual for NJ-series CPU Unit(W492)
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
Preset value
Used for Circular Counter.
Data range:
0 to 4,294,967,295
Unit: Pulse
Factory value: 0
0 to 1: Opens the gate (starts the count).
Factory value: 0
0 to 1: Closes the gate (stops the count).
Factory value: 0
0 to 1: Loads preset values.
Factory value: 0
0 to 1: Counter reset (Resets Counter Values to 0)
Factory value: 0
*2
1: Enables Z phase input, and Digital Input reset
0: Disable
Factory value: 0
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
Preset value
Used for Circular Counter.
Data range:
0 to 4,294,967,295
Unit: Pulse
Factory value: 0
Function

Advertisement

Table of Contents
loading

Table of Contents