Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 08:22:04 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  General Mach Discussion
| | |-+  Engraving text
Pages: « 1 2   Go Down
Print
Author Topic: Engraving text  (Read 783 times)
0 Members and 2 Guests are viewing this topic.
BR549
Active Member

Offline Offline

Posts: 2,557


View Profile
« Reply #10 on: April 21, 2011, 10: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, 10:31:42 PM by BR549 » Logged
stirling
Global Moderator
*
Offline Offline

Posts: 1,190

UK


View Profile WWW
« Reply #11 on: April 22, 2011, 01: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
Logged
BR549
Active Member

Offline Offline

Posts: 2,557


View Profile
« Reply #12 on: April 23, 2011, 03: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
Logged
babinda01
Active Member

Offline Offline

Posts: 27


View Profile
« Reply #13 on: April 23, 2011, 03: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
Logged
Pages: « 1 2   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!