Re: Mach3 - weird coodinate shift with inch/mm gcode change
Hey!
I am experiencing the same exact issue and I was wondering if you or anyone else can help me to figure out what I am doing wrong. I am new to mach3, as I recently switched from GRBL. I am using Aspire/Vcrave to generate some gcodes so I can machine it in mach3. for some reason the mach3 keeps up-scaling any gcode I try to load like by X10!
I have the mach3 set up to mm and the gcode is set to metric for sure. For some reason the mach3 reads millimeters as if the were centimeters, i.e if the gcode was 100 x 100 x 6 mm it show it as 100 x 100 x 6 cm!
At this point I am not sure how to deal with this issue.
I will be really thankful if anyone can provide help or a solution.
Thanks in advance!
Re: Mach3 - weird coodinate shift with inch/mm gcode change
How are your units set up in CAD/CAM?
Re: Mach3 - weird coodinate shift with inch/mm gcode change
Everything is setup to mm.
Take the gcode bellow as an example, which I have already tired. it suppose to be 35 x 35 x 1.6mm however, mach3 sees it as 35 x 35 x 1.6cm. I ran it as well as other gcodes while down-scaling mach3 to 0.10000 and they all run as they should. I am just trying to find if there's a setting I need to change in mach3.
Thank you
T1
G17
G21
G90
G0Z10.0000
G0X0.0000Y0.0000S2000M3
G0X61.8275Y126.3275Z0.5000
G1Z-0.2000F200.0
G1Y127.6725F200.0
G1X63.1725
G1Y126.3275
G1X61.8275
G1X60.5575Y125.0575
G1Y128.9425
G1X64.4425
G1Y125.0575
G1X60.5575
G1X59.2875Y123.7875
G1Y130.2125
G1X65.7125
G1Y123.7875
G1X59.2875
G1X58.0175Y122.5175
G1Y131.4825
G1X66.9825
G1Y122.5175
G1X58.0175
G1X56.7475Y121.2475
G1Y132.7525
G1X68.2525
G1Y121.2475
G1X56.7475
G1X55.4775Y119.9775
G1Y134.0225
G1X69.5225
G1Y119.9775
G1X55.4775
G1X54.2075Y118.7075
G1Y135.2925
G1X70.7925
G1Y118.7075
G1X54.2075
G1X52.9375Y117.4375
G1Y136.5625
G1X72.0625
G1Y117.4375
G1X52.9375
G1X51.6675Y116.1675
G1Y137.8325
G1X73.3325
G1Y116.1675
G1X51.6675
G1X50.3975Y114.8975
G1Y139.1025
G1X74.6025
G1Y114.8975
G1X50.3975
G1X49.1275Y113.6275
G1Y140.3725
G1X75.8725
G1Y113.6275
G1X49.1275
G1X47.8575Y112.3575
G1Y141.6425
G1X77.1425
G1Y112.3575
G1X47.8575
G1X46.5875Y111.0875
G1Y142.9125
G1X78.4125
G1Y111.0875
G1X46.5875
G0Z0.5000
G0X61.8275Y126.3275
G1Z-0.4000F762.0
G1Y127.6725F2540.0
G1X63.1725
G1Y126.3275
G1X61.8275
G1X60.5575Y125.0575
G1Y128.9425
G1X64.4425
G1Y125.0575
G1X60.5575
G1X59.2875Y123.7875
G1Y130.2125
G1X65.7125
G1Y123.7875
G1X59.2875
G1X58.0175Y122.5175
G1Y131.4825
G1X66.9825
G1Y122.5175
G1X58.0175
G1X56.7475Y121.2475
G1Y132.7525
G1X68.2525
G1Y121.2475
G1X56.7475
G1X55.4775Y119.9775
G1Y134.0225
G1X69.5225
G1Y119.9775
G1X55.4775
G1X54.2075Y118.7075
G1Y135.2925
G1X70.7925
G1Y118.7075
G1X54.2075
G1X52.9375Y117.4375
G1Y136.5625
G1X72.0625
G1Y117.4375
G1X52.9375
G1X51.6675Y116.1675
G1Y137.8325
G1X73.3325
G1Y116.1675
G1X51.6675
G1X50.3975Y114.8975
G1Y139.1025
G1X74.6025
G1Y114.8975
G1X50.3975
G1X49.1275Y113.6275
G1Y140.3725
G1X75.8725
G1Y113.6275
G1X49.1275
G1X47.8575Y112.3575
G1Y141.6425
G1X77.1425
G1Y112.3575
G1X47.8575
G1X46.5875Y111.0875
G1Y142.9125
G1X78.4125
G1Y111.0875
G1X46.5875
G0Z0.5000
G0X61.8275Y126.3275
G1Z-0.6000F762.0
G1Y127.6725F2540.0
G1X63.1725
G1Y126.3275
G1X61.8275
G1X60.5575Y125.0575
G1Y128.9425
G1X64.4425
G1Y125.0575
G1X60.5575
G1X59.2875Y123.7875
G1Y130.2125
G1X65.7125
G1Y123.7875
G1X59.2875
G1X58.0175Y122.5175
G1Y131.4825
G1X66.9825
G1Y122.5175
G1X58.0175
G1X56.7475Y121.2475
G1Y132.7525
G1X68.2525
G1Y121.2475
G1X56.7475
G1X55.4775Y119.9775
G1Y134.0225
G1X69.5225
G1Y119.9775
G1X55.4775
G1X54.2075Y118.7075
G1Y135.2925
G1X70.7925
G1Y118.7075
G1X54.2075
G1X52.9375Y117.4375
G1Y136.5625
G1X72.0625
G1Y117.4375
G1X52.9375
G1X51.6675Y116.1675
G1Y137.8325
G1X73.3325
G1Y116.1675
G1X51.6675
G1X50.3975Y114.8975
G1Y139.1025
G1X74.6025
G1Y114.8975
G1X50.3975
G1X49.1275Y113.6275
G1Y140.3725
G1X75.8725
G1Y113.6275
G1X49.1275
G1X47.8575Y112.3575
G1Y141.6425
G1X77.1425
G1Y112.3575
G1X47.8575
G1X46.5875Y111.0875
G1Y142.9125
G1X78.4125
G1Y111.0875
G1X46.5875
G0Z0.5000
G0X61.8275Y126.3275
G1Z-0.8000F762.0
G1Y127.6725F2540.0
G1X63.1725
G1Y126.3275
G1X61.8275
G1X60.5575Y125.0575
G1Y128.9425
G1X64.4425
G1Y125.0575
G1X60.5575
G1X59.2875Y123.7875
G1Y130.2125
G1X65.7125
G1Y123.7875
G1X59.2875
G1X58.0175Y122.5175
G1Y131.4825
G1X66.9825
G1Y122.5175
G1X58.0175
G1X56.7475Y121.2475
G1Y132.7525
G1X68.2525
G1Y121.2475
G1X56.7475
G1X55.4775Y119.9775
G1Y134.0225
G1X69.5225
G1Y119.9775
G1X55.4775
G1X54.2075Y118.7075
G1Y135.2925
G1X70.7925
G1Y118.7075
G1X54.2075
G1X52.9375Y117.4375
G1Y136.5625
G1X72.0625
G1Y117.4375
G1X52.9375
G1X51.6675Y116.1675
G1Y137.8325
G1X73.3325
G1Y116.1675
G1X51.6675
G1X50.3975Y114.8975
G1Y139.1025
G1X74.6025
G1Y114.8975
G1X50.3975
G1X49.1275Y113.6275
G1Y140.3725
G1X75.8725
G1Y113.6275
G1X49.1275
G1X47.8575Y112.3575
G1Y141.6425
G1X77.1425
G1Y112.3575
G1X47.8575
G1X46.5875Y111.0875
G1Y142.9125
G1X78.4125
G1Y111.0875
G1X46.5875
G0Z0.5000
G0X61.8275Y126.3275
G1Z-1.0000F762.0
G1Y127.6725F2540.0
G1X63.1725
G1Y126.3275
G1X61.8275
G1X60.5575Y125.0575
G1Y128.9425
G1X64.4425
G1Y125.0575
G1X60.5575
G1X59.2875Y123.7875
G1Y130.2125
G1X65.7125
G1Y123.7875
G1X59.2875
G1X58.0175Y122.5175
G1Y131.4825
G1X66.9825
G1Y122.5175
G1X58.0175
G1X56.7475Y121.2475
G1Y132.7525
G1X68.2525
G1Y121.2475
G1X56.7475
G1X55.4775Y119.9775
G1Y134.0225
G1X69.5225
G1Y119.9775
G1X55.4775
G1X54.2075Y118.7075
G1Y135.2925
G1X70.7925
G1Y118.7075
G1X54.2075
G1X52.9375Y117.4375
G1Y136.5625
G1X72.0625
G1Y117.4375
G1X52.9375
G1X51.6675Y116.1675
G1Y137.8325
G1X73.3325
G1Y116.1675
G1X51.6675
G1X50.3975Y114.8975
G1Y139.1025
G1X74.6025
G1Y114.8975
G1X50.3975
G1X49.1275Y113.6275
G1Y140.3725
G1X75.8725
G1Y113.6275
G1X49.1275
G1X47.8575Y112.3575
G1Y141.6425
G1X77.1425
G1Y112.3575
G1X47.8575
G1X46.5875Y111.0875
G1Y142.9125
G1X78.4125
G1Y111.0875
G1X46.5875
G0Z0.5000
G0X61.8275Y126.3275
G1Z-1.2000F762.0
G1Y127.6725F2540.0
G1X63.1725
G1Y126.3275
G1X61.8275
G1X60.5575Y125.0575
G1Y128.9425
G1X64.4425
G1Y125.0575
G1X60.5575
G1X59.2875Y123.7875
G1Y130.2125
G1X65.7125
G1Y123.7875
G1X59.2875
G1X58.0175Y122.5175
G1Y131.4825
G1X66.9825
G1Y122.5175
G1X58.0175
G1X56.7475Y121.2475
G1Y132.7525
G1X68.2525
G1Y121.2475
G1X56.7475
G1X55.4775Y119.9775
G1Y134.0225
G1X69.5225
G1Y119.9775
G1X55.4775
G1X54.2075Y118.7075
G1Y135.2925
G1X70.7925
G1Y118.7075
G1X54.2075
G1X52.9375Y117.4375
G1Y136.5625
G1X72.0625
G1Y117.4375
G1X52.9375
G1X51.6675Y116.1675
G1Y137.8325
G1X73.3325
G1Y116.1675
G1X51.6675
G1X50.3975Y114.8975
G1Y139.1025
G1X74.6025
G1Y114.8975
G1X50.3975
G1X49.1275Y113.6275
G1Y140.3725
G1X75.8725
G1Y113.6275
G1X49.1275
G1X47.8575Y112.3575
G1Y141.6425
G1X77.1425
G1Y112.3575
G1X47.8575
G1X46.5875Y111.0875
G1Y142.9125
G1X78.4125
G1Y111.0875
G1X46.5875
G0Z0.5000
G0X61.8275Y126.3275
G1Z-1.4000F762.0
G1Y127.6725F2540.0
G1X63.1725
G1Y126.3275
G1X61.8275
G1X60.5575Y125.0575
G1Y128.9425
G1X64.4425
G1Y125.0575
G1X60.5575
G1X59.2875Y123.7875
G1Y130.2125
G1X65.7125
G1Y123.7875
G1X59.2875
G1X58.0175Y122.5175
G1Y131.4825
G1X66.9825
G1Y122.5175
G1X58.0175
G1X56.7475Y121.2475
G1Y132.7525
G1X68.2525
G1Y121.2475
G1X56.7475
G1X55.4775Y119.9775
G1Y134.0225
G1X69.5225
G1Y119.9775
G1X55.4775
G1X54.2075Y118.7075
G1Y135.2925
G1X70.7925
G1Y118.7075
G1X54.2075
G1X52.9375Y117.4375
G1Y136.5625
G1X72.0625
G1Y117.4375
G1X52.9375
G1X51.6675Y116.1675
G1Y137.8325
G1X73.3325
G1Y116.1675
G1X51.6675
G1X50.3975Y114.8975
G1Y139.1025
G1X74.6025
G1Y114.8975
G1X50.3975
G1X49.1275Y113.6275
G1Y140.3725
G1X75.8725
G1Y113.6275
G1X49.1275
G1X47.8575Y112.3575
G1Y141.6425
G1X77.1425
G1Y112.3575
G1X47.8575
G1X46.5875Y111.0875
G1Y142.9125
G1X78.4125
G1Y111.0875
G1X46.5875
G0Z0.5000
G0X61.8275Y126.3275
G1Z-1.6000F762.0
G1Y127.6725F2540.0
G1X63.1725
G1Y126.3275
G1X61.8275
G1X60.5575Y125.0575
G1Y128.9425
G1X64.4425
G1Y125.0575
G1X60.5575
G1X59.2875Y123.7875
G1Y130.2125
G1X65.7125
G1Y123.7875
G1X59.2875
G1X58.0175Y122.5175
G1Y131.4825
G1X66.9825
G1Y122.5175
G1X58.0175
G1X56.7475Y121.2475
G1Y132.7525
G1X68.2525
G1Y121.2475
G1X56.7475
G1X55.4775Y119.9775
G1Y134.0225
G1X69.5225
G1Y119.9775
G1X55.4775
G1X54.2075Y118.7075
G1Y135.2925
G1X70.7925
G1Y118.7075
G1X54.2075
G1X52.9375Y117.4375
G1Y136.5625
G1X72.0625
G1Y117.4375
G1X52.9375
G1X51.6675Y116.1675
G1Y137.8325
G1X73.3325
G1Y116.1675
G1X51.6675
G1X50.3975Y114.8975
G1Y139.1025
G1X74.6025
G1Y114.8975
G1X50.3975
G1X49.1275Y113.6275
G1Y140.3725
G1X75.8725
G1Y113.6275
G1X49.1275
G1X47.8575Y112.3575
G1Y141.6425
G1X77.1425
G1Y112.3575
G1X47.8575
G1X46.5875Y111.0875
G1Y142.9125
G1X78.4125
G1Y111.0875
G1X46.5875
G0Z0.5000
G0Z10.0000
G0X0.0000Y0.0000
M5
Re: Mach3 - weird coodinate shift with inch/mm gcode change
That code works just fine on my install of Mach3.
Where did you buy your Mach3 License, is it in your name?
Re: Mach3 - weird coodinate shift with inch/mm gcode change
Are the "units per" settings in the Mach3 config correct, or did someone use cm instead of mm there?
Re: Mach3 - weird coodinate shift with inch/mm gcode change
Quote:
Everything is setup to mm.
home your machine then zero the X then in the MDI put g0x100 f500 and check if the machine moves 100mm
Re: Mach3 - weird coodinate shift with inch/mm gcode change
Quote:
Originally Posted by
magicniner
That code works just fine on my install of Mach3.
Where did you buy your Mach3 License, is it in your name?
Yes, the license is mine. I purchased it from a local woodworking shop.
Re: Mach3 - weird coodinate shift with inch/mm gcode change
Quote:
Originally Posted by
Neale
Are the "units per" settings in the Mach3 config correct, or did someone use cm instead of mm there?
The mach3 units per are config to mm.
When I go under the config > select native units > there're 2 options only, inches and mm. and mine is set to mm.
Can you set it to use a cm instead of mm? If so, how to change it back to mm?
Thanks!
Re: Mach3 - weird coodinate shift with inch/mm gcode change
Quote:
Originally Posted by
Clive S
home your machine then zero the X then in the MDI put g0x100 f500 and check if the machine moves 100mm
If I put g0x100 f500, my machine will run out of its limits. But if I put g0x10 f500 it will move 100mm (10cm) perfectly.
Thanks
Re: Mach3 - weird coodinate shift with inch/mm gcode change
Quote:
If I put g0x100 f500, my machine will run out of its limits. But if I put g0x10 f500 it will move 100mm (10cm) perfectly.
Well then I think that the steps per are wrong on the drives