Mach Discussion > VB and the development of wizards
What is wrong with this Code?
(1/1)
attila0216:
So i have created a button in screen4 designer, for my plasma cutter if i press feedhold machine stops and torch off(brain turns off torch). Now this button suppose to watch Pause LED state and if OEMled 805 active , should start M3 code and cycle start. It does start if i press, but, unfortunatelly starts even if 805 led not active. So what am i doing wrong ?
GetOemLed 805 = 1
DoSpinCW
DoOEMbutton (1000)
TPS:
--- Code: ---If GetOemLed(805) = True Then
DoSpinCW()
DoOEMbutton (1000)
End If
--- End code ---
attila0216:
Thank you! I'LL GIVE A TRY TONIGHT AFTER WORK! I'll let you know if it worked or not.
attila0216:
Ok. So i have tried you Code. Unfortunatelly Mach starts to run even if not in Pause state. So ignores 805 led state. I don't know why
attila0216:
Ignore previous Post of mine. My mistake. Used wrong M code under button :) Works great! Big thank you!
Navigation
[0] Message Index
Go to full version