P3: Basic PLC Program for SINUMERIK 840D sl
13.13 Block descriptions
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
1057
Flexible axis configuration
It is possible to be flexible in the assignment of axis selections or direction keys for machine axis numbers.
Better support is now provided by the MCP blocks for the use of two MCPs, which are to run in parallel, in
particular for an application using two channels and two mode groups. Note that the axis-numbers are also
specified in the parameterized mode group number of the MCP block in the axis tables of the relevant MCP.
To afford this flexibility, tables for axis numbers are stored in DB 10.
For the first machine control panel (MCP), the table starts at byte 8 (symbolic name: MCP1AxisTbl[1..22]) and for
the second 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.
For FC 24, the maximum possible number of axis selections can also be restricted.
This upper limit is set for the 1. Machine control panel in DB10.DBW30 (symbolic name: MCP1MaxAxis) or for
the 2. Machine control panel in DB10.DBW54 (symbolic name: MCP2MaxAxis) for the respective MCP.
The default setting is 0, corresponding to the maximum number of configured axes. The axis numbers and the
limit can also be adapted dynamically. Afterwards, a new axis must be selected on FC 24. Axis numbers may not
be switched over while the axes are traversing the relevant direction keys. The compatibility mode is preset with
axis numbers 1 to 6 for both MCPs and restricted to the configured number of axes.
Declaration of the function
FUNCTION FC 24 : VOID
// NAME:
MCP_IFM2
VAR_INPUT
BAGNo :
BYTE ;
ChanNo:
BYTE ;
SpindleIFNo:
BYTE ;
END_VAR
VAR_OUTPUT
FeedHold :
BOOL ;
SpindleHold :
BOOL ;
SpindleDir:
BOOL ;
END_VAR
BEGIN
END_FUNCTION
Содержание SINUMERIK 828D Turning
Страница 34: ...Basic Functions 34 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 146: ...A3 Axis Monitoring Protection Zones 2 6 Data lists Basic Functions 146 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 328: ...F1 Travel to fixed stop 6 5 Data lists Basic Functions 328 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 816: ...K2 Axis Types Coordinate Systems Frames 10 9 Data lists Basic Functions 816 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1198: ...P4 PLC for SINUMERIK 828D 14 6 Function interface Basic Functions 1198 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1752: ...Appendix 20 2 Overview Basic Functions 1752 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1774: ...Glossary Basic Functions 1774 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...