Specifying And Creating Variables - Omron CJ1W-EIP21 Operation Manuals

For nj-series cpu unit. cj-series ethernet/ip units
Hide thumbs Also See for CJ1W-EIP21:
Table of Contents

Advertisement

3-1-2

Specifying and Creating Variables

Specifying Device Variables for CJ-series Units
Assign the device variables for the CJ-series Unit to the I/O ports in the I/O Map on the Sysmac Studio.
Specify the assigned variable names as given below.
(1) Select existing variables and assign them.
(2) Enter new variable names.
(3) Automatically create the device variable names.
The configuration of the automatically created variable names (3, above) is shown below.
Device Variable Names for CJ-series Units
*_ Unista1
I/O Port Name
This is the name of the function, status, or parameter in the Unit.
Device Name That Is Registered in the Unit Configuration for the Unit
(The default names are J01, J02, J03, etc., in the order the Units
are registered in the Unit Configuration.)
This allows you to identify the individual Units.
Refer to 3-2 Device Variables for the CJ-series Unit for details information on the device variables for
the CJ-series Unit.
In further descriptions, the variable names that are automatically generated for the device variables for
the CJ-series Unit are used, such as *_TDLStartCmd.
User-defined Variables to Which the Status Areas Are Assigned
If you assign the status areas to user-defined variables, there is a data type for a structure that is
defined in advance for that purpose.
To use that data type, register the structure data type for the EtherNet/IP Unit in advance in the
CPU/Expansion Racks Tab Page of the Controller Configurations and Setup.
Right-click the Unit in the CPU/Expansion Racks Tab Page of the Controller Configurations and
Setup, and then select Register Data Types for Units from the menu to register the data type.
After you register the structure data type for the EtherNet/IP Unit, you create a user-defined variable
that uses that structure data type to assign the status areas.
You can then use that user-defined variable in the user program to read information from the status
area.
Refer to 3-3 User Definition Settings for the Status Area for information on setting the status area.
 Data Type for User-defined Status Area
Structure data type name
_sCJEIP21_User_StaArea
CJ-series EtherNet/IP Units Operation Manual for NJ-series CPU Unit (W495)
3 Assigning Device Variables for CJ-series Units
Member
RegTargetSta (Registered Target Node
Table)
EstbTargetSta (Normal Target Node Table) _uCJEIP21_TargetSta
TargetPLCMdSta (Target Node PLC Oper-
ating Flags)
TargetPLCErrSta (Target Node PLC Error
Flags)
Data type
_uCJEIP21_TargetSta
_uCJEIP21_TargetSta
_uCJEIP21_TargetSta
3
3-5

Advertisement

Table of Contents
loading

Table of Contents