Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: chris_kline on December 08, 2022, 10:06:11 AM
-
Hi Guys
im new to this forum, and a kinda novice at machining. im having a problem with the spindle on my cnc not starting via the gcode. i opened the gcode in notepad, and noticed that inventor cam studio is not generating an m3 gcode to start the spindle.
currently im using flood coolant gcode m8 to start the spindle, but i cant figure out how to get inventor to just generate the M3 gcode
any help would be much appreciated
thanks
-
It is so easy to just edit the GCODE file to add one or two line depending on material used.
e.g
M3 S16,000
Most CAD/CAM program will omit the M3 because some machines have spindles that must be turned on manually and speed set manually outside MACH 3 (eg a Makita or Dewalt or Bosch wood ROUTER is used). Some may want to spin the Spindle in reverse and need have to use M4 instead of M3.)
-
Hi,
that is a fault, or more likely an incorrect setting within the post.
Any CAM software that cannot generate m3's, m4's etc is just plain junk, or at least only appropriate for the lowest level hobby machines,
and that is certainly not the description of Inventor.
Craig
-
You are right Joe
following lines cut from Inverter HSM Post for Mach3 show that Spindle RPM and direction of rotation is defined with each "tool" defined in Inventor.
if (insertToolCall ||
isFirstSection() ||
(rpmFormat.areDifferent(tool.spindleRPM, sOutput.getCurrent())) ||
(tool.clockwise != getPreviousSection().getTool().clockwise)) {
if (tool.spindleRPM < 1) {
error(localize("Spindle speed out of range."));
return;
}
if (tool.spindleRPM > 99999) {
warning(localize("Spindle speed exceeds maximum value."));
}
writeBlock(
sOutput.format(tool.spindleRPM), mFormat.format(tool.clockwise ? 3 : 4)
);
}