Page 1 of 1

Axis setup tangential knife

PostPosted: Tue Jan 07, 2025 10:17 pm
by Millau05
Hello,
I got a question regarding the Step Pin configuration in Axis Setup.
I have a AXBB-E and a ucsb board with a tangential knife.
Now I'm trying to install a second tangential knife that won't work at the same time but I would like to use them in the same cutting session.

The C axis will be the second Z axis and I will used it with the swap axis macro but at the moment my configuration has the A axis connected with the first tangential knife motor and there is no other axis that can be used with the same functions.

I read somewhere that the swap axis macro basically swap only the motor's pins. Is there a way to swap the pin of my A axis "the original one connected to the axbb-e" with the pin of new motor that is connected with the ucsb and the second tangential knife?

Thanks
Mauro

Re: Axis setup tangential knife

PostPosted: Wed Jan 08, 2025 2:25 am
by cncdrive
Yes, the swapaxis function exactly does that, it swaps the step/dir pins as well as the configuration temporarily.

Re: Axis setup tangential knife

PostPosted: Wed Jan 08, 2025 4:53 am
by Millau05
cncdrive wrote:Yes, the swapaxis function exactly does that, it swaps the step/dir pins as well as the configuration temporarily.


from the information I got from the manual it can swap axis x axis to y or other axis

Example: exec.Swapaxis(0,1); //Swaps the X-axis with Y-axis.

in my case all the. axis are in use. Is there a way to swap pin 15 and 16 port 1 (my original tangential knife on the axbb-e) to pin 8 and 9 port 3 (my second tangential knife connected to ucsb)?

Re: Axis setup tangential knife

PostPosted: Wed Jan 08, 2025 12:42 pm
by cncdrive
You can set the pin and port number from macro using the AS3.setfield and AS3.validatefield functions, and then you can call the Apply settings button code with exec.callbutton to apply the changes.

Re: Axis setup tangential knife

PostPosted: Wed Jan 08, 2025 7:25 pm
by Millau05
cncdrive wrote:You can set the pin and port number from macro using the AS3.setfield and AS3.validatefield functions, and then you can call the Apply settings button code with exec.callbutton to apply the changes.



Thanks for your feedback.
I'm not very good with macro.
Is there a place where I can see some example or how to use the AS3 functions?

Thanks

Re: Axis setup tangential knife

PostPosted: Wed Jan 08, 2025 9:04 pm
by cncdrive
Yes, sure, open the UCCNC/Documentation folder and you find some documentations there.
I'm also attaching the macroing manual made by Robertspark forum member.