![background image](http://html1.mh-extra.com/html/omron/nx-ia3117/nx-ia3117_user-manual_743075151.webp)
5 - 35
5 I/O Refreshing
NX-series Digital I/O Unit User’s Manual (W521)
5-
2 I/O Refres
hing
Meth
od
s
5
5-
2-10 An Example of T
urning ON Output
s at S
p
ecific T
imes Af
ter
the Sensor Inpu
ts
C
hange
CASE State OF
0: //Wait for input bit 00 to change.
IF( InputTimeStamp <> N1_Input_Bit_00_Time_Stamp )THEN
InputTimeStamp:=N1_Input_Bit_00_Time_Stamp; //Save the input changed time for input bit 00.
IF( OffsetTimeStamp <= (OffsetErrorTaskExeCnt * TaskPeriod) )THEN
//If the specified time is 3 task periods or less, error end.
State:=0; //Transit to waiting for input bit 00 to change.
Error:=TRUE; //Error registration
ErrorCode:=WORD#16#0001;
ELSE
//Set the specified time.
SetOutputTimeStamp:=InputTiOffsetTimeStamp;
N2_Output_Bit_00_Time_Stamp:=SetOutputTimeStamp;
N2_Output_Bit_00:=TRUE;
State:=1;
//Transit to output check.
END_IF;
END_IF;
1: //Check the output.
IF( E001_Time_Stamp_of_Synchronous_Output < SetOutputTimeStamp )THEN
; //Continue output check because the specified time has not been reached.
ELSE
//Check the output status because the specified time has passed.
IF( N2_Output_Bit_00_Output_Status=FALSE )THEN
//Output completion
N2_Output_Bit_00_Time_Stamp:=0;
N2_Output_Bit_00:=FALSE;
//Turn OFF the output.
State:=0;
//Transit to waiting for input bit 00 to change.
ELSE
//Output error
Error:=TRUE;
//Error registration
ErrorCode:=WORD#16#0002;
State:=0;
//Transit to waiting for input bit 00 to change.
END_IF;
END_IF;
ELSE
;
END_CASE;
Содержание NX-IA3117
Страница 34: ...Sections in this Manual 32 NX series Digital I O Unit User s Manual W521...
Страница 52: ...1 Features and System Configuration 1 18 NX series Digital I O Unit User s Manual W521...
Страница 56: ...2 Specifications 2 4 NX series Digital I O Unit User s Manual W521...
Страница 152: ...5 I O Refreshing 5 36 NX series Digital I O Unit User s Manual W521...
Страница 204: ...8 Digital Mixed I O Units 8 8 NX series Digital I O Unit User s Manual W521...
Страница 224: ...9 Troubleshooting 9 20 NX series Digital I O Unit User s Manual W521...
Страница 230: ...10 Inspection and Maintenance 10 6 NX series Digital I O Unit User s Manual W521...
Страница 290: ...Appendices A 60 NX series Digital I O Unit User s Manual W521 Installation Height 100 71 Unit mm...
Страница 337: ...I 1 I NX series Digital I O Unit User s Manual W521 Index...
Страница 340: ...I 4 NX series Digital I O Unit User s Manual W521 Index...