P3: Basic PLC Program for SINUMERIK 840D sl
13.13 Block descriptions
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
987
Simplified block diagram in CSF
The figure below shows only one acknowledgment input Ack1 and one delayed deactivation output Out1. The
circuit for Ack2 and the other delayed outputs are identical. The parameter FirstRun is also missing in the
function diagram. The mode of operation is described above.
Declaration of the function
FUNCTION_BLOCK FB 10
VAR_INPUT
In1 : BOOL
:= TRUE;
//Input 1
In2 : BOOL
:= TRUE;
//Input 2
In3 : BOOL
:= TRUE;
//Input 3
Ackn1 :
: BOOL;
//Ack 1 signal
Ackn2 :
:BOOL;
//Ack 2 signal
TimeValue1 :
TIME := T#0ms ;
//TimeValue for output 1
TimeValue2 :
TIME := T#0ms ;
//TimeValue for output 2
TimeValue3 :
TIME := T#0ms ;
//TimeValue for output 3
END_VAR
VAR_OUTPUT
Out0
: BOOL;
//Output without delay
Out1
: BOOL;
//Delayed output to false by timer 1
Out2
: BOOL;
//Delayed output to false by timer 2