Detailed description
2.12 Block descriptions
Basic logic functions: PLC basic program solution line (P3 sl)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
241
For this flexibility there are tables for axis numbers in DB 10.
For the 1. Machine control panel (MCP) the table starts from the byte 8
(symbolic name: MCP1AxisTbl[1..22]) and
for the 2. Machine control panel (MCP) starting from the byte 32
(symbolic name: MCP2AxisTbl[1..22]) for the second MCP. The machine axis numbers must
be entered byte by byte here.
It is permissible to enter a value of 0 in the axis table. Checks are not made to find
impermissible axis numbers, meaning that false entries can lead to a PLC Stop.
The restriction of the possible number of axes at FC 25 is done via the 0-values in the axis
table. The axis numbers can also be adapted dynamically. Axis numbers may not be
switched over while the axes are being traversed via the relevant direction keys.
The compatibility mode is preset with axis numbers 1 to 4 for both MCPs and restricted to
the configured number of axes.
Note
For supplementary information see functional description of FC 19.
Declaration of the function
FUNCTION FC 25 : VOID
// NAME:
MCP_IFT
VAR_INPUT
BAGNo : BYTE ;
ChanNo: BYTE ;
SpindleIFNo: BYTE ;
END_VAR
VAR_OUTPUT
FeedHold : BOOL ;
SpindleHold : BOOL ;
END_VAR
BEGIN
END_FUNCTION