Omron Sysmac NX Series User Manual page 271

Machine automation controller analog i/o units high-speed analog input units
Hide thumbs Also See for Sysmac NX Series:
Table of Contents

Advertisement

END_IF;
IF Enable_OUT=TRUE THEN
Ch1_Arrangement_is_Success:=TRUE;
END_IF;
//********************************************************
//
DataRecorder
//********************************************************
IF Start=TRUE AND Rec_is_End=FALSE THEN
Rec_is_Start:=TRUE;
Enable:=TRUE;
END_IF;
IF Rec_is_Start=TRUE AND Trig_Rdy=TRUE THEN
Ch1_Trig_Input:=TRUE;
END_IF;
IF I_O_Data_is_Valid=TRUE AND Rec_is_End=FALSE THEN
DataRecorder_instance(Enable:=Enable,
InputData:=Ch1_Input_Data,
LogData:=Ch1_Log_Data,
DataBuf:=Ch1_Data_Buf,
TrigInput:=Ch1_Trig_Input,
InputDataTimeStamp:=N2_Analog_Input_Time_Stamp,
InputSize:=N2_Ch1_Number_of_Samplings,
TrigRdy=>Trig_Rdy,
RecordEnd=>Ch1_Rec_End,
RecordInfo=>Ch1_Rec_Info);
END_IF;
IF Ch1_Rec_End=TRUE THEN
Rec_is_End:=TRUE;
Enable:=FALSE;
End_IF;
 Programming Example That Uses LogDataToCSV
The following shows a programming example that uses LogDataToCSV (Write Log Data to CSV
File). Assign this program to the priority-17 periodic task.
NX-series Analog I/O Units User's Manual for High-speed Analog Input Units (W592)
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);
Appendices
A
A - 33

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac nx-had401Sysmac nx-had seriesSysmac nx-had402

Table of Contents