User Definition Settings For The Status Area; Introduction To User Definition Settings; Setting User Definitions; Accessing The User-Defined Status Area - 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-3
User Definition Settings for the
Status Area
3-3-1

Introduction to User Definition Settings

If the EtherNet/IP Unit is the originator of a connection, you can store the corresponding target node
status information in a user-defined variable instead of the default device variable for the CJ-series Unit.
Although the default device variable for CJ-series Unit provides information only for nodes 0 to 63, you
can obtain the information for 256 nodes if you use user definition settings for an area.
Additional Information
The information in this variable is valid only when the corresponding element in the Normal Tar-
get Node Table is TRUE. If the corresponding element in the Normal Target Node Table is
FALSE, the Target Node PLC Operating Flags retains the previous operating status.
3-3-2

Setting User Definitions

Use the following procedure to set the user-defined status area in the Special Unit Setup in the Control-
ler Configurations and Setup.
1
Set the layout type in the Status Area Settings Tab Page to User setting.
2
For the allocated area, specify the variable to which to assign the status area.
3-3-3

Accessing the User-defined Status Area

In the user program, you can specify the user-defined variable that is specified for the status area to
access the status area.
The user-defined variable that is specified for the status area is defined by using the preregistered data
type for the user-defined status area (_sCJEIP21_User_StaArea).
To use this data type, you must make the following setting in advance in the Sysmac Studio to register
the data type so that you can use it.
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.
Data Type for the Status Area
 Data Type for the Status Area (_sCJEIP21_User_StaArea)
The data type contains a different member for each type of status information.
Each member uses the data type for storing target node information (_uCJEIP21_TargetSta).
Structure data type name
_sCJEIP21_User_StaArea
Data Type for Storing Target Node Information (_uCJEIP21_TargetSta)
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)
TargetPLCMdSta (Target Node PLC Operating
Flags)
TargetPLCErrSta (Target Node PLC Error Flags)
Data type
_uCJEIP21_TargetSta
_uCJEIP21_TargetSta
_uCJEIP21_TargetSta
_uCJEIP21_TargetSta
3-17
3

Advertisement

Table of Contents
loading

Table of Contents