05-27-2024, 04:13 AM
(This post was last modified: 05-27-2024, 04:18 AM by JaeHong Yoo.)
Hello,
I've been working on controlling a KUKA robot using the C3 bridge, and I encountered an issue with motion control commands. With the help of Dmitry, I got familiar with the C3 bridge documentation and successfully created custom drivers for communication.
I was able to read and write system variables using 'CommandsReadVariableAscii' and 'CommandsWriteVariableAscii' with message types 0 and 1 without any problems. However, I'm facing issues with sending motion control commands (PTP, LIN, PTP_REL, and LIN_REL) using 'CommandsMotion'.
While I succeeded in packetizing and forwarding messages for motion commands, there was a problem with the response. The KUKA robot didn't move, and the response part of the code,
didn't receive any response.
Below attachment is the custom driver code I wrote. The issue seems to be in the
function, which handles the motion control part. I suspect there might be an issue with the format of the position variable, which is a parameter of 'move()', or there could be a problem in the encoding process.
Could anyone help me identify and resolve the exact cause? I would really appreciate any insights or suggestions.
Thank you!
I've been working on controlling a KUKA robot using the C3 bridge, and I encountered an issue with motion control commands. With the help of Dmitry, I got familiar with the C3 bridge documentation and successfully created custom drivers for communication.
I was able to read and write system variables using 'CommandsReadVariableAscii' and 'CommandsWriteVariableAscii' with message types 0 and 1 without any problems. However, I'm facing issues with sending motion control commands (PTP, LIN, PTP_REL, and LIN_REL) using 'CommandsMotion'.
While I succeeded in packetizing and forwarding messages for motion commands, there was a problem with the response. The KUKA robot didn't move, and the response part of the code,
Code:
self.rsp = self.sock.recv(1024)
Below attachment is the custom driver code I wrote. The issue seems to be in the
Code:
move()
Could anyone help me identify and resolve the exact cause? I would really appreciate any insights or suggestions.
Thank you!