Home› Programming
Discussion
Back to discussions page
elnatan
Posts: 2 Recruit
How to get an input from the user using a Pop-up massege |
33 views
|
Answered | |
/ Most recent by MarcAntoine_Gauthier
in Programming
|
2 comments |

in Programming
Best Answer
-
Yannik_Methot Posts: 40 Handy
Hi @elnatan,
The Assignment function might just be able to help you with this.
See my below example code on an E-series robot (will also work on a CB3). To be able to show a prompt, select the Source at the upper right corner to Operator. You may then store this value to a variable and use it on the script command rq_move_and_wait_norm(<0-100 variable>). As you can also see, you can add an operator message so the operator knows what to input in the prompt.
Hope this helps you,
In addition to what Yannik is saying, with this function you will need to enter a number between 0 and 100 %.
100% is the fully closed position and 0% is the fully open position.
You could use a similar command in millimeters (rq_move_and_wait_mm(var_operator)). That way you will be able to enter a value in mm and the gripper will move accordingly.
Note that you will need to calibrate the gripper in the installation tab in order to get the right opening!
Regards.