
4-5
4 Exchanging Data with CPU
CJ-series High-speed Counter Units Operation Manual for NJ-series CPU Unit(W492)
4-1 Over
vie
w
4
4-1-3 Access from U
s
er Prog
ra
m
Various data is exchanged from the user program using the following variables.
Use device variables for CJ-series Units with AT specification for the I/O port, which is explained below.
z
I/O port
An "I/O port" is a logical interface for data exchange by a CPU Unit with a High-speed Counter Unit
or other Configuration Unit.
An I/O port has a unique pre-defined name for each unit model and function.
An I/O port is automatically created by preparing the Unit Configuration with Sysmac Studio.
z
How to specify device variables for CJ-series Units
Specify the AT specifications to I/O ports for device variables for CJ-series Units on the I/O Map of
Sysmac Studio.
Specify the variable name for the AT specification with the following methods.
1
Select a variable already registered in the variable table
2
Input a new variable name
3
Automatically create a variable name with "Device variable creation"
When a name of device variable for CJ-series Unit is assigned with the method in 2 or 3, the variable
input by Sysmac Studio is automatically registered in the variable table.
The following is the configuration of variable names created with automatic creation in step 3.
4-1-3
Access from User Program
Data type
Access method
Refresh timing
For settings
Device variable for CJ-series
Units
When the Controller is reset or
the unit restarts
For Outputs
I/O refresh
For Inputs
Range
User-defined variable
When the Controller is reset or
the unit restarts
Comparison data
Allocating Device Variables for CJ-series Units
*_ Ch1_Prst
This is an I/O port name. The name indicates
the unit function, status and parameter.
This is the device name when this unit is registered in
the Unit Configuration. (By default, a device name is
assigned from "J01" in the order of registration in the
Unit Configuration.) This identifies the individual unit.
Name of device variable
for CJ-series Unit