I/O Ports For Status That Accept Device Variable Assignments - Omron NX-ECC201 User Manual

Machine automation controller nx-series ethercat coupler unit
Table of Contents

Advertisement

9 Setting Up Slave Terminals
9-3-3

I/O Ports for Status That Accept Device Variable Assignments

I/O Ports for Status
To access the status of the EtherCAT Slave Terminal from the user program in the NJ-series CPU Unit,
assign devices variables to the I/O ports for the status.
Refer to Allocatable I/O Data in an EtherCAT Coupler Unit on page 9-14 under 9-2-4 I/O Allocation
Information on page 9-13 for the I/O ports that you can assign.
Programming Sample Using I/O Ports for Status
 Testing the Validity of I/O Data for Individual Units
The NX Unit I/O Data Active Status and the NX Unit Error Status are assigned to the EtherCAT Cou-
pler Unit.
The I/O data is manipulated in the NX Unit at NX Unit number 10 in the EtherCAT Coupler Unit
with node address 5.
_EC_PDSlavTbl[5]
_EC_CommErrTbl[5]
* _node5UnitRun[10]: This is a device variable for the EtherCAT Coupler Unit (with node address 5)
to which the NX Unit I/O Data Active Status (NX Unit number 10) is assigned.
* _node5UnitErr[10]: This is a device variable for the EtherCAT Coupler Unit (with node address 5)
to which the NX Unit Error Status (NX Unit number 10) is assigned.
 Testing Whether Individual NX Units Can Process Message Communications
To test whether a Unit can process message communications, assign the NX Unit Message Enabled
Status to the EtherCAT Coupler Unit.
The Write NX Unit Object instruction is used to send a message to the NX Unit at NX Unit number 10 in
the EtherCAT Coupler Unit with node address 5.
0
_EC_PDSlavTbl[5]
_node5UnitMsg[10]: This is a device variable for the EtherCAT Coupler Unit (with node address 5)
to which the NX Unit Message Enabled Status (NX Unit number 10) is assigned.
Additional Information
To use the built-in EtherCAT port in the NJ-series CPU Unit as the EtherCAT master to access
the status of the EtherCAT Slave Terminal as an EtherCAT slave, use the system-defined vari-
ables in the EtherCAT Master Function Module. Refer to the NJ-series CPU Unit Built-in Ether-
CAT Port User's Manual (Cat. No. W505) for details.
9 - 32
_node5UnitRun[10]
_node5UnitErr[10]
_node5UnitMsg[10]
_EC_CommErrTbl[5]
EN
In1[1]
In
AryOut
AryOut1[1]
UINT#3
Size
NX_WriteObj1
NX_WriteObj
Execute
UnitProxy1
UnitProxy
Obj1
Obj
TimeOut
WriteDat1
WriteDat
NX-series EtherCAT Coupler Unit User's Manual (W519)
MemCopy1
MemCopy
ENO
Out
AryOut1[1]
Done
Busy
Error
ErrorID
ErrorIDEx

Advertisement

Table of Contents
loading

Table of Contents