Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 01:14:03 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  Converting Fanuc MacroB to MACH macro
Pages: 1   Go Down
Print
Author Topic: Converting Fanuc MacroB to MACH macro  (Read 1711 times)
0 Members and 2 Guests are viewing this topic.
vmax549
Guest
« on: March 27, 2008, 10:14:09 AM »

Has anyone ever attempted to convert a fanuc macroB code into a MACH macro???

THere a lot of neat fanuc macros out there to do cool jobs. If anyone is interested I can post a short example of thread milling an NPT pipe thread.

Another would be to engrave sequential serial numbers from inside a Gcode program and be able to input a start# and each time it ran it incremented to the next number.

(;-) TP
Logged
Graham Waterworth
Administrator
*
Online Online

Posts: 1,665


West Yorkshire, England



View Profile WWW
« Reply #1 on: March 27, 2008, 04:39:21 PM »

I have wanted to be able to do this for a long time, the problem is that not all the commands are supported in Mach3 IF, GOTO, WHILE, LOOP, etc are all missing and will probably never be added.

Without loops and comparisons it is impossible to convert all but the most basic macro.

Graham.
Logged

G-Code is on the cutting edge

Autovalues Engineering, CNC machining specialists, Bradford, England
vmax549
Guest
« Reply #2 on: March 27, 2008, 05:07:23 PM »

Hi Graham, yep there are some pretty cool macros in macroA and B


You know the original (emc) type code did support using the O word to do conditional programming with if then goto,etc.
Have you ever tried it in mach? then are many hidden features of mach that show up from time to time.


Have you ever tried doing it totally inside of a macro useing CODE"" to support the gcode side?Huh?


UNdocumented Gcodes?Huh?

G8
G9
G32
G44
G48
G65
G87
G96
G97

I have decifered some of them (;-)

(;-) TP
« Last Edit: March 27, 2008, 05:12:32 PM by vmax549 » Logged
Graham Waterworth
Administrator
*
Online Online

Posts: 1,665


West Yorkshire, England



View Profile WWW
« Reply #3 on: March 27, 2008, 06:31:13 PM »

Hi Terry,

Yes many times, the 'O' codes have been disabled/removed  Sad

They do not error out they are just ignored.

I once asked Art to activate them, his response was "to many problems with it".

Graham.
Logged

G-Code is on the cutting edge

Autovalues Engineering, CNC machining specialists, Bradford, England
vmax549
Guest
« Reply #4 on: March 27, 2008, 08:02:40 PM »

Hi Graham,  It's a shame, the condition prgraming is nice.  I redid a "simple" MacroB over to a Mach VB macro and that was a pain being you cannot call or set vars directly you have to reroute everything just to do a simple IF ,THEN.



I don't think Brian likes conditional code either so That idea is probably a bust. If I get time I will attempt to bring the serial number engraver over to MACH VBmacro. I remember someone a while back asking for that in mach. It does a 3 digit S/N but it can be expanded to as many as you need.

OH well at least you tried. Thanks (;-) TP
Logged
Graham Waterworth
Administrator
*
Online Online

Posts: 1,665


West Yorkshire, England



View Profile WWW
« Reply #5 on: March 28, 2008, 11:49:01 AM »

Send me the macro and I will see if I can come up with a solution.

Graham.
Logged

G-Code is on the cutting edge

Autovalues Engineering, CNC machining specialists, Bradford, England
vmax549
Guest
« Reply #6 on: March 28, 2008, 12:03:52 PM »

HI Graham you r email was hiiden so I'll post the file here(;-)

* SNengrave.txt (5.04 KB - downloaded 79 times.)
Logged
Pages: 1   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!