![background image](http://html1.mh-extra.com/html/omron/sysmac-cj1w-eip21/sysmac-cj1w-eip21_operation-manuals_742257085.webp)
3-5
3 Assigning Device Variables for CJ-series Units
CJ-series EtherNet/IP Units Operation Manual for NJ-series CPU Unit (W495)
3-1 D
ata Exc
h
a
n
g
e with the C
P
U
Unit
3
3-1-2 Spe
c
ifying and
Creating
V
ar
iab
les
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.
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.
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
3-1-2
Specifying and Creating Variables
Specifying Device Variables for CJ-series Units
User-defined Variables to Which the Status Areas Are Assigned
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 Oper-
ating Flags)
_uCJEIP21_TargetSta
TargetPLCErrSta (Target Node PLC Error
Flags)
_uCJEIP21_TargetSta
Device Variable Names for CJ-series Units
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.
*_ Unista1
Содержание 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: ......