Hello Guest it is March 29, 2024, 10:04:27 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 - davidimurray

Pages: « 1 2 3
21
VB and the development of wizards / Event Based Code
« on: June 05, 2006, 05:10:05 PM »
Hi

I'm writing a wizard to assist in calibrating the spindle. What I want to do is this :-

1) Have a 'start calibration' button that contains the main code
2) When you click this, the spindle starts and the spindle speed is incremented by an amount previously chosen by the user.
3) The user then measures the speed and enters it into a DRO.
4) The user then clicks a 'Next' button which stores the two values in an array, and then increments the spindle speed again
5) The procedure continues as above until the max speed is reached.

I've got some of it working. But I don't know how to implement the 'Next' button - any ideas greatly appreciated !

Cheers

Dave

22
VB and the development of wizards / Scripting DRO
« on: June 05, 2006, 08:06:17 AM »
Is it possible to add a script to a DRO ? I want to add a script to a user DRO to prevent a 0 value being entered and instead to set the value to 1.

Cheers

Dave

23
VB and the development of wizards / Wizard Startup
« on: June 02, 2006, 10:06:28 AM »
Hello

Is it possible to have a VB script associated with the startup of a wizard to reset variables etc?

Cheers

Dave

24
VB and the development of wizards / Using Arrays
« on: June 02, 2006, 10:05:10 AM »
Hello

Has anyone got any experience of using arrays ?

I want to create a 2 dimensional array that stores desired spindle speed against actual speed as entered by the user.

The values are taken fom two dro's - spindle speed and a user one.
Anybody done soemthing like this before?

Also will the array be available globally so I can use other buttons in a wizard to edit the array?

Cheers

Dave

25
General Mach Discussion / Toggle Spindle On
« on: June 01, 2006, 06:32:32 AM »
Hello

When you hit the 'spindle CW' it turns on the spindle. When you click it again should the spindle stop ? The PC I run for my mill operates like this. But I'm now trying to develop a wizard on my laptop and when I click the button the second time the light continues to flash.

Is this right ? I want to make a button to turn the spindle on and then click again to turn it off.

Cheers

Dave

26
Mach Screens / Starting A Wizard
« on: May 31, 2006, 10:16:20 AM »
Well - looks like I will start off this new area - thanks for adding it Brian  ;)

Right, I'm just starting to play with creating wizards and have a few questions :-

1) What screen resolution should a wizard be in ? I'm running Mach in 1024 and creating a screen in Screen4 in 1024, but when I run the wizard only the top left quarter of the screen can be seen in Mach and the buttons are enlarged.

2) I have an exit button on the screen. This is defined as a VB script. I then go into Mach and write the script. Close the script and when asked whether to save I say yes. I then click the button and it works and Mach says 'screen modified and saved' I then open the wizard click exit and it gives an error and the script is blank. What am I doing wrong?

I'm sure these will be the first of a long list of questions -  :P

Cheers

Dave

27
General Mach Discussion / Serial Toolchanger Macro
« on: March 25, 2006, 12:43:54 PM »
Hi

I was wondering if someone could help me. I'm working on the electronics for a friends lathe toolchanger. Using an Atmel AVR micro-controller, I've produced a board that accepts the tool number in the form of t1d, t2d etc with a CR on the end over a serial link. The tool is changed and once complete, the toolchanger sends back a t1s, t2s etc to show that the change is complete and the correct tool is selected.

I've written a macro that sends the code to the electronics and performs the toolchange. However I can't seem to get the serial input back in to work. I tried using getfifo entry in a while loop such that when getfifoentry does not = "none" it should leave the loop and enter the next section of code. However the code seems to get stuck in the while loop. Anyone have any ideas?

Cheers

Dave

Pages: « 1 2 3