P3: Basic PLC program for SINUMERIK 840D sl
13.17 Block descriptions
Machine function INC
The HT 8 signals of the machine function INC are transferred differently depending upon the
active coordinate system MCS or WCS:
● Active coordinate system: MCS
The selected machine function INC is transferred for all 6 axes in the axis-specific interfaces
in DB31, ... .DBX5.0 to DBX5.5 (machine function) of the axes programmed in the table in
DB10.DBB8 to DBB13 (machine axis numbers) .
● Active coordinate system: WCS
For the axes 1 to 3 the signals of the machine function INC are transferred in the channel-
specific. Interface in DB21, ... .DBX13.0 to DBX13.5 (machine function) of the programmed
channel (Parameter: "ChanNo").
For the axes 4 to 6 the signals of the machine function INC are transferred in the channel-
specific. interfaces in DB31, ... .DBX5.0 to DBX5.5 (machine function) of the axes
programmed in the table in DB10.DBB11 to DBB13 (machine axis numbers).
The selection signals of the INC machine functions are transferred in the mode group-specific
interface DB11.DBB 2 + (n * 20), bit 0 to bit 5 (with n = 0, 1, 2, ...). The FC26 informs the NCK
about the activation of the mode group-interface for the INC machine functions once after
power-up with DB10.DBX57.0 (INC inputs active in the mode group area).
Handwheel selection
The hand-wheel selection signals are evaluated by HMI and transferred to the corresponding
NC/PLC interface signals of the machine or geometric axes:
● Geometry axes: DB21, ... DBB 12 + (n * 4), bit 0 to bit 2 (with n = 0, 1, 2)
● Machine axes: DB31, ... .DBX4.0 to DBX4.2
Requirement: FB1 parameters: "HWheelMMC" = TRUE
Multiple call in one PLC cycle
FC26 can be called a multiple number of times in a single PLC cycle. Upon the first call in the
PLC cycle:
● All actions of the parameterized blocks are executed
● The LED signals are written in the output area
● In case of selected WCS, the traversing key signals of the geometric axes are written
● The signals for the selection and deselection of the individual block are processed
When FC26 is called more often, then the channel and mode group interface are processed
at a reduced rate.
1056
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
Basic Functions