Hello Guest it is April 28, 2024, 03:18:55 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.


Messages - maxsteak

Pages: « 1 2
11
VB and the development of wizards / Re: sleep issue
« on: November 11, 2011, 08:12:10 AM »
I have removed the sleep and compare exactly the same steps, but the total program takes more time on vb than g-code.

12
VB and the development of wizards / Re: sleep issue
« on: November 11, 2011, 06:23:26 AM »
Thank you, the ismoving is making the trick.

However, I compare my g-code and vb similar code and see the program is slower in vb than g-code. Is it normal due to additional steps?

13
VB and the development of wizards / sleep issue
« on: November 10, 2011, 11:01:10 AM »
Hello there,

Based on a simple g-code program, I try to transfer it on vb to improve and make a more complex algorithm. However, when running the simple code below, I cannot see the wait time between down/up unless I put >2seconds.
What's wrong in my code?

Global Const nT_Wid = 3
Global Const Dpitch = 10.0

Sub Main()
  Dim i As Integer
  Code "G17 G21 G91 G64 G40"
  For i = 1 To nT_Wid
    Touch
    Code "G0 X" & Dpitch
  Next i
End Sub
Sub Touch
  Code "G1 F1000" Z5"
  Sleep(1000)
  Code "G0 Z5"
End Sub   

Pages: « 1 2