Siemens SINUMERIK 840D sl Function Manual page 978

Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

P3: Basic PLC program for SINUMERIK 840D sl
13.17 Block descriptions
Example of a call for FB (call in the OB100)
CALL "RUN_UP", "gp_par" (
Example: Override switchover
// Auxiliary flags used M100.0, M100.1, M100.2, M100.3
//Edge positive of MCP1Ready must check the override
//and measures for activation
// Initiate MCP block
//This example applies to the feedrate override;
//The interface and input bytes must be exchanged for spindle override.
U
EN
JCN smth1;
S
R
// Save override
wei1:
U
O
JCN smth2;
U
FP
JC smth2;
U
R
JC smth2;
U
978
MCPNum
MCP1In
MCP1Out
MCP1StatSend
MCP1StatRec
MCP1BusAdr
MCP1Timeout
MCP1Cycl
MCP1Stop
NCCyclTimeout
NCRunupTimeout
DB10.DBX104.0;
M
100.0;
M
100.2;
M
100.3;
L DB21.DBB4;
T EB28;
M
100.2;
DB10.DBX104.0;
DB10.DBX104.0;
M
100.1;
M
100.2;
M
100.2;
M
100.3;
:= 1,
:= P#I 0.0,
:= P#Q 0.0,
:= P#Q 8.0,
:= P#Q 12.0,
:= 255,
:= S5T#700MS,
:= S5T#200MS,
:= TRUE,
:= S5T#200MS,
:= S5T#50S);
//MCP1Ready
// Edge memory bit 1
// Set auxiliary memory bit 1
//Reset auxiliary flag 2
//Feed override interface
//Buffer storage (freely input
// or flag byte)
//Switchover takes place
//MCP1Ready
//MCP1Ready
// Edge memory bit 2
//Switchover takes place
//Reset auxiliary flag 1
//Comparison has taken place
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
// Address of 1st MCP
// MCP switched off
Basic Functions

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents