Hello Guest it is April 26, 2024, 09:20:05 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 - Tarak

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 »
181
Thanks fella's, I'll also try to help people as much as I can.................

182
Thanks heaps, it works treat now..

183
Well I tried to get this routine to work, but it keeps giving me a syntax error,so obviously I haven't entered it in correctly, if possible could you guys have a look at it and let me know where I'm going wrong? Thanks

‘This is the code from one of my buttons
Sub Main()
If (GetUserLED (1100)= true) Then  ‘Can I use the light for the Referenced Y axis (808)
CODE "G90 G54"
CODE "G00 Y1.0"
CODE "M03"
CODE "G01 Y20.0 F70"
CODE "G90 G00 Y5.0"
CODE "M05"
CODE "M30"
Exit Sub
End If
Main



‘This is the code in my Macropump.m1s
If GetLed (808)=1 Then 'Std Y axis home LED
DoOEMButton (251) 'Stop Jog Y
CODE "(HOME MACHINE BEFORE USE)"

Else
DoOEMButton (291) 'Allow  Jog Y
CODE "(Ready to go)"

End If

End Sub

184
Hi poppabear, just a quick question regarding the code, whenever I have the timer in my program, it works great.
The only problem I have found is that the spindle won't start, even though there is an M03 in the script.
During the running of the cycle, if I press esc it displays terminating script and then starts the spindle??????
If I remove the code the spindle works as per normal.......nah nah nah nah (twilight zone).
Any ideas

185
Sorry for the false alarm guys, I figured out what was causing the problem, it's a piece of code that times how long for a particular axis movement.
see here.... http://www.artsoftcontrols.com/forum/index.php?topic=2951.0
I'll talk to poppabear about it, see if he can let me know what's happening.
I'll remove the code that was giving me grief and retry this script.

186
Hey guys, I tried to use both of them, but I think I was doing something wrong, cause I couldn't get it to work properly.
Interestingly enough after I tried those, I gave up & unchecked use MacroPump and remove the code from within the button I was testing it on.
Now for some reason my spindle will not start up using the CODE "M03" in my scripts.
When I press ESC (cycle stop) during the cycle of the script, the spindle starts up???????
But if I load a normal G code program the spindle works fine with M03.....
Well I've done it this time.....

187
Thanks Scott.
Works beautifully, just what I was after.
Thanks again.

188
Thanks Zealous & Brian, holy crap that's confusing, I'll give it a go today.
I thought most people would want to use this function, just for safety.
Thanks again.

189
If you get a chance could you please have a look at the code I'm trying to write, it keeps giving me a syntax error, but hey I've got to start somewhere....

If GetLED (808) = 0 'Std Y axis home LED
Sub DoButton (2082) 'Not sure if this number is correct, it says in the manual that this is the scan code (I'm just using the standard STOP-Esc)
CODE "(HOME MACHINE BEFORE USE)" 'I thought this way it would flash, because it is technically an error with the brackets.
End If

CODE "(MACHINE READY FOR USE)"
CODE "G90 G54"
CODE "G00 Y1.0"
CODE "M03"
CODE "G01 Y20.0 F70"
CODE "G90 G00 Y5.0"
CODE "M05"
CODE "M30"

190
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?

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 »