Hello Guest it is April 20, 2024, 12:02:57 AM

### Author Topic: Moving 2 axis simultaneously with vb  (Read 4049 times)

0 Members and 1 Guest are viewing this topic.

#### tantan

• 130
##### Moving 2 axis simultaneously with vb
« 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

tantan

#### BR549

• 6,965
##### Re: Moving 2 axis simultaneously with vb
« Reply #1 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

#### tantan

• 130
##### Re: Moving 2 axis simultaneously with vb
« Reply #2 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

#### BR549

• 6,965
##### Re: Moving 2 axis simultaneously with vb
« Reply #3 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
« Last Edit: August 11, 2013, 01:37:33 PM by BR549 »

#### tantan

• 130
##### Re: Moving 2 axis simultaneously with vb
« Reply #4 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

#### BR549

• 6,965
##### Re: Moving 2 axis simultaneously with vb
« Reply #5 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

#### tantan

• 130
##### Re: Moving 2 axis simultaneously with vb
« Reply #6 on: August 11, 2013, 04:47:49 PM »
Oke its clear now,