Hello Guest it is April 24, 2024, 07:20:37 AM

Author Topic: Engraving text  (Read 12081 times)

0 Members and 1 Guest are viewing this topic.

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Engraving text
« Reply #10 on: April 21, 2011, 11:30:06 PM »
OK found a bunch of old code done 2 ways one is throught VB macro and the other is through Gcode Subs.

The Gcode subs has always been rock dependable so I will clean up that version first.

The way it will work is you load all the subs A-Z into the sub directory. You would then set a few variable to define the width height and spacing

#500=1.000 #501=.100 #502=1.00
#1=8.0 #2=-.02 #3=15 #4=40 #5=1.0 #7=30

You only have to define these once per session of mach. Mach holds them inMEM until it is shut down. We can also make these so mach will always remeber them until you change them.

Then all you have to do is call the sub via the M98 call



M98 (C.txt)
M98 (A.txt)
M98 (T.txt)

Mach will then cut CAT.  

I f this is what you are looking for then I will clean it all up and post it.

(;-) TP
« Last Edit: April 21, 2011, 11:31:42 PM by BR549 »

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: Engraving text
« Reply #11 on: April 22, 2011, 02:50:11 AM »
A dodge I've used before to pass a string to a macro is to gcode something like:

...
(some text)
M750
...

Then in the macro use the apparantly undocumented "getMessage" function. You should probably plate this up a tad like:

(%some text%) and check for the %s just in case an otherwise generated message springs up and overwrites the message before you read it.

Ian

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Engraving text
« Reply #12 on: April 23, 2011, 04:17:33 PM »
OK I have placed the Engraving Subs in the MACH TOOL BOX. There is also a set of instructions on how they work.

As always test them for your application FIRST.

Have Fun (:-) TP
Re: Engraving text
« Reply #13 on: April 23, 2011, 04:40:39 PM »
Hi TP

Thanks heaps for your help, I will give it a go, but I am pretty sure it will work perfectly for me.

Regards
Andrew