Save data (such as contact force) during MoveJ and FCPressL
I am trying to save data to a file during the movement of the robot under position/force control (i.e. MoveJ or FCPressL).
I could save the data (contact force) to a file while the stop of the robot, but during the movment, I could not!
Can you help me on this.
The code data saving is as follows:
Best regards,
Abd El Khalick
I could save the data (contact force) to a file while the stop of the robot, but during the movment, I could not!
Can you help me on this.
The code data saving is as follows:
---------------------------------------------------------------------
Open FileLocation, File \Append;
MoveJ pos2,v20,fine,tdDemo\WObj:=wobj0;
WHILE j<=1000 DO
WaitTime 0.01;
fcForceReading:=FCGetForce(\ContactForce);
RecordFz{j}:=fcForceReading.zforce;
Write File, NumToStr(RecordFz{j},1)+", ";
j:= j+1;
ENDWHILE
--------------------------------------------------------------------Best regards,
Abd El Khalick
1
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
- 8 RCS (Realistic Controller Simulation)
- 828 RAPID Programming
- 12 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 107 Collaborative Robots
- 5 Job listings