January 2012 6.18 Spindles 1017
Spindle control by
PLC
The PLC controls the spindle by using the following modules:
Module 9412: Stop the spindle, see page 1018
Module 9413: Rotate the spindle, see page 1019
Module 9414: Position the spindle (M19), see page 1027
Module 9416 Select gear range and assigned settings for spindle, see page
1568.
Module 9417: Set shaft speed for spindle
Module 9418: Set status for spindle, see page 684
The status is queried by
Module 9410: Read spindle status
In order to remain compatible with old PLC programs that use the numerical
programming interface API 1.0, PLC Module 9171 is available as an alternative
(see "Module 9171 Start of a spindle orientation with adjustable parameters"
on page 1021).
Module 9410 Read spindle status
The module reads the status of the specified spindle.
This module is only supported by the new symbolic memory interface. If the
iTNC-compatible programming interface is used (API 1.0), the module returns
an error.
Call:
PS B/W/D/K <>Spindle index>
CM 9410
PL D <>Spindle status>
1: No job active – Last job was OK
2: No job active – Last job was faulty
3: Job is being executed
PL D <>Spindle mode>
1: Spindle at standstill
2: Spindle turning clockwise
3: Spindle turning counterclockwise
4: Spindle is position-looped (M19)
Error recognition:
PP_SpiEnable = 1 must be set for a spindle movement to be executed.
Marker Value Meaning
NN_GenApiModule
Error
0 Status ascertained
1 Error code in NN_GenApiModuleErrorCode
NN_GenApiModule
ErrorCode
2 Invalid spindle number
99 Module is not supported (control does not
operate with symbolic memory interface)