Hello Guest it is March 28, 2024, 11:36:02 AM

Author Topic: Font Engrave wizard X shift  (Read 2096 times)

0 Members and 1 Guest are viewing this topic.

Re: Font Engrave wizard X shift
« Reply #10 on: February 07, 2021, 09:46:23 AM »
:) About as random as I am firing up the snowmobile for the kids. Its Sunday!

Tell me how you make out and if you need me to remote in to look I am more than happy to do so.
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com
Re: Font Engrave wizard X shift
« Reply #11 on: February 07, 2021, 02:08:08 PM »
Hi Brian,

How did the snowmobile outing go?
My cake was Soooo Gooood   :-* Chocolate sponge with black cherry Jam (jelly?) mixed with cherry brandy as a filling.

Anyway serious stuff...
I replaced mcFPanel.lua in C:\Mach4Hobby\Modules\AddOns\FontEngraving with the module you gave me to download.
Started Mach4 and selected Simulation Device as the motion Device as I'm not at my CNC at the moment.
Restarted Mach4
I did not bother with zeroing the machine etc.
Opened "Select Wizard\FontEngrave"
Don't change anything, just hit "Save and load"
Point to a save file to save it in
this is the start of the Gcode that was loaded...
(Font Engraving)
G90 G80 G49 G55
G0 X0 Y0
S10000 M3
G00 Z1.0000 M8
X-39.5300 Y55.0150
Z0.2500

Close the Gcode file
Just repeat the above procedure to get this Gcode.
(Font Engraving)
G90 G80 G49 G55
G0 X0 Y0
S10000 M3
G00 Z1.0000 M8
X286.7100 Y55.0150
Z0.2500

The difference in the first X position is 326.24.
My soft X limit is 320 so the second shot at engraving is almost in the same position just one bed size over.

I'm not in any kind of rush to get this resolved so enjoy whatever is left of your weekend with the kids. :-)

Thanks for the support over a weekend!
DerekJ

P.S.
I tried to attach some cake for you but it made a mess on my computer keyboard when I tried to push it in :-(
DJ

P.P.S.
Should have said that the two lua files are the same size ((443,511 bytes)
« Last Edit: February 07, 2021, 02:12:07 PM by DerekJ »
Re: Font Engrave wizard X shift
« Reply #12 on: February 07, 2021, 03:26:07 PM »
Well I never closed the wizard ! That was the trick!

I got some of the cake on this end ... just enough to screw up the keys LOL.

Let me dig and see if I can make that go away! (this shifting that is)
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com
Re: Font Engrave wizard X shift
« Reply #13 on: February 07, 2021, 05:12:56 PM »
WOW did you ever put me down a rat hole!

I think I found the issue!
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com
Re: Font Engrave wizard X shift
« Reply #14 on: February 08, 2021, 09:29:36 AM »
Hi Brian.

Did you solve this issue? Is there a LUA file to download?

Sorry for spoiling your Sunday.
Derek
Re: Font Engrave wizard X shift
« Reply #15 on: February 08, 2021, 09:58:27 AM »
I fixed it once and didn't like how I did it so I am doing it over. I have been working on this thing for the entire morning! It has to do with global and local libs that where used. I am trying to clean all that up now :)
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com
Re: Font Engrave wizard X shift
« Reply #16 on: February 08, 2021, 11:15:56 AM »
OK thanks, don't rush for me if you have more important stuff to do.

Just so long as I didn't miss a download link or something in the previous post.

DJ
Re: Font Engrave wizard X shift
« Reply #17 on: February 08, 2021, 12:13:50 PM »
Well I think I got it how I like it .. You get to test it! LOL

Shifting gears to doing LUA is a struggle for me. In C++ I know exactly how I would make this happen. In Lua it will make things and you don't even know it! You think your looking at the same object but your not! Anyway I have a new way of doing things that was simple to pass the functions down for posting.


Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com
Re: Font Engrave wizard X shift
« Reply #18 on: February 08, 2021, 12:15:43 PM »
Here you are.. if it works I am ready for a stiff drink LOL
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com
Re: Font Engrave wizard X shift
« Reply #19 on: February 08, 2021, 12:38:36 PM »
Hi Brian,

Works for me!  :)
I replaced the entire FontEngrave folder in C:\Mach4Hobby\Modules\AddOns with the contents of your ZIP.

Below are the Gcodes collected in the same way as my previous post.
You can see that the X position is the same in both so enjoy that drink!

Thanks again
Derek


(Font Engraving)
G90 G80 G49 G55
G0 X0 Y0
S10000 M3
G00 Z1.0000 M8
X-39.5300 Y55.0150
Z0.2500


(Font Engraving)
G90 G80 G49 G55
G0 X0 Y0
S10000 M3
G00 Z1.0000 M8
X-39.5300 Y55.0150
Z0.2500