Detailed Description
2.12 Block descriptions
PLC Basic Program Solution Line (P3 sl)
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
2-91
MCP/HHU monitoring (840D)
For communication with the machine control panels (MCPs), in the event of an error, the
following status information will be displayed (MPI, Ethernet only):
Available in: Bit No. Description
MCP1StatRec
MCP2StatRec
BHGStatRec
10 Receiver:
Timeout
SINUMERIK 840D only:
MCP1StatSend
MCP2StatSend
BHGStatSend
27 Transmitter:
Timeout
In addition, an error entry is generated in the diagnostics buffer of the PLC, resulting in the
following error messages on the HMI:
• 400260: MCP 1 failure or
• 400261: MCP 2 failure
• 400262: HHU failure.
In this case, the input signals from the MCP or from the handheld unit (MCP1In/MCP2In or
BHGIn) are reset to 0. If it is possible to resynchronize the PLC and MCP/HHU,
communication is resumed automatically and the error message reset by the GP.
840D example call
An example call for the FB 1 in OB 100 appears below. This example is part of the diskette
with basic program for 840D.
ORGANIZATION_BLOCK OB 100
VAR_TEMP
OB100_EV_CLASS : BYTE ;
OB100_STRTUP : BYTE ;
OB100_PRIORITY : BYTE ;
OB100_OB_NUMBR : BYTE ;
OB100_RESERVED_1 : BYTE ;
OB100_RESERVED_2 : BYTE ;
OB100_STOP : WORD ;
OB100_RESERVED_3 : WORD ;
OB100_RESERVED_4 : WORD ;
OB100_DATE_TIME : DATE_AND_TIME;
END_VAR
BEGIN
Call fb 1, db 7(
MCPNum := 1,