Detailed description
2.12 Block descriptions
Basic logic functions: PLC basic program solution line (P3 sl)
220 Function Manual, 11/2006, 6FC5397-0BP10-2BA0
Example
More than nine axes are to be controlled with FC19 using a special application. We
recommend that you proceed as follows:
• Reserve free key on MCP
• Evaluate this key as a flipflop
• Evaluate the flipflop output as pos. and neg. edge
• For pos. edge write one set of axis numbers in the axis table (DB10) and switch on LED
via this key.
• For neg. edge write one set of axis numbers in the axis table (DB10) and switch on LED
via this key.
Declaration of the function
FUNCTION FC 19 : VOID
// NAME:
MCP_IFM
VAR_INPUT
BAGNo : BYTE ;
ChanNo: BYTE ;
SpindleIFNo: BYTE ;
END_VAR
VAR_OUTPUT
FeedHold : BOOL ;
SpindleHold : BOOL ;
END_VAR
BEGIN
END_FUNCTION