Switchover Of Machine Control Panel, Handheld Unit - Siemens SINUMERIK 840D sl Function Manual

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

Advertisement

P3: Basic PLC program for SINUMERIK 840D sl
13.10 Structure and functions of the basic program
Relevant parameters (FB1)
MCP
MCPNum = 1 or 2 (number of MCPs)
MCP1In
MCP1Out
MCP1StatSend (n.r.)
MCP1StatRec
MCP1BusAdr (n.r.)
MCP1Timeout
MCP1Cycl
MCPMPI = FALSE
MCP1Stop
MCPBusType = b#16#36
(as in the figure as example)
MCPSDB210= FALSE
MCPCopyDB77 = FALSE
MCP failure normally switches the PLC to the STOP state. If this is undesirable, then OB82,
OB86 can be used to avoid a PLC stop. The basic program has, as standard, the OB82 and
OB86 call. FC5 is called in these OBs. This FC5 checks whether the failed slave is an MCP.
If this is the case, no PLC stop is triggered. The input address at parameter MCPxIn is of
significance when monitoring for MCPxIn failure.
Setting MCPxStop:= TRUE causes the basic program to deactivate the MCP as a slave via
SFC12. If the PLC does not switch to the stop state following the failure or fault of the MCP,
an alarm message will be generated via the basic program. The alarm is deleted when the
station returns.
13.10.12

Switchover of machine control panel, handheld unit

Only Ethernet variants support switchover/deactivation of an operator component (MCP or
HHU) as standard.
PROFIBUS variant
With PROFIBUS variants, this functionality is only possible to a limited extent and with
additional user effort.
With the PROFIBUS variant of the MCP, the data area of the DB77 for specified MCP1, MCP2
or HHU can be used for the MCP pointer on FB1. The MCP slave bus address must be set
correctly under MCPxBusAdr as this is used as the basis for monitoring. A user program copy
876
MCP2In
MCP2Out
MCP2StatSend (n.r.)
MCP2StatRec
MCP2BusAdr (n.r.)
MCP2Timeout
MCP2Cycl
MCP2Stop
(6 = PROFINET for MCP1)
(3 = PROFIBUS for MCP2)
HHU
HHU = 5 (via CP 840D sl)
BHGIn
BHGOut
BHGStatSend
BHGStatRec
BHGInLen
BHGOutLen
BHGTimeout (n.r.)
BHGCycl (n.r.)
BHGRecGDNo
BHGRecGBZNo (n.r.)
BHGRecObjNo (n.r.)
BHGSendGDNo (n.r.)
BHGSendGBZNo (n.r.)
BHGSendObjNo (n.r.)
BHGMPI = FALSE
BHGStop
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
Basic Functions

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents