The Shop > Software Tools

Editing MACH 3 Screen Sets

<< < (2/3) > >>

PK:
So the best way to do this is to get Mach3 to enable THC when it starts or when it resets.
This is a little hard for me to test because I can't get Mach3 to come out of reset. But it does work on another setup I lashed up for testing

Make a file called M1001.m1s in Mach3/macros/PLPlasma and put this in it.

If GetOEMLED(24) = 0 Then
   DoOEMButton(123)
End If

make sure you have a carriage return and a blank line at the end.
Restart Mach3 and go to config->general config

add M1001 to the end of the init string.
restart mach3

awemawson:
PK thank you so much. I'll give it a whirl when I escape to the work shop !

awemawson:
PK,

Tested and works a treat, many thanks  :thumbup:

I think I'll add M1001 to my post processor string as well

PK:
Mach3 scripting seems a little arcane, but it's mostly about knowing what those OEMLED, DRO and CODE numbers are.. 
All of that information is concealed here http://www.machsupport.com/Mach3Wiki/index.php?title=Main_Page

Otherwise it's pretty standard basic script.
PK

awemawson:
PK, I'd found that document and had tried a custom Macro file before you kindly helped, but I hadn't realised the need for a blank line after the code and was getting compile errors  :bang:

(ps please destroy the .lic file on the zip I sent you - it's an old one from the chap I bought the table from, so unfair to spread it around  :bugeye: )

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version