Hi Tom:
Sorry, I meant to respond to this earlier. You need the SetMacroTrigger() script call. Calling a user script is a bit of a kludge. You call SetTriggerMacro( MacroNumber) , the macronumber is the file number like m666.m1s woudl be SetTriggerMacro( 666 );
Then you use OEMTrigger on function #301 to actiavate that file. The SetMacroTrigger must be called before the OEMTrigger on function 301 will work.
(Im thinking of a new way to do that which is easier, but its a bit of a bitch to get user buttons, they dont exist till the program is fully iniitialised..)
Thanks,
Art
www.artofcnc.ca
Videos And Support Forums
Users Map:
toggle quoted message
Show quoted text
----- Original Message -----
From: "caudlet" <thom@...>
To: <mach1mach2cnc@...>
Sent: Saturday, June 03, 2006 12:05 PM
Subject: [mach1mach2cnc] User Button activation from an input
Does anybody know (or suspect) a way to call a button activation from
a input for a user defined button. You need a number to call and I
can't find any number ID for user made buttons. I want to be able to
activate a custom button that has a script of g-code behind it from a
pendant...
www.machsupport.com - Web site Access
Yahoo! Groups Links