N113 SPOS=IC(0.001) Incrementally traverse the spindle in the closed-loop positioncontrolled mode.By incrementally traversing the spindle in the closed-loop positioncontrolled mode, the NC again evaluates interface signalDB31, ... DBX17.6 (invert M3/M4).From this block onward, when traversing the spindle, the directionof reversal based on the interface signal is active.N114 SPOS=0 Optional: Position the spindle if, technologically, a defined outputposition is required, e.g. 0°ExampleProgram code CommentN010 G0 X0 Z0 ; Initial position of the axesN020 G1 G94 F1000 Z10 ; Traverse the Z axis to the initial positionN030 M3 S100 ; Traverse the spindle in the closed-loop speed controlledmode; 100 rpm with the spindle direction of rotation that wasdetermined; at the start of the program... ; Any arbitrary machiningN040 M5 ; Stop the spindle and switch into the closed-loop speedcontrolled modeN050 H10 ; Auxiliary function output: H0=10; In the PLC user program:; - set the read-in inhibit: DB21, ... DBX6.1=1; - invert the direction of rotation: DB31, ... DBX17.6; - reset the read-in inhibit: DB21, ... DBX6.1=0N060 STOPRE ; Preprocessing stopN070 SPOS=IC(0.001) ; Incrementally traverse the spindle in the closed-loop po-sition controlled mode.N080 SPOS=0 ; Position the spindleN090 G331 Z-10 K1 S500 ; Tapping without compensating chuckN100 G332 Z2 K1 ; Tapping without compensating chuck Retraction movementN110 G1 G94 F1000 Z10 ; Retract to the initial position of the Z axisN120 SPCOF ; Switch the spindle into the closed-loop speed controlledmodeN130 H10 ; See aboveN140 STOPRE ; Preprocessing stopN150 SPOS=IC(.001) ; Incrementally traverse the spindle in the closed-loop po-sition controlled mode.N160 SPOS=0 ; Position the spindleN170 G331 Z-10 K1 S500 ; Tapping without compensating chuckN180 G332 Z2 K1 ; Tapping without compensating chuck Retraction movementN190 G1 G94 F1000 Z10 ; Traverse the Z axis to the initial position...S1: Spindles18.2 Operating modesAxes and spindles768 Function Manual, 06/2019, A5E47437747B AA