How to get the spindle output with a tool change

How to get the spindle output with a tool change

This is a simple tool-change shutdown macro that starts the spindle immediately following the tool change, despite where the CAM system might actually output the SPINDL command.

    %L01=$FGET(SPINDL,0,$FGET(GOTO))

 

    IF/%L01.GT.0

 

    TAPEWT

 

    TAPEOP/DELETE,%L01

 

    ENDOF/IF

To have the spindle command output with the tool change, place the macro code in the tool-change startup macro instead.

Benefit to User
Simple macros can be used to control the order of commands in the NC code, despite how they are ordered in the CAM aptsource file.

For more information or comments, please do not hesitate to contact Phil at TechTipTuesday@icam.com