![background image](http://html1.mh-extra.com/html/omron/sysmac-cj1w-eip21/sysmac-cj1w-eip21_operation-manuals_742257097.webp)
3-17
3 Assigning Device Variables for CJ-series Units
CJ-series EtherNet/IP Units Operation Manual for NJ-series CPU Unit (W495)
3-3 User Definition
S
ettin
gs f
o
r the Status
Area
3
3-3-1 In
troduction to Us
er D
efinition Settings
3-3
User Definition Settings for the
Status Area
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.
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.
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 (
_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).
Data Type for Storing Target Node Information (_uCJEIP21_TargetSta)
3-3-1
Introduction to User Definition Settings
3-3-2
Setting User Definitions
3-3-3
Accessing the User-defined Status Area
Data Type for the Status Area
Structure data type name
Member
Data type
_sCJEIP21_User_StaArea
RegTargetSta (Registered Target Node Table)
_uCJEIP21_TargetSta
EstbTargetSta (Normal Target Node Table)
_uCJEIP21_TargetSta
TargetPLCMdSta (Target Node PLC Operating
Flags)
_uCJEIP21_TargetSta
TargetPLCErrSta (Target Node PLC Error Flags)
_uCJEIP21_TargetSta
Содержание SYSMAC CJ1W-EIP21
Страница 8: ...Manual Structure 6 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 10: ...Sections in this Manual 8 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 20: ...Read and Understand this Manual 18 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 42: ...Revision History 40 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 68: ...1 Introduction 1 26 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 80: ...2 Installing Ethernet Networks 2 12 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 130: ...6 Testing Communications 6 4 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 206: ...7 Tag Data Link Functions 7 76 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 246: ...8 Message Communications 8 40 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 266: ...9 FTP Server 9 20 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 374: ...13 Troubleshooting 13 56 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 431: ...Index 1 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495 I Index...
Страница 436: ...Index 6 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495 Index...
Страница 437: ......