RoboDK Forum
variables between scripts- Printable Version

+- RoboDK Forum (//www.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN)
+ - - -论坛:通用RoboDK问题(//www.sinclairbody.com/forum/Forum-General-questions-about-RoboDK)
+--- Thread: variables between scripts (/Thread-variables-between-scripts)



variables between scripts-Francesco Piva-10-04-2022

Hello,

I need to share variable between scripts in order to increment values... is it possible? In particular I need to share variable to increment value inside python script (check attached image)

let me know your suggestions

最好的regards


RE: variables between scripts-Sam-10-04-2022

You can use Station parameters to store data and retrieve it through the API.
They can also be set in an Program instruction.

More info here://www.sinclairbody.com/doc/en/PythonAPI/robodk.html#robodk.robolink.Robolink.setParam