Forum Migration Notice
We're transitioning to a more modern community platform by the end of this year. Learn about the upcoming changes and what to expect.
Changing object data directly
Resh0011
✭
in RobotStudio
Hello,
I'm rather new to robotstudio and I'm wondering how to change object data directly. Basically, I have a joint target that i want to edit, changing only axis 6 and leaving the rest the same. I've found that it keeps the value stored in rax_6 under the particular object, but I'm not sure how to change it. Below is the code I want to use, I just need to know how the syntax should work for the last line or if this is possible.
Thanks,
-Greg
VAR jointtarget JointPos;
JointPos:=CalcJointT(CRobT(Tool:=tool0 WObj:=wobj0), tool0WObj:=wobj0); JointPos rax_6:=Angle;
0
Comments
-
HelloThe syntax goes like this:JointPos.robax.rax_6:=Angle;You can find the correct data structure from the Rapid Reference manual (under RobotStudio help button).-Osku0
Categories
- All Categories
- 5.6K RobotStudio
- 401 UpFeed
- 21 Tutorials
- 16 RobotApps
- 306 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.9K Robot Controller
- 366 IRC5
- 86 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 856 RAPID Programming
- 40 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings