Forum Migration Notice
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
How to get Rapid equivalent string from a RsPathProcedure class
afi
✭
I created RsPathProcedure class instance and added a RsMoveInstruction to its instruction collection, how to get the string equivalent to its Path procedure Rapid code from that class.
for example if following is the RsPathProcedure class and its Rapid equivalent,
RsPathProcedure pathProcedure = new RsPathProcedure(Path_000_);
RsMoveInstruction moveInstruction = new RsMoveInstruction(station.ActiveTask, "Move", "Default", MotionType.Linear, "wobj0", robTarget.Name, "tool0");
for example if following is the RsPathProcedure class and its Rapid equivalent,
RsPathProcedure pathProcedure = new RsPathProcedure(Path_000_);
RsMoveInstruction moveInstruction = new RsMoveInstruction(station.ActiveTask, "Move", "Default", MotionType.Linear, "wobj0", robTarget.Name, "tool0");
moveInstruction.InstructionArguments["Speed"].Value = "v200";
moveInstruction.InstructionArguments["Zone"].Value = "z1";
pathProcedure.Instructions.Add(moveInstruction);
pathProcedure.Instructions.Add(moveInstruction);
"PROC Path_000_()
MoveL TragetPoint1,v200,z1,tool0\WObj:=wobj0;
ENDPROC"
how to get directly this string from that class or is there any function which is returning this string.
ENDPROC"
how to get directly this string from that class or is there any function which is returning this string.
0
Categories
- All Categories
- 5.7K RobotStudio
- 402 UpFeed
- 21 Tutorials
- 16 RobotApps
- 307 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 251 ScreenMaker
- 2.9K Robot Controller
- 368 IRC5
- 92 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 859 RAPID Programming
- 43 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings