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.6K RobotStudio
- 399 UpFeed
- 20 Tutorials
- 14 RobotApps
- 301 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 337 IRC5
- 67 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 831 RAPID Programming
- 14 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 107 Collaborative Robots
- 5 Job listings