Hello,
is it possible to put or write " wait in [?] and out [?] = true or false" in robodk?
Robodk
-
job111a -
May 5, 2015 at 7:23 PM -
Thread is marked as Resolved.
-
-
Hello,
There are many ways to achieve this using RoboDK:
1-The easiest would be to create your own program call. For example, you can add the call "onProg1Start" (menu "Program->Add custom code" and set it to "Call function") and add all the code you want inside that program.
2-You can add custom code (menu "Program->Add custom code" and set it to insert code). This would add a line of code as shown in the picture.
3-If you are using RoboDK's Python API to program your robot, you can add custom code by like this (check the station sample attached):CodeRL.RunCode('WAIT in[5] = True') # to add custom code in your robot program RL.RunProgram('ProgDone') # to add a function call in your robot program
I'm attaching a picture showing cases 2 and 3 as well as the RoboDK station sample:
https://www.robodk.com/downloads/RoboDK-ProgCall-sample.rdk
https://www.robodk.com/img/ProgCall.pngIf you need more information, do not hesitate to contact us. If you post in a forum, let us know so that we are aware.
https://www.robodk.com/