Siemens SINUMERIK 840Di Function Manual page 1068

Basic machine
Hide thumbs Also See for SINUMERIK 840Di:
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents