P3: Basic PLC Program for SINUMERIK 840D sl
13.13 Block descriptions
Basic Functions
1044 Function Manual, 09/2011, 6FC5397-0BP40-2BA0
Channel signals
Call example
With these parameter settings, the signals are sent to the 1st mode group, the 1st channel and all axes. In
addition, the spindle override is transferred in the 4th axis/spindle interface. The feed hold signal is passed to bit
memory 22.0 and the spindle stop signal to data block DB2, data bit 151.0.
Reconnecting the axis selections
To ensure a flexible assignment of the axis selection keys to the appropriate axis or spindle, FC 19 needs not be
modified or reprogrammed. The axis number simply has to be entered in axis table DB10.DBB8 and followed as
required: The axis number simply has to be entered in axis table DB10.DBB8 and followed as required:
Example:
The spindle is defined as the 4th axis and must be selected via axis key 9.
Destination:
MCP - LED
Source:
Interface DB (parameter ChanNo)
NC start DB21, ... .DBX35.0
NC stop DB21, ... .DBX35.2 or DB21, ... .DBX35.3
Single Block DB21, ... .DBX0.4
Note
Direction key LEDs are controlled by operating the direction keys.
Axis selection and WCS/MCS LEDs are controlled by operating the relevant pushbutton
switch.
CALL FC 19 ( //Machine control panel M variants Signals to interface
BAGNo := B#16#1, //Mode group no. 1
ChanNo := B#16#1, //Channel no. 1
SpindleIFNo := B#16#4, //Spindle interface number = 4
FeedHold := m22.0, //Feed stop signal modal
SpindleHold := db2.dbx151.0); //Spindle stop modal in
//message DB
Solution:
The value 4 must be entered in DB10 byte (8+(9-1)) for the 4th axis.
CALL FC 19 ( //signals to interface
BAGNo := B#16#1, //Mode group no. 1
ChanNo := B#16#1, //Channel no. 1
SpindleIFNo := B#16#4, //Spindle interface number = 4
FeedHold := m30.0, //Feed stop signal modal
SpindleHold := m30.1); //Spindle stop modal