9-6
Programming
The following operations are programmed.
• Reading input data from sensors
• Sensor setting operations and reading sensor status
9-6-1
Reading Input Data from Sensors
Use the I/O data to check sensor control output status, unstable detection status, the amount of inci-
dent light, etc.
A sample programming for reading input data is given below.
Conditions for Reading Input Data
Use the following flags as conditions to read and use the input data.
l NX-type IO-Link Master Unit
• NX Unit I/O Data Active Status
Connecting the NX-type IO-Link Master Unit to a Communications Coupler Unit:
E001_NX_Unit_IO_Data_Active_Status_15
Connecting the NX-type IO-Link Master Unit to a CPU Unit: NXBus_N1_NX_Unit_I_O_-Data_Ac-
tive_Status
• Input Data Enabled Flag: N1_Port*_IN_Data_Enable
*1. "E001_" is attached to the names of device variables that are automatically generated. "15" indicates a
flag that tells whether I/O data is usable for 15 mounted NX Units.
*2. "N1_" is attached to device variables that are automatically generated from the mounting sequence of the
NX Units. The asterisk indicates where the port number of the IO-Link Unit is input.
Example:
NX Unit I/O Data Active
Status
E001_NX_Unit_IO_Data
_Active_Status_15[1]
l GX-type IO-Link Master Unit
• Process Data Communicating Slave Table: _EC_PDSlavTbl[2]
• Input Data Enabled Flag: E002_Port*_IN_Data_Enable
*1. "[2]" is the EtherCAT node address.
NX/GX-series IO-Link System User's Manual (W570)
9 Example of Operations for IO-Link Systems
*1
Input Data Enabled Flag
N1_Port1_IN_Data_Enable
*2
Programming to process input data
*1
*2
9
9-11