Macro for robotic arm

This is where you talk about Macros, show examples of your macro scripting and SHARE handy segments of script code as examples.

Macro for robotic arm

Postby trikkas.a » Tue Mar 09, 2021 9:40 pm

Hello team,

Im using axbbe controller for my cnc router but now i want to buy one more axbbe for a different building im thinking to make. The question i have is about a macroloop with a specific situation. First let me introduce my thoughts. This building will be an robotic arm made out of alouminum and stepper motors. I want this arm to do a specific path which i will write a gcode script. The difficult part for me is that i want this path to start only when an external mechanical switch is pressed continuously and when is unpressed the arm will rest in a specific potition. When the switch will pressed again the gcode script want to start again.So to make it more clear i want this situation: As soon as a pin in my board is high i want my machine to execute a codelist( which I will make with some Goode commands) then when the pin becomes low I want my machine to wait until the pin becomes high again and re do the same codelist and so forth.
Happy AXBB-E user
trikkas.a
 
Posts: 3
Joined: Sat Sep 19, 2020 7:42 pm

Re: Macro for robotic arm

Postby cncdrive » Thu Mar 11, 2021 6:49 am

Hi,

It is relatively simple, you just have to poll the input pin in the macroloop and execute the codelist when it is pressed.
If you want to run it only when it is pressed for a longer time then you could do the same and in addition you could place a second loop in the macroloop which only executes the Codelist commands if the input is active for some time, for a few cycles of loop.
Dezsoe could help you with writting a macro for your needs if you need help with it.
cncdrive
Site Admin
 
Posts: 4888
Joined: Tue Aug 12, 2014 11:17 pm


Return to Macros

Who is online

Users browsing this forum: No registered users and 5 guests