P3: Basic PLC Program for SINUMERIK 840D sl
13.13 Block descriptions
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
1055
Call example
13.13.26 FC 24: MCP_IFM2 transmission of MCP signals to interface
Function
With FC MCP_IFM2 (M variant slim machine control panel e.g. MCP 310), the following are transferred from the
machine control panel (MCP) to the corresponding signals of the NCK/PLC interface:
• Mode groups
• Axis selections
• WCS/MCS switchover
• Traversing keys
• Overrides or override simulation signals
In the basic program (FC 2), handwheel selections, modes and other operating signals continue to be transferred
from the operator panel front or HMI to the NCK/PLC interface so that the modes support selection from the MCP
or HMI.
Transfer of HMI signals to the interface can be deactivated by setting the value of the parameter "MMCToIF" to
"FALSE" in FB 1 (DB 7). "MMCToIF" can also be activated/deactivated in the cyclic program by setting and
resetting (e.g. R gp_par.MMCToIF).
The following specifications apply to the feed override, axis travel keys and INC keys depending on the active
mode or on the coordinate system selected:
CALL FC 22 (
//Tool management direction selection
MagNo :=
2,
//Magazine number
ReqPos :=
mw 20,
//Target position
ActPos :=
mw 22,
//Current position
Offset :=
b#16#0,
//Offset for special positioning
Start :=
m 30.4,
//Start trigger
//Return parameters
Cw :=
m 30.0,
//Move magazine
//in anticlockwise direction
Ccw :=
m 30.1,
//Move magazine
//in anticlockwise direction
InPos :=
m 30.2,
//Magazine in position
Diff :=
mw 32,
//Differential path
Error :=
m30.3
//Error has occurred
);