Hello Guest it is March 29, 2024, 09:21:53 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.


Messages - davidimurray

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 »
101
VB and the development of wizards / Re: Wizard Startup
« on: June 06, 2006, 08:47:24 AM »
Marvellous - just the job - I'm guessing that you've done this before Brian  ;)

Cheers

Dave

102
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

103
General Mach Discussion / Re: Relay
« on: June 05, 2006, 08:43:28 AM »
Assuming that this is a solid state relay, are you sure your mains supply is good. The relay I have at home to control my spindle will drop out if the mains supply deviates too much and even if the frequency moves outside limits.

Can you wire a switch across the relay so that you can still use the relay but manually control it with the switch. Try running your programs again and see if it still cuts out. This should hopefully isolate whether it is between the relay and motor or relay and PC.

Cheers

Dave

104
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

105
Mach Screens / Re: Starting A Wizard
« on: June 05, 2006, 06:27:41 AM »
Brian

Tried using another wizard to start with and still seem to get funny results - I suspect it is the same thing as in this thread :-

http://machsupport.com/forum/index.php?topic=746.0

I think it's time to sit back and wait and see what happens.

Cheers

Dave

106
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

107
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

108
General Mach Discussion / Re: Assign commands to joystick
« on: June 01, 2006, 08:48:17 AM »
Hi

Why not change the hot key in screen4 ? Try doing this :-

Open screen4 (located in the Mach folder)
Open the 1024.set screenset
Find the 'Goto Z' button, double click on the button and a menu will pop up.
About 3/4 of the way down you will see 'Hot Key' and it hsould be ticked.
Click to untick and then retick the box. You should now get a message asking you to type the key you want to use.
Choose a key, then exit the dialog, save the screen and reload mach.
You should now be able to hit your chosen key and assign this to the joystick.

The default code for 'Goto Z' is 32847 - perhaps someone can tell us what key combination this is.

Presume your using the 'Playstation' type controller - thinking I'm going to get myself one of them!

Cheers

Dave

109
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

110
Mach Screens / Re: Starting A Wizard
« on: June 01, 2006, 05:56:07 AM »
I've just been having a play and it seems that Mach can sometimes over-enlarge the screen. See the pictures below :-
In screen4

In Mach


Notice that in Mach the bottom button is missing.

Cheers

Dave

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 »