Offset workobject
Whats the easiest way to offset the x,y,z of a work object?
0
Comments
-
found the solution --> workobject.trans.x = X;0
-
Is it a permanent offset or temporary? Most of the time, in the case of temporary, like vision guidance, I would apply the offset to the Oframe, not the UFrame.Lee Justice1
-
How to use that temporary workobject... what is its syntax?0
-
workobject.oframe.trans.x := X;SriHarsha2015 said:How to use that temporary workobject... what is its syntax?
OR
workobject.oframe.trans := [X,Y,Z];
0 -
so this won't permanently change the work object data?0
-
No, the userframe will stay the same, you will only update the objectframe. If needed, you can set your oframe to the same values as uframe at any time.Rickytre91 said:so this won't permanently change the work object data?0 -
These solutions WILL permanently offset the workobject as a WHOLE. If you want to use a temporary offset, then assign the permanent wobj values to another variable workobject. Example:
WobjTemp:=WobjPermanent;
WobjTemp.oframe.trans.z:=100; ! or whatever you need to changeLee Justice0 -
I usually assign the workobjekt to a temporary myself and would recommend it too avoid mistakes. I understood Rickytre91's question as if he was wondering wether the origin of the workobjekt would change or not. It will off course be offseted, but clearing the oframe will get it back to it's original value.lemster68 said:These solutions WILL permanently offset the workobject as a WHOLE. If you want to use a temporary offset, then assign the permanent wobj values to another variable workobject. Example:
WobjTemp:=WobjPermanent;
WobjTemp.oframe.trans.z:=100; ! or whatever you need to change1
Categories
- All Categories
- 5.6K RobotStudio
- 401 UpFeed
- 21 Tutorials
- 15 RobotApps
- 306 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.9K Robot Controller
- 361 IRC5
- 79 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 853 RAPID Programming
- 30 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 110 Collaborative Robots
- 5 Job listings
