THE ANNIN ROBOTICS FORUM HAS MOVED TO A NEW COMMUNITY. 👉
Using a variable
 
Notifications
Clear all

Using a variable

3 Posts
2 Users
0 Reactions
43 Views
Avatar of Timo Van de Velde
(@timo-van-de-velde)
New Member
Joined: 2 months ago
Posts: 1
Topic starter  

Hey, I'm an engineering student currently working on a program for path planning with an AR4 robotic arm for pick and place tasks.

I'm wondering if it's possible to use variables that are set at the beginning of the program and can be reused throughout the code.

The goal is to enhance the program's flexibility by having all adjustable values at the setup phase, rather than scattering them throughout the program, making modifications easier.

 

Any insights or advice would be greatly appreciated!



   
Quote
peter.k.ludwig
(@peter-k-ludwig)
Active Member Customer
Joined: 2 months ago
Posts: 7
 

Hi Timo, not sure how flexible your requirement has to be.... may be an idea (i know it has it's limitations-)):

  1. On your main program start you call, e.g. Call Program – set_position_registers.ar4, where you can set the use case specific register and positions registers - outside of your main program

  2. In the main program you are using e.g. OFF J, OFF PR commands, which allows you to work "relative" to the initializing vectors (from set_position_registers.ar4)



   
ReplyQuote
peter.k.ludwig
(@peter-k-ludwig)
Active Member Customer
Joined: 2 months ago
Posts: 7
 

And this could be an idea of placing a pick and place order through a separate file (OrderEntry) while the main program (OrderMain) just loops and keeps untouched. And the order processing could be in (OrderProcess) - just tested on my machine/robot so overall it might work but not knowing if this is what you are searching -)



   
ReplyQuote
Share:
Upload your Photo