Detailed Description
2.12 Block descriptions
PLC Basic Program Solution Line (P3 sl)
2-142 Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
Note
Input parameter “MCPEnable” must be set to true to enable MCP switchover. The default
value of these parameters is set in this way and need not be specially assigned when the
function is called.
Interrupts, errors
The output parameters "Alarm1" to "Alarm6" and "Report" exist as information in the PLC
and are output in the event of M to N errors visualized on the HMI by the appearance of
interrupts 410900 - 410906.
If execution of an HMI function has failed (and an appropriate error message cannot be
displayed), status parameter ErrorMMC is set to 'logic 1' (e.g., booting error when no
connection is made).
Example of FB1 call (call in OB100)
CALL "RUN_UP", "gp_par" (
MCPNum := 1,
MCP1In := P#I 0.0,
MCP1Out := P#Q 0.0,
MCP1StatSend := P#Q 8.0,
MCP1StatRec := P#Q 12.0,
MCP1BusAdr := 255, // Address of 1st MCP
MCP1Cycl := S5T#200MS,
MCP1Stop := TRUE, // MCP switched off
NCCyclTimeout := S5T#200MS,
NCRunupTimeout := S5T#50S);
Example of override switchover
// Auxiliary flags used M100.0, M100.1, M100.2, M100.3
// Positive edge of MCP1Ready must check override and actions for activation
// Initiate MCP block
// This example covers feed override; for spindle override, interfaces and
// input bytes must be exchanged.
U DB10.DBX 104.0; //MCP1Ready
EN M 100.0; //Edge trigger flag 1
JCN smth1;
S M 100.2; //Set auxiliary flag 1
R M 100.3; //Reset auxiliary flag 2