Home› Applications
Discussion
Back to discussions page
Zach
Posts: 7 Apprentice
UNIVERSAL ROBOTS How to assign a variable in a pop up message |
2.5K views
|
Answered | |
/ Most recent by matthewd92
in Applications
|
10 comments |

in Applications
I have been assigned a task where we will want to have a pop up where an operator can assign a variable. Essentially we would want the operator to enter a variable into a popup and that would call for a specific sub program. Just trying to make one program that can accomplish multiple tasks.
Thanks in advance!!!
Thanks in advance!!!
Tagged:
Example:
- returns "A"
str_at("A2", 1)
- returns "2"
Example: (132.78, 45.7, 78.9)
How can I do this ?
The short answer is that you compare each character with the search character and you store the position of it.
For example:
"(" will be found only at the beginning.
")" will be found only at the end.
"," will be found at each end of a parameter.
Then you need to build up each parameters.
This is a short answer but this is long to do programming each possibility with what "Kaleb" proposed : "str_at("A2", 0) " .
Maybe it would be easier to use I/O inputs or to have a PC with a simple interface to send socket messages.
The other way is the easiest and was proposed by "GrantG_1 "
Make a sequence of popup to ask and retrieve answers.
"I did a message popup with instructions to enter the integer on the next pop-up. The next line of code was operator assignment of a variable which automatically pops up number field entry screen. "
String management can be time consuming, I suggest trying a work around that match production needs to "Start Production Faster".
Hope this helps.
Regards,
David Gouffé
Integration Coach
Coach en intégration
Robotiq is now into packaging, palletizing and sanding applications. Learn more about our new Vacuum Grippers and the Robotiq Sanding Kit.
1-888-ROBOTIQ #275 (762-6847)
1-418-380-2788 #275 (Outside US and Canada)
1-418-655-9221 (Cell)
Follow us on

Visit us: