EasyManuals Logo
Home>Omron>Controller>NJ Series

Omron NJ Series User Manual

Omron NJ Series
668 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #103 background imageLoading...
Page #103 background image
3 I/O Ports, Slave Configuration, and Unit Configuration
3-14
NJ-series CPU Unit Software User’s Manual (W501)
The data type of variables assigned to the Units is _sNXUNIT_ID structure. The details on the
_sNXUNIT_ID structure data type are given in the following table.
*1 This information is used only inside the Controller. You cannot access or change it.
Precautions for Correct UsePrecautions for Correct Use
The values of variables assigned to the Units will be set automatically when you register the vari-
ables. Do not change the values of the variables. If you change the value, the Controller may not
perform the intended operation.
Additional Information
The data type of variables assigned to EtherCAT slaves other than Slave Terminals is _sECAT_ID
structure. The details are given in the following table.
This section describes how to use the variables assigned to the Units in the user program. In any
cases, the variable with the same name as the variable assigned to the Unit on the I/O Map must be
registered in the variable table in advance. The data type of the variable is _sNXUNIT_ID structure.
The values of variables assigned to the Units will be set automatically when you register the variables.
Do not change the values of the variables. If you change the value, the Controller may not perform the
intended operation.
Example: Executing the NX_SaveParam Instruction
In the following example, the NX Unit to which the NX1 variable is assigned is specified when the
NX_SaveParam instruction is executed. NX1 is passed to the UnitProxy variable.
Variable Name Meaning Data type
User specified Specified Unit Specified Unit _sNXUNIT_ID
NodeAdr Node address Node address of the EtherCAT Coupler Unit UINT
IPAdr
IP address
*1
IP address of the EtherCAT Coupler Unit BYTE[5]
UnitNo Unit number Unit number of the specified Unit UDINT
Path
Path
*1
Path information to the specified Unit BYTE[64]
PathLength Valid path length Valid path length USINT
Variable Name Meaning Data type
User specified Specified slave Specified slave _sECAT_ID
NodeAdr Node address Node address of the EtherCAT Coupler Unit UINT
3-4-2 Using Variables Assigned to Units
Designating Units
B
NX1
UINT#0
A
NX_SaveParam
Execute Done
UnitProxy Busy
TimeOut Error
ErrorID
ErrorIDEx
NX_SaveParam_instance
Variable assigned to NX Unit

Table of Contents

Other manuals for Omron NJ Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NJ Series and is the answer not in the manual?

Omron NJ Series Specifications

General IconGeneral
BrandOmron
ModelNJ Series
CategoryController
LanguageEnglish

Related product manuals