1
Mach4 Toolbox / Spindle WarmUp Wizard
« on: February 17, 2015, 04:13:36 PM »
Here is a wizard to make the code to warm up a spindle. Place this mcs file in the Wizards folder for M4 and use it from the Wizards pull-down menu.

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
--[[--------------------------------------------------------------------------------------------------------
||_/\\\\____________/\\\\_____/\\\\\\\\\___________/\\\\\\\\\__/\\\________/\\\____________/\\\____________
||_\/\\\\\\________/\\\\\\___/\\\\\\\\\\\\\______/\\\////////__\/\\\_______\/\\\__________/\\\\\____________
||__\/\\\//\\\____/\\\//\\\__/\\\/////////\\\___/\\\/___________\/\\\_______\/\\\________/\\\/\\\___________
||___\/\\\\///\\\/\\\/_\/\\\_\/\\\_______\/\\\__/\\\_____________\/\\\\\\\\\\\\\\\______/\\\/\/\\\__________
||____\/\\\__\///\\\/___\/\\\_\/\\\\\\\\\\\\\\\_\/\\\_____________\/\\\/////////\\\____/\\\/__\/\\\_________
||_____\/\\\____\///_____\/\\\_\/\\\/////////\\\_\//\\\____________\/\\\_______\/\\\__/\\\\\\\\\\\\\\\\_____
||______\/\\\_____________\/\\\_\/\\\_______\/\\\__\///\\\__________\/\\\_______\/\\\_\///////////\\\//_____
||_______\/\\\_____________\/\\\_\/\\\_______\/\\\____\////\\\\\\\\\_\/\\\_______\/\\\___________\/\\\______
||________\///______________\///__\///________\///________\/////////__\///________\///____________\///______
||++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
||
||++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
||
|| By ::: NJL Bodini
||
|| Mach 4 Build ::: 1817
||
|| Date ::: 06 04 2014
||
|| Script Desc ::: Pause script execution while an axis is in motion (m4 version of IsMoving )
||
||++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]]
inst = mc.mcGetInstance()
mc.mcCntlGcodeExecute(inst, "g91 g1 x1") --execute gcode
while (mc.mcCntlIsStill(inst)==1) do --loops through this while an axis is moving
mc.mcCntlSetLastError(inst, "axis in motion") --do this while axis is moving
end --ends the loop
mc.mcCntlSetLastError(inst, "axis is stopped") --continues here after axis is done moving
mc.mcCntlGcodeExecute(inst, "g90") --execute gcode