Hello Guest it is April 26, 2024, 03:45:22 AM

Show Posts

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.


Topics - RDilworth

Pages: 1
1
VB and the development of wizards / M3 and M5 not working
« on: June 04, 2012, 10:25:15 AM »
I have a small VB program assigned to a button that does a cycle start [DoOEMButton(1000)] and runs a Gcode file already loaded into Mach. Once the Gcode run is finished the VB code checks an input and if it is active, it loops back and does another cycle start. The issue is: when I run the Gcode manually (click on the cycle start button) everything works as it should, however when the cycle start comes from the VB code the M3 (spindle on) and M5 (spindle off) functions do not work. Any ideas?

2
General Mach Discussion / Set focus to DRO question
« on: December 08, 2009, 11:34:40 AM »
I am setting up a simple Mach screen to control one axis (X). I set up a USERDRO(1249) to enter the measurement in inches I want the axis to move to. I have a button on the screen with some VB code that generates the g-code necessary for the move. At the end of the VB code I have a KeyPress command that uses the hotkey I assigned to the DRO so the focus goes back to the DRO when the movement is finished. Everything worked great on my laptop, but I want to use a keypad controler that plugs into a USB port. The keypad controller works if I use it to assign the hotkeys, but then the VB code doesn't work. The reason being that the keypad controller uses a different hotkey code than the actual keyboard. For example, if I assign the '+' key on the keypad as the hotkey the KeyPress code in the VB script doesn't work if you use a '+'.
Is there a way to use the actual hotkey code in a KeyPress command or is there another way I don't know about to send the focus back to the DRO using a VB script.

Thanks in advance,
Rob

Pages: 1