Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: juandres666 on March 31, 2012, 09:51:24 PM
-
I need to do a macro with X Y Z A names because I need to control a motor with that G CODE. For example:
G0 A90 'I need to work in a macro that read "90" and move a motor 90 in A direction.
Can I do this?
-
Not really sure what you are asking but
Code"G0A90"
In a macro will move the A Axis to 90 if not already there. You would also need a
While IsMoving()
Wend
after it if you wanted Mach to wait until the move was complete before the macro progressed.
Hood
-
Not really sure what you are asking but
Hood
I am not really sure how I can explain to you....
I have a trouble because I have a stepper motor in my 4axis and AJAX board in my x y z axes. I need to write a macro (A) that can move the stepper motor because I can not work with plugin and parallel port at the same time.
I am not really sure if this solution is availible because the macros are in the form "M*********.m1s". I do not know if the The linear and circular interpolation not involved in the 4 axis (rotate table)
Thanks
-
A macro is not going to work as it can not send out pulses unless it is via your Ajax board and as that will likely be an analogue output board then it will only work with an analogue servo amplifier.
Have you contaccted Ajax to see if they can suggest anything?
Hood
-
Have you contaccted Ajax to see if they can suggest anything?
Hood
Yes, I contacted Ajax Engineers but they told me that I must buy a board for my 4 axis. If I buy this board, I need to buy a new rotary table with new servo motors, etc ($$$$)... I think that is crazy because MACH3 has development tools....
I told ajax about the protocol that they implement on their board but I do not receive any answer.
Juan Andrés
-
Afraid that is one of the bad things about going with such a device as the Ajax controller for Mach, you are limited to what Ajax make available unfortunately.
Hood
-
Afraid that is one of the bad things about going with such a device as the Ajax controller for Mach, you are limited to what Ajax make available unfortunately.
Hood
Yes, I am thinking to use the serial port nd a microcontroller like PIC to communicate to 4 axis. I am thinking in macros for doing this....
Regards.