CalcJointT & String Values
brbales
✭
Does Anyone know how to use the "CalcJointT" where the rob target and tool data are listed in a string value?
VAR jointtarget jointpos;
VAR string pMyTopoint;
VAR string tMyTool;
jointpos := CalcJointT(pMyTopoint, tMyTool);
0
Comments
-
Something like this might work:MODULETesta
PERS robtarget pTempPers:=[[0,0,0],[1,0,0,0],[0,0,0,0],[9E9,9E9,9E9,9E9,9E9,9E9]];
PERS tooldata tTempPers:=[FALSE,[[0,0,0],[1,0,0,0]],[0,[0,0,0],[1,0,0,0],0,0,0]];
PROC Testar()
VAR robtarget pTemp;
VAR tooldata tTemp;
VAR jointtarget jointpos;
VAR string pMyTopoint;
VAR string tMyTool;
!Get value by supplying the name through a string value
GetDataVal tMyTool, tTemp;
GetDataVal pMyTopoint, pTemp;
!CalcJointT needs persistent datatTempPers := tTemp;
pTempPers := pTemp;
jointpos := CalcJointT(pTempPers,tTempPers);
ENDPROC
ENDMODULE
AlexK2013-01-08 16:19:06Best regards
Alexander Källberg0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 801 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings