Hello Guest it is April 19, 2024, 10:52:16 PM

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 - Tarak

Pages: « 1 2 3 4 5 6 7 8 »
61
I think the screen I'm making would look nice.....
You can get an idea from the attached Pic.

62
I think I've looked everywhere (obviously not)
I'm trying to press a button to zero my grinding wheel, then it changes the offset to suit, as per below:

1 Set grinding wheel at zero (approx -37.3 in machine coords) (I've successfully done this)
2 press button ZERO WHEEL (I've successfully done this)
3 changes to machine coords (I can't work out how to do this, at the moment I'm doing this manually)
4 copy's the value in machine coords to a second DRO, but a positve value. (I've got it copying, just not in a positive value)
5 change back to work coords (I can't work out how to do this, at the moment I'm doing this manually)
6 Moves out to home switch (I've successfully done this)
7 Copies the value from the second DRO into the work coords (I've successfully done this)
8 Voilla!!

I'm trying to take a negative value from one DRO and put the same value into another DRO, but a positive value.
The way I do this on a cnc is as follows, I'm just can't get the syntax correct for VB.

#1=-10.00
X[#1-[#1*2]]

This is as far as I've gotten

'change to machine coords here
y=GetDRO(1)
While IsMoving()
Wend
SetOEMDRO(1202,y)
'change to work coords here
DoButton( 23 )
While IsMoving()
Wend
y=GetUserDRO(1202)
CODE "G92Y" &y   

Thanks

63
Yep me again, is it possible to have 1 external button (much the same as a cycle start), that will run the previous VB script that was run?
I have multiple buttons that all have there own script, but I was thinking it would be nice if you could click the correct button on the screen for the first time, then after that the user could just keep pressing this external button, until a different script is needed etc.etc.
Thanks

64
Thanks fella's, I'll also try to help people as much as I can.................

65
I have multiple buttons that run a different program each (see pic), is it possible to have a display that shows how long it has taken from start to finish for the VB script each time it is run.
The display I currently have will only display the time of a loaded program that runs.
Is there a way to do this?

66
Mach Screens / How do I use an OEM code with VB?
« on: April 11, 2007, 06:00:23 PM »
I've got a button that runs g code
e.g
CODE "G90 G00 X10.0"

Before the code runs I would like it to close any open G code program (just in case).
I noticed on the CLOSE G CODE BUTTON the OEM code is 169.
How do I use this OEM with VB?
Thanks.

67
Is it possible to make the machine not operate unless it is homed after switching on power?

68
I've got this topic in another of my posts, but thought it may get a few more looks in it's own topic.
I've searched the forums and looked in Mach3 but I can't seem to work out how to get a DRO and a button that runs a program to interact.
I think I'm close, I want to have a DRO that you can put a measurement into and when you press a button it will use this measurement in the program, this is what I have.
Create a DRO, I assigned it to DIAMETER OF CURRENT TOOL (which I think is OEM code 105), should I select DIAMETER OF CURRENT TOOL from the drop down or should I enter the OEM code 105?

Create a button and assign VB code to it as follows:

Material = GetOEMDRO (105)
CODE "#1=Material"     ;In theory if 20 is entered into the DRO, Material should =20
CODE "G90 G55 G21 
CODE "G00 Y[#1*2]    ;Rapid to Y40
CODE "G01 Y#1 F100  ;Linear travel to Y20
CODE "G00 Y[#1*2]    ;Rapid back to Y40
CODE "M30"

What am I doing wrong?

69
I would like to run a small program, that will also turn on an LED
e.g
CODE "TURN LED ON HERE"
CODE "G90 G55 G21"
CODE "G00 Y100."
CODE "G01 Y110. F100"
CODE "G00 Y300."
CODE "M30"
CODE "TURN LED OFF HERE"

What's the best way to achieve this?

70
I can't work out why all my VB scripts have stopped working, including the standard Homing button............
It doesn't seem to matter what screen I am on, I select EDIT BUTTON SCRIPT, just so I can see what buttons have scripts.
And if I press ANY of them it doesn't do a thing............what have I done to cause this?

Pages: « 1 2 3 4 5 6 7 8 »