CSV Output
Started
LogDataToCSV_instance
Ch1_Log_Data
Ch1_Rec_Info
‘Ch1_Log_Data.csv’
USINT#100
\\OmronLib\DataRecorder\Log
DataToCSV
Done
Busy
LogData
RecordInfo
FileName
WriteLineNum
Cancel
CSV_Output
_is_Start
CSV_Output
_is_Done
CSV Output
Done
Execute
Rec_is_End
Recording
Ended
CSV_Output
_is_Done
CSV Output
Done
CSV_Output
_is_Start
CSV Output
Started
CSV_Output
_is_Start
LogData
Canceled
Error
ErrorID
ErrorIDEx
Ch1_Log_Data
CSV Output
Started
ST Programming
Programming Examples That Use DeviceVariableToArray_100 and DataRe-
corder
The following shows programming examples that use DeviceVariableToArray_100 (Join Device
Output Data) and DataRecorder (Data Recorder). Assign the programs to the priority-4 primary pe-
riodic task.
//********************************************************
// DeviceVariableToArray_100
//********************************************************
IF NXBus_N2_NX_Unit_I_O_Data_Active_Status=TRUE AND NXBus_N2_NX_Unit_Error_Status
=FALSE 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,
Appendices
A - 32
NX-series Analog I/O Units User’s Manual for High-speed Analog Input Units (W592)