Hello Guest it is April 18, 2024, 04:44:46 PM

Author Topic: Inventor not generating m3 in gcode  (Read 794 times)

0 Members and 1 Guest are viewing this topic.

Inventor not generating m3 in gcode
« 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

Offline reuelt

*
  •  520 520
    • View Profile
Re: Inventor not generating m3 in gcode
« Reply #1 on: December 08, 2022, 07:50:46 PM »
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.)
"the gift of God is eternal life through Jesus Christ our Lord"
Re: Inventor not generating m3 in gcode
« Reply #2 on: December 08, 2022, 10:28:16 PM »
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
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'

Offline reuelt

*
  •  520 520
    • View Profile
Re: Inventor not generating m3 in gcode
« Reply #3 on: December 09, 2022, 12:39:55 AM »
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)
    );
  }

"the gift of God is eternal life through Jesus Christ our Lord"