开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Set Trigger Macro not working.


 

I'm trying to use a 2nd parallel port's signals to handle my pendant
needs using a PMG and push buttons. I have found VB Script routines and
other helpful information here but now (after 2 days) I could sure use
some help with my basic macro script failure. The following is what I
have done so far.
1.In ports & pins I set pendant button inputs to OEMTrigger# 1.
2. Created a macro named M991.m1s to select MPG mode."If IsActive29)
then DoOEMButton(327)". This works,when pendant button is pressed and
script is ran. MPG mode is selected.
3. Went to hotkeys setup and put 327 for trigger# 1. I pressed the
pendant button and MPG mode was selected. (It worked) Then I changed
the 327 to 301 for trigger# 1.
4. Created a macro named M999.m1s to trigger macro M991.m1s. "Set
TriggerMacro(991)". When this script is ran I get a message Compile
error,Syntax error. Is this normal ?.
5. Went to Initial.. string and added a M999 to the string.
6. Restarted Mach3 R1.84.000
7. Pressed pendant button and it doesn't go to MPG mode. Am I missing
somthing ?. Will this work with Demo version ?. All help appreciated
Thanks. Steve


art
 

Hi Steve:


3. Went to hotkeys setup and put 327 for trigger# 1. I pressed the
pendant button and MPG mode was selected. (It worked) Then I changed
the 327 to 301 for trigger# 1.
4. Created a macro named M999.m1s to trigger macro M991.m1s. "Set
TriggerMacro(991)". When this script is ran I get a message Compile
SetTriggerMacro( 991 ) should work fine. Syntax error means it didne see it properly, misspellign perhaps?

This has to pass properly, else the 301 will not have a number to trigger. Id focus on the syntax error. Just open the

VB scripter and type SetTriggerMacro( 991 ) , does it run?


5. Went to Initial.. string and added a M999 to the string.
What string..you lost me here...


6. Restarted Mach3 R1.84.000
7. Pressed pendant button and it doesn't go to MPG mode. Am I missing
somthing ?. Will this work with Demo version ?. All help appreciated
No macros are limited in demo mode, must be some logic thing .. Try the above.. Does it run by itself?

Thanks
Art