So I have an upcoming project on which we need to send GCode to a robot.
I have created a VB.NET program which reads the GCode file and will stream the points to the robot via J519 Stream Motion. Or this should be the final result at least.
Currently I am still trying everything in Roboguide and my VB program communicates with the robot in roboguide (via IP 127.0.0.1) fine. I can send the start packet, and receive the status packet. I can also send the motion command packet, but the robot just does not move.
Currently the VB program sends no GCode, but reads the robots current position, adds 0.5mm to the X,Y and Z coördinates and sends them back with the motion command. Whatever I try the robot tells me the position is not reachable (MOTN-018 Position not reachable (G:%d^2)) even if i try adding 1 mm or 0.1 mm, nothing works. Always the same error.
What am I doing wrong here?
EDIT: is there a way on the robot to see incoming data? Because sometimes I also get the error MOTN-625 ST: Position data is abnormal (sq.252, i:2).
This error is not consistent so if I could check what the robot actually receives that would help a lot in my debugging.