Hello Guest it is March 28, 2024, 06:57:08 AM

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

0 Members and 1 Guest are viewing this topic.

Offline tantan

*
  •  130 130
    • View Profile
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

thank you for your reply.

tantan

Offline BR549

*
  •  6,965 6,965
    • View Profile
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

Offline tantan

*
  •  130 130
    • View Profile
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

Offline BR549

*
  •  6,965 6,965
    • View Profile
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 »

Offline tantan

*
  •  130 130
    • View Profile
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

Offline BR549

*
  •  6,965 6,965
    • View Profile
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

Offline tantan

*
  •  130 130
    • View Profile
Re: Moving 2 axis simultaneously with vb
« Reply #6 on: August 11, 2013, 04:47:49 PM »
Oke its clear now,
Thanks for your reply and your explanation
Tantan