Wobj
Hello, I'm new to the forum and I need help from an Abb robot programmer.
I have a defined workobject, but I would like with the help of an external laser that will give me a decimal value to modify this wobj always thanks to the reading I receive, in turn when the form is finished, this wobj must return to its original value.
Example:
Wobj(1500,300,200)
Laser reading y -100
newWobj(1500,200,200)
End of cycle = original wobj
Thank you
0
Answers
-
Write it into the oframe, then zero it back out.Lee Justice0
-
Here is an example.MODULE Module1PERS wobjdata myWobj:=[FALSE, TRUE, "",[[0, 0, 0],[1, 0, 0, 0]],[[0,0,0],[1,0,0,0]]];PERS robtarget pPosition:=[[0,0,0],[1,0,0,0],[0,0,0,0],[9E9,9E9,9E9,9E9,9E9,9E9]];PROC main()!Move robot to positionMoveL pPosition,v1000,fine,tool0\WObj:=myWobj;!Update wobj with camera valuesmyWobj.oframe.trans.x:= 100; !100mm X value from cameramyWobj.oframe.trans.y:= 150; !150mm Y value from cameramyWobj.oframe.trans.z:= 0; !0mm Z value from camera!Move robot to new camera positionMoveL pPosition,v1000,fine,tool0\WObj:=myWobj;!Reset wobjmyWobj.oframe.trans:=[0,0,0];ENDPROCENDMODULE
Systemintegrator - Web / C# / Rapid / Robotstudio
If I helped, please press Vote Up
☑️2024 - RobotStudio® User Group0 -
It is not a camera but it is simply a sensor that gives me a value on the Y axis, this value is filtered by the PLC
0
Categories
- All Categories
- 5.6K RobotStudio
- 398 UpFeed
- 20 Tutorials
- 14 RobotApps
- 300 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 336 IRC5
- 67 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 828 RAPID Programming
- 12 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 107 Collaborative Robots
- 5 Job listings