//********************************************************
IF NXBus_N2_NX_Unit_I_O_Data_Active_Status=TRUE AND NXBus_N2_NX_Unit_Error_Status=F
ALSE THEN
I_O_Data_is_Valid:=TRUE;
ELSE
I_O_Data_is_Valid:=FALSE;
END_IF;
IF I_O_Data_is_Valid=TRUE THEN
\\
OmronLib
\
NX_HAD
\
DeviceVariableToArray_100(
ENO=>Enable_OUT,
Input01:=N2_Ch1_Analog_Input_Value_1_10,
Input02:=N2_Ch1_Analog_Input_Value_11_20,
Input03:=N2_Ch1_Analog_Input_Value_21_30,
Input04:=N2_Ch1_Analog_Input_Value_31_40,
Input05:=N2_Ch1_Analog_Input_Value_41_50,
Input06:=N2_Ch1_Analog_Input_Value_51_60,
Input07:=N2_Ch1_Analog_Input_Value_61_70,
Input08:=N2_Ch1_Analog_Input_Value_71_80,
Input09:=N2_Ch1_Analog_Input_Value_81_90,
Input10:=N2_Ch1_Analog_Input_Value_91_100,
StartPos:=UINT#0,
InputSize:=N2_Ch1_Number_of_Samplings,
DataArray:=Ch1_Input_Data);
END_IF;
IF Enable_OUT=TRUE THEN
Ch1_Arrangement_is_Success:=TRUE;
END_IF;
A-3-3
Connection to the Communications Coupler Unit
In the programming example where the High-speed Analog Input Unit is connected to an NX-ECC203
EtherCAT Coupler Unit, only differences from the case where it is connected to a CPU Unit are descri-
bed.
Consider these differences while reading the aforementioned example for connection to the CPU Unit.
System Configuration
The system configuration is given below.
Appendices
A - 17
NX-series Analog I/O Units User’s Manual for High-speed Analog Input Units (W592)
A-3 Programming Examples for Analog In-
put Data Collection with the Library
A
A-3-3 Connection to the Communications Coupler Unit