Hello Guest it is April 19, 2024, 07:12:17 PM

Author Topic: When changing from mm to inch unit  (Read 2943 times)

0 Members and 1 Guest are viewing this topic.

Re: When changing from mm to inch unit
« Reply #10 on: June 20, 2022, 07:49:29 AM »
Hi,
do not change the default units. Leave them alone. Now close Mach, I mean shut it right down so that all the data
gets flushed to the .ini file. Now restart.  You need to power cycle the ESS so that it reads the new firmware.

Run the code with a G20 and then with a G21. Make sure that there are no other G21/G20 commands anywhere in the Gcode file.
You should not at anytime have to revisit the motor tuning pages nor the default units page, they should stay the same.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: When changing from mm to inch unit
« Reply #11 on: June 20, 2022, 08:28:06 AM »
I think I'm the only one who's crazy.

[Image 1] So I brought the inch version that everyone is using.
And I drew a 2-inch square exactly.

[Image 2] In that state, I changed it to metric units.
And restart.

[Image 3] MDI ordered the operation, but it looks 2mm in DRO
The real moving distance drew a 2 inch square.

Isn't it strange that I'm the only one like this?

Then is there anyone who can tell me what the problem is?
Re: When changing from mm to inch unit
« Reply #12 on: June 20, 2022, 08:32:48 AM »
I just uploaded and joeaverage replied.
I'll be right back after trying it out.
Re: When changing from mm to inch unit
« Reply #13 on: June 20, 2022, 09:11:18 AM »
When I came back and tried to correct it, the reply time passed.


Unfortunately, I've tried many refreshes
The change in the unit shown in the DRO was only formal.
In the meantime, the license code flew away.
(often happens)

I rebooted the computer, turned off the controller with built-in ESS, and restarted it, but the symptoms did not change.

I think I'll have a headache again tomorrow and be very tired.

I thank everyone for their attention!
« Last Edit: June 20, 2022, 09:18:50 AM by Chul Kim »

Offline Stuart

*
  •  311 311
    • View Profile
Re: When changing from mm to inch unit
« Reply #14 on: June 20, 2022, 10:22:24 AM »
with reference to your last post "the licence code flew away often happens "

that comment made me think that you have a pc system fault

please tel us your pc specifications
ie windows ver other software running

back to basics when you change any setting in the mach4 setting drop down or the mach4 plug in you MUST power your mill down and exit mach4 ( preferably then turn off the power to both )

you say the licence "flew away" please try to tell us what happens is this because of a system crash 


now please do not take offence at this question but where did you get the licence for Mach4 from ? if it is not licensed correctly it will randomly shut down and not save its INI file correctly , it will run in sym mode but not when a motion controller is attached
« Last Edit: June 20, 2022, 10:28:12 AM by Stuart »
Re: When changing from mm to inch unit
« Reply #15 on: June 20, 2022, 07:31:59 PM »
dear Stuart

The reply is late because there is a one-day time difference with South Korea.

It's early in the morning, and I was looking forward to it because I switched from Mach4-control to inch before I went straight to CNC and turned off the power.

There's something I haven't cared about so far.
It changed to Demo Version and PCID.
Of course, it didn't even work as an inch unit.

I changed to mm unit again and rebooted and came back to Hobby.
Of course, it worked well with mm.

Change to inch again, turn off the mach4, turn off the controller, and a little later
I turned on the controller again and ran Mach 4, but it was marked inch only on the DRO, and it became the same as the previous one.

It's a situation that you won't understand, but it's happening here.

It was officially licensed and purchased Mach4.

CNC has also been using high-quality parts for years to make woodworking crafts.

I don't feel the need to work in inches, because I was curious about the simple transition that you described.

Now, if you want to use it, you have to make a folder dedicated to "mm" or "inch" with motor tuning as shown in the attached picture.

I'm leaving the forum now because it seems to be wasting more time for everyone.

I hope the health and well-being of everyone who has paid attention.
Re: When changing from mm to inch unit
« Reply #16 on: June 20, 2022, 07:36:34 PM »

I'm adding it because the picture doesn't go up any more.

And machine.The conversion of the G20/G21 was not found in the ini

Should I go through another .ini file? It's really hard ^^

Offline Stuart

*
  •  311 311
    • View Profile
Re: When changing from mm to inch unit
« Reply #17 on: June 21, 2022, 02:11:50 AM »
g20/21 is found in the gcode from your CAM software


something in your pc is corrupting the setup files hence the licence changes you mention

and yes your English is 1000% better than my Korean

can you tell us what version of mach4 you are using the version on the download page has a few problems
« Last Edit: June 21, 2022, 02:15:23 AM by Stuart »
Re: When changing from mm to inch unit
« Reply #18 on: August 26, 2022, 10:17:55 PM »
I think I'm the only one who's crazy.

[Image 1] So I brought the inch version that everyone is using.
And I drew a 2-inch square exactly.

[Image 2] In that state, I changed it to metric units.
And restart.

[Image 3] MDI ordered the operation, but it looks 2mm in DRO
The real moving distance drew a 2 inch square.

Isn't it strange that I'm the only one like this?

Then is there anyone who can tell me what the problem is?

No, you aren't crazy. I've experienced this working with a company on their machine before.

They wanted to sell international and we were using imperial for the entire screenset the whole time we were developing the code for operation.

When we switched to metric, we had to change the counts per unit, velocity and acceleration for each motor in the motors tab of the Mach4 configuration.

The formula for calculation steps per unit is the giveaway here, as you need to put in the intended distance traveled to calculate it. (current steps * distance intended) / actual distance. That calculation WILL NOT be the same if you are using a different unit.

Just changing the units you are using in Mach4 DOES NOT change the steps per unit. It would be a nice additional feature to change it automatically for each motor if you choose to change the units, but I know from experience it DOES NOT.

The DRO's are just a GUI form element so you might need to go into the screen editor and change the way the DRO displays either inches or mm.

I posted a newer 'easier to use' wizard for calculating the steps per unit here:
https://www.machsupport.com/forum/index.php?topic=43830.msg281953#msg281953

The latest revision of that wizard is in the 5th post down on that forum post in a zip file. Just put it in your wizards directory in Mach4 and the wizard is called stepsCalc 

« Last Edit: August 26, 2022, 10:20:05 PM by compewter_numerical »
Re: When changing from mm to inch unit
« Reply #19 on: August 26, 2022, 11:33:45 PM »
I wish I'd known more in advance.
When I change the unit from mm to inch,
Automatically, the values such as step and counter acceleration of the motor used in the existing mm units did not change to fit in inch units.
I hope that his explanation will be a good guide for those who have told me in the meantime.

Thank you - compewter_numerical^^