Generation of new RAPID code-lines via SDK
Comments
-
Well, yes. There is no easy way though. You can either do it through RobotStudio SDK by using instruction templates, or using the PCSDK by updating a module textwise (streamwriter or somesuch) and loading it again.
Of the two I usually prefer the RobotStudio SDK Instruction Template way since you keep a somewhat syntactic integrity. The limitation is logic though like IF WHILE or such, then you have to go with the PCSDK approach of text editing.
What you do with the RobotStudio SDK way is to create Instruction Templates of the types that you want to add.
you can do this by code as well if you want but its much harder, in this example you can see them add a rsmoveinstruction using Path.instruction.add
and then sync it to the Virtual Controller. You can do that with action instructions and data declarations as well
So the speeddata would go under sync data declarations and the CirPath stuff would be move instructions or actions instructions depending on.
John
Developer Center0 -
Hello John,
the links don't work, how can I find the documents.
Best Regards
Wolfgang
0
Categories
- All Categories
- 5.5K RobotStudio
- 395 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings