Welcome, Guest. Please login or register.
Did you miss your activation email?
October 21, 2014, 02:03:18 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  General Mach Discussion
| | |-+  Macro Question
Pages: 1   Go Down
Print
Author Topic: Macro Question  (Read 1072 times)
0 Members and 1 Guest are viewing this topic.
rrc1962
Active Member

Offline Offline

Posts: 548


View Profile
« on: November 22, 2009, 05:38:48 PM »

I'm guessing that a macro is the way to go here, but not sure how to use them.  I want to execute a script from within a G-code program.  Would I write the script as a macro, name it...say M123, place it in the macro folder, then call it from G-code by placing M123 in the code?  I know how to use button scripts, just not sure how to execute VB script from G-code.

Thanks...
Logged
Hood
Mach4 Alpha

Online Online

Posts: 23,672


Carnoustie, North Britain (formerly k/a Scotland)


View Profile
« Reply #1 on: November 22, 2009, 05:43:46 PM »

Yes thats what you would do but make sure your macro has the m1s extension and that you place it within your profiles macro folder which is in the main macro folder.
Hood
Logged
rrc1962
Active Member

Offline Offline

Posts: 548


View Profile
« Reply #2 on: November 22, 2009, 07:51:51 PM »

Cool, Thanks.  Is there a list of available OEM DRO codes for custom use?  I have the list of OEM codes that Mach uses.  Can I just make up a number as long as it's not being used?  I saw a few labeled reserved, but some of those must be in use in the THC300 profile because I get odd results when I try to use them.

Logged
Hood
Mach4 Alpha

Online Online

Posts: 23,672


Carnoustie, North Britain (formerly k/a Scotland)


View Profile
« Reply #3 on: November 22, 2009, 07:59:31 PM »

User DROs are from 1000 to 2255

Hood
Logged
rrc1962
Active Member

Offline Offline

Posts: 548


View Profile
« Reply #4 on: November 22, 2009, 08:14:12 PM »

Excellent...Thanks very much.
Logged
Hood
Mach4 Alpha

Online Online

Posts: 23,672


Carnoustie, North Britain (formerly k/a Scotland)


View Profile
« Reply #5 on: November 23, 2009, 08:42:45 AM »

No problem Smiley
Hood
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!