EasyManua.ls Logo

Siemens SINUMERIK 840DE SL - Page 1068

Siemens SINUMERIK 840DE SL
2050 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Detailed description
2.12 Block descriptions
Power Line Basic PLC Program (P3)
2-156 Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
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.
V 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
// Save override
L DB21.DBB 4; //Feed override interface
T EB 28; //Buffer storage (freely assignable input or
memory byte)
wei1:
V M 100.2; //Switchover takes place
O DB10.DBX 104.0; //MCP1Ready
JCN smth2;
V DB10.DBX 104.0; //MCP1Ready
FP M 100.1; //Edge trigger flag 2
JC smth2;
V M 100.2; //Switchover takes place
R M 100.2; //Reset auxiliary flag 1
JC smth2;
V M 100.3; //Comparison has taken place
JC MCP; //Call MCP program
// Guide the stored override to the interface of the switched MCP
// until the override values match
L EB28; //Buffer storage open
T DB21.DBB 4; //Guide override interface
L EB 3; //Override input byte for feed
<>i; //Match?
JC smth2; //No, jump
S M100.3; //Yes, set auxiliary flag 2
// When override values match, call the MCP program again
MCP: CALL "MCP_IFM"( //FC 19
BAGNo := B#16#1,
ChanNo := B#16#1,
SpindleIFN
o
:= B#16#0,

Table of Contents

Other manuals for Siemens SINUMERIK 840DE SL

Related product manuals