P3: Basic PLC Program for SINUMERIK 840D sl
13.13 Block descriptions
Basic Functions
1062 Function Manual, 09/2011, 6FC5397-0BP40-2BA0
Parameter
Call examples
Call of the FC 26 for the first MCP, the first mode group and the first channel of the NC.
Call of the FC 26 for the second MCP, the second mode group and the third channel of the NC.
General function description
The function FC26 "HPU_MCP (nachine control panel-signals of the hand-held unit HT8" transfers the HT8-
specific signals of the following functions between the HT8-input/output data areas parameterized in the function
block FB 1 (Parameter: MCPxIn and MCPxOut) and the NC/PLC-interface:
• Mode groups
• Machine function INC
• Coordinate system WCS or MCS
• Axial traverse key
• Axis selection
• Feed override
Parameter
Ty
pe
Type Value range Comment
BAGNo I BYTE 1. MCP:
B#16#00 - B#16#0A
Upper nibble: Number of the MCP whose
signals are to be transferred.
0 = 1. MCP, 1 = 2. MCP
Lower nibble: Number of the mode group, in
which the mode group-specific interface signals
are to be transferred. The mode group-specific
signals are not processed, if the mode-group
number is 0.
2. MCP:
B#16#10 - B#16#1A
ChanNo I BYTE B#16#00 - B#16#0A Number of the channel, in which the channel-
specific interface signals are to be transferred.
The channel-specific signals are not processed,
if the channel number is 0.
Type: I = input parameter, O = output parameter
CALL FC 26 ( //Machine control panel of HT8
BAGNo := B#16#01, //1.MCP, 1.BAG
ChanNo := B#16#01); //Channel 1
CALL FC 26( //Machine control panel of HT8
BAGNo := B#16#12, //2.MCP, 2.BAG
ChanNo := B#16#03 ); //Channel 3