Table 13-9 Channel signalsDestination:MCP - LEDSource:Interface DB (parameter ChanNo)NC start DB21, ... .DBX35.0NC stop DB21, ... .DBX35.2 or DB21, ... .DBX35.3Single block DB21, ... .DBX0.4NoteDirection key LEDs are controlled by operating the direction keys.Axis selection and WCS/MCS LEDs are controlled by operating the relevant pushbutton switch.Call exampleCALL FC19( //Machine control panel M variants Signals to interfaceBAGNo := B#16#1, // Mode group no. 1ChanNo := B#16#1, // Channel no. 1SpindleIFNo := B#16#4, // Spindle Interface Number = 4FeedHold := m22.0, // Feed stop signal modalSpindleHold := db2.dbx151.0); //Spindle stop modal in//message DBWith these parameter settings, the signals are sent to the first mode group, the first channeland 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 blockDB2, data bit 151.0.Reconnecting the axis selectionsTo ensure a flexible assignment of the axis selection keys to the appropriate axis or spindle,FC19 needs not be modified or reprogrammed. The axis number simply has to be entered inaxis table DB10.DBB8 and followed as required: The axis number simply has to be entered inaxis table DB10.DBB8 and followed as required:ExampleThe spindle is defined as the 4th machine axis and must be selected via axis key 9.Solution:The value 4 must be entered in DB10 byte (8+(9-1)) for the 4th axis.CALL FC19( // Signals to interfaceBAGNo := B#16#1, // Mode group no. 1ChanNo := B#16#1, // Channel no. 1SpindleIFNo := B#16#4, // Spindle Interface Number = 4P3: Basic PLC program for SINUMERIK 840D sl13.17 Block descriptionsBasic Functions1036 Function Manual, 01/2015, 6FC5397-0BP40-5BA2