Detailed description
2.12 Block descriptions
Basic logic functions: PLC Basic program powerline (P3 pl)
212 Function Manual, 11/2006, 6FC5397-0BP10-2BA0
Warning
If several block calls (FC 15, FC 16, FC 18) are programmed for the same axis/spindle in the
PLC user program, then the functions concerned must be interlocked by conditional calls in
the user program. The conditional call of a started block (parameter "Start" or "Stop" =
TRUE) must be called cyclically until the signal state of output parameter "Active" or "InPos"
changes from 1 to 0.
Declaration of the function
FUNCTION FC 16: VOID
//PART_AX
VAR_INPUT
Start: BOOL ;
AxisNo: INT ;
IC: BOOL ;
DC: BOOL
Minus: BOOL ; //Movement in the negative direction
Plus: BOOL ; //Movement in the positive direction
Pos: INT ;
FRate: REAL;
END_VAR
VAR_OUTPUT
InPos: BOOL ;
Active: BOOL ;
StartErr: BOOL ;
Error : BOOL ;
END_VAR