Access From User Program - Omron CJ1W-CT021 Operation Manuals

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

Advertisement

4-1-3

Access from User Program

Various data is exchanged from the user program using the following variables.
Data type
For settings
For Outputs
For Inputs
Range
Comparison data
Allocating Device Variables for CJ-series Units
Use device variables for CJ-series Units with AT specification for the I/O port, which is explained below.
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.
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.
Name of device variable
for CJ-series Unit
*_ Ch1_Prst
CJ-series High-speed Counter Units Operation Manual for NJ-series CPU Unit(W492)
Access method
Device variable for CJ-series
Units
User-defined variable
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.
4 Exchanging Data with CPU
Refresh timing
When the Controller is reset or
the unit restarts
I/O refresh
When the Controller is reset or
the unit restarts
4
4-5

Advertisement

Table of Contents
loading

Table of Contents