Hi Nick,
Nick wrote: I've found that if I make subroutine for сircle it wont turn on the spindle, how do you think, where should we put M3/M5 (and probably M4 for CCW spindle rotation depending on the mill bit)?
You need to do a tool change first and set parameters.
"Post action" is what happens after you change the tool and click OK : 'Pause' will pause linuxcnc until you click play again (this is usefull for spindle that is not controlled by linuxcnc, you do a manual start of the spindle then click play to continue) 'Pause then restart' is also used with manual spindle restart but you do not have to click play button, the pause will last 'Pause for' seconds. 'Auto restart' will start the spindle and continue automatically
'Use cooling' will do what it is supposed to do
M9 is used before tool change (do you really need M5 ?)
For M3 and M4, I would add this :
[PARAM_SPINDLE_DIR]
name = Spindle direction
type = combo
options = Clockwise=3:Counterclockwise=4
icon = cw-ccw.png
tool_tip = Select tool rotation
value = 3
and put in the order after speed
then change M3 in [CALL] to M#param_spindle_dir
Also delete these 2 lines that are not used anymore :
#<_tool_dia> = #5410
#<_tool_d> = #5410
Nick wrote: By the way, I've added difining spindle speed and feed into tool change. There was parameters but they were not used in the ini.
You are right, they are not used in the ini but in the ngc files. Let's look at fv_circle.ngc
at line 120 and 121, it sets F#<_ffeed> and S#<_spindle_rpm>
starting at line 134, if you need to plunge down directly in the material without X or Y move, it will use F#<_vertical_feed>, then when cut step is reached, it will revert to F#<_ffeed>. When the cut depth is reached, it will use F#<_final_feed> and S#<_final_spindle_rpm> for a final loop.
The same steps are used in the other ngc's
Does this answer your question ?
Regards,
Fern