Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: tantan on August 11, 2013, 10:05:04 AM

Title: Moving 2 axis simultaneously with vb
Post by: tantan on August 11, 2013, 10:05:04 AM
what i want is swinging the a-axis while the z-axis is moving to a position. how is that posible in vb?
i made this but this wil move the z-axis first and then swing the a-axis. i want this simultaneously

counter = 0
code "g1 z90 f100"

While counter < 20
 code "g0 a0.5"
 While ismoving()
 Wend
 code "g0 a-0.5"
 While ismoving()
 Wend
 counter=counter+1
Wend

thank you for your reply.

tantan
Title: Re: Moving 2 axis simultaneously with vb
Post by: BR549 on August 11, 2013, 12:49:31 PM
counter = 0
While counter < 20
code "g1 z45 A0.5 f100"
 While ismoving()
 Wend
code "g1 z90 A-0.5 f100"
 While ismoving()
 Wend
 counter=counter+1
Wend
End

(;-) TP
Title: Re: Moving 2 axis simultaneously with vb
Post by: tantan on August 11, 2013, 01:10:26 PM
hi,

tnx for your fast reply, but this is not the effect i want, i will try to explain what i need.

the z-axis has to move to z90 with f100
while the z-axis is moving the a-axis has to swing with rapid speed (G0) between -0.5 and +0.5 degrees.

i hope this will help to become a sollution.

tnx tantan
Title: Re: Moving 2 axis simultaneously with vb
Post by: BR549 on August 11, 2013, 01:35:04 PM
That is not going to happen (;-)  Mach3 is a machine tool controller with all axis interpolated. That meaning you cannot seperate individual moves at the same time.

(;-) TP
Title: Re: Moving 2 axis simultaneously with vb
Post by: tantan on August 11, 2013, 01:43:55 PM
Hi,
Oke tnx, but hw is that done with 3d milling, i assume all axis are moving seperately with their own feedrate?
Tnx tantan
Title: Re: Moving 2 axis simultaneously with vb
Post by: BR549 on August 11, 2013, 04:14:03 PM
NO they are interpolated at the same feedrate and each axis is adjusted internally to arrive at the end point at the same time. You cannot have 1 axis doing a rapid and another doing feedrate at the same time.

(;-) TP
Title: Re: Moving 2 axis simultaneously with vb
Post by: tantan on August 11, 2013, 04:47:49 PM
Oke its clear now,
Thanks for your reply and your explanation
Tantan