About ReadMotor instruction execute time
I suffer a strange problem, when i use the ReadMotor instruction to read the position of a motor, it need take 8-15 ms. Can anyone explain why it takes so long? And why the execute time is changing? In addiation, i test the follow four instruction GetJointData CJointT CRobT GetMotorTorque , also find the execute time is change from 1-5 ms. Has anyone encountered a similar problem?
ClkReset clock_state;
ClkStart clock_state;
!Cartesian Coordinates
motor_position:= ReadMotor(1);
ClkStop clock_state;
time:=ClkRead(clock_state);
TPWrite "time is " \Num:=time;
RAPID code :
ClkReset clock_state;
ClkStart clock_state;
!Cartesian Coordinates
motor_position:= ReadMotor(1);
ClkStop clock_state;
time:=ClkRead(clock_state);
TPWrite "time is " \Num:=time;
Anyone has any ideas? THANKS.
0
Categories
- All Categories
- 5.4K RobotStudio
- 384 UpFeed
- 15 Tutorials
- 12 RobotApps
- 290 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 241 ScreenMaker
- 2.7K Robot Controller
- 283 IRC5
- 44 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 746 RAPID Programming
- 15 Wizard Easy Programming
- 110 Collaborative Robots
- 3 Job listings