·82·
Programming manual
CNC 8055
CNC 8055i
5.
ISO CODE PROGRAMMING
·M· & ·EN· MODELS
SOFT: V02.2X
Auxiliary function (M)
5.7.7 M19. Spindle orientation
With this CNC it is possible to work with the spindle in open loop (M3, M4) and with the spindle in
closed loop (M19).
In order to work in closed loop, it is necessary to have a rotary encoder installed on the spindle of
the machine.
To switch from open loop to closed loop, execute function M19 or M19 S±5.5. The CNC will act as
follows:
• If the spindle has a home switch, the CNC modifies the spindle speed until it reaches the one
set by spindle machine parameter "REFEED1".
It then searches for actual marker pulse (Io) of the spindle encoder at the turning speed set by
spindle machine parameter REFEED2.
And, finally, it positions the spindle at the programmed S±5.5 point.
• If the spindle does not have a home switch, it searches the encoder marker pulse at the turning
speed set by spindle machine parameter REFEED2.
And, then, it positions the spindle at the programmed S±5.5 point.
If only M19 is executed, the spindle is oriented to position "I0".
To, now, orient the spindle to another position, program M19 S±5.5, the CNC will not perform the
home search since it is already in closed loop and it will orient the spindle to the indicated position.
(S±5.5).
The S±5.5 code indicates the spindle position, in degrees, from the spindle reference point (marker
pulse).
The sign indicates the counting direction and the 5.5 value is always considered to be absolute
coordinates regardless of the type of units currently selected.
Example:
S1000 M3
Spindle in open loop.
M19 S100
The spindle switches to closed loop. Home search and positioning (orientation) at 100º.
M19 S -30
The spindle orients to -30º, passing through 0º.
M19 S400
The spindle turns a whole revolution and positions at 40º.
During the M19 process the screen will display the warning: “M19 in execution"