Hello Guest it is April 23, 2024, 03:06:37 PM

Author Topic: G21 scale all with 25.4  (Read 2120 times)

0 Members and 1 Guest are viewing this topic.

G21 scale all with 25.4
« on: June 21, 2014, 06:36:38 AM »
Hi,
I have problem that if cambam add G21 to code it will cause mach3 to multiply all numbers with 25.4. If I remove that line then all works well and units are millimeters in file and mach3 but if there is G21 row it will multiply all units ~25.4. So it thinks that I have something in inch mode and it will try scale them to millimeters? What I need change that it will understand that all units are in millimeters in first place?

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: G21 scale all with 25.4
« Reply #1 on: June 21, 2014, 06:53:13 AM »
Config >Select Native Units, and set to mm.

If it was in inches, you'll need to change  your steps/unit in motor tuning and re-adjust your velocity and acceleration.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: G21 scale all with 25.4
« Reply #2 on: June 21, 2014, 06:54:29 AM »
No, point is that g-code is in millimeters allready. If I remove that G21 line then all works fine.

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: G21 scale all with 25.4
« Reply #3 on: June 21, 2014, 07:07:40 AM »
Before you load the code that causes the scaling, look at the upper right of the screen. Is there a G20 or G21 in the status line? If there's a G20, then you're in inch mode. If it says G21 before you load the code, it shouldn't be doing any scaling.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html