12-10-2020, 10:04 AM
This is not really a question but more me sharing a solution to a problem I encountered.
When trying to connect RoboDK to a Techman robot (for instance for live running of your robot program), I encountered the problem that sometimes everything worked and other times it didn't.
When trying to connect to the robot I could ping the connection which worked and I could tell the robot to move to a position which caused the robot to start to move (in a random way) but I couldn't retrieve the current position of the real robot into RoboDK.
The solution to this problem is really simple: the Modbus protocol on the Techman robots (which is used by de RoboDK TMDriver.py) looks for a connection on startup of the robot. If a connection is found the Modbus protocol stays activated and everything works. If no connection is found during the startup of the robot, Techman 'turns off' the Modbus connection.
So to prevent the problem from happening you need to make sure you have connected your PC to the Techman robot before turning the robot on.
Once the robot is turned on and the connection is established it is possible to remove and re-plug the Ethernet connection without the Modbus connection turning off.
I hope this helps anyone who encounters the same problem.
Note: This was tested on a TM robot version: 3.2 HW and 1.76 SW.
When trying to connect RoboDK to a Techman robot (for instance for live running of your robot program), I encountered the problem that sometimes everything worked and other times it didn't.
When trying to connect to the robot I could ping the connection which worked and I could tell the robot to move to a position which caused the robot to start to move (in a random way) but I couldn't retrieve the current position of the real robot into RoboDK.
The solution to this problem is really simple: the Modbus protocol on the Techman robots (which is used by de RoboDK TMDriver.py) looks for a connection on startup of the robot. If a connection is found the Modbus protocol stays activated and everything works. If no connection is found during the startup of the robot, Techman 'turns off' the Modbus connection.
So to prevent the problem from happening you need to make sure you have connected your PC to the Techman robot before turning the robot on.
Once the robot is turned on and the connection is established it is possible to remove and re-plug the Ethernet connection without the Modbus connection turning off.
I hope this helps anyone who encounters the same problem.
Note: This was tested on a TM robot version: 3.2 HW and 1.76 SW.