I'd recommend trying version 3.041, as 2.63 is pretty old now and a lot has changed internally in Mach. Also, try coding it this way:
DoOEMButton(233)
DoOEMButton(1000)
or:
Activatesignal(OUTPUT4)
DoOEMButton(1000)
I'm struggling here, I'm looking to create some very simple screens to run a bespoke machine, but the code for my buttons is refusing to run ! The screens have been created in mach3screen 2.7, and they open just fine in Mach3 2.63.
I can open the button code in mach3 using the operator->edit button script and it runs properly. Pressing the button normally doesn't do anything though. The code is very simple at the moment:
DoButton( 233 )
DoButton( 1000 )
Setting up two buttons and allocating them to the two codes works fine, but I really don't want the operator to need to press two buttons. Also I'm stubborn, and the software should be able to do this !
If I can get this to work i stand a chance of moving forward from here.
Tim
I'd recommend trying version 3.041, as 2.63 is pretty old now and a lot has changed internally in Mach. Also, try coding it this way:
DoOEMButton(233)
DoOEMButton(1000)
or:
Activatesignal(OUTPUT4)
DoOEMButton(1000)
Gerry
Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Thanks Gerry, but I've tried DoButton and DoOEMButton, I've tried with spaces around the numbers and without. Even putting just one of them in the code window doesn't work. Putting just the number in the OEM code box just above works fine for single commands with a button push.
2.63 is the last stable release listed, and 4.04 is listed as development. In our commercial environment I need to be sure that we are working on a stable platform, so am reluctant to take on anything marked as development. Surely buttons have been working in 2.63 ?
Tim
Try using the older screen designer and adding the code in the screen designer.
Gerry
Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
OK - not quite sure what's going on here, but I noticed that the VBScript buttons on the other screens didn't work on my laptop development environment either. They do work on the desktop running the machine though, which is strange.
Tim