1311
General Mach Discussion / Re: Hood.....where is he?
« on: April 29, 2011, 05:02:26 AM »
Best wishes Hood
Cheers
Ian
Cheers
Ian
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
You can't call a macro from a macro....can you?
Ian
The advantage of using a brain is the timer safety. If the switch/button is held for less than the specified time (2 sec) then nothing happens.
Can you give us an example of how to do this in the trigger macro. It would be very handy to know how this is done.
Would it be an if/then with a pause and recheck input?
Greg
'wait before doing checks so that a trigger must still be active after 2 secs for the following to succeed
sleep 2000
'if T1 is still active i.e. button is still pressed after 2 secs and spindle is off
If isActive(OEMTRIG1) and not getOEMLED(116) Then
'paste your Z axis tool setting code here
End If
'if T2 is still active i.e. button is still pressed after 2 secs and spindle is off
If isActive(OEMTRIG2) and not getOEMLED(116) Then
'paste your A axis tool setting code here
End If