Hello
This is probably a stupid question, but I cannot find it. I want to use Python to live control a Kuka robotic arm. I set up a communication and can read values using py_openshowvar. But when I use the write function, it does nothing.
Script:
while 1:
axis = kuka.read($AXIS_ACT, debug=False)
print(axis)
kuka.write('$AXIS_ACT', '{A1 20, A2 -91, A3 90, A4 94, A5 -90, A6 90, E1 0, E2 0, E3 0, E4 0, E5 0, E6 0}')
time.sleep(2)
kuka.write('$AXIS_ACT', '{A1 10, A2 -91, A3 90, A4 94, A5 -90, A6 90, E1 0, E2 0, E3 0, E4 0, E5 0, E6 0}')
time.sleep(2)
basically only trying to move 10 degrees left to right first. The read statement was used first to asses the current axis positions.
Kuka is in T1 mode so I could move it using this smartpad, and see if the actual read values would change. Also, I am afraid to change it to EXT or AUT because I'm unsure how to set the maximum velocity. it has been used at 1% this entire time while testing.
Besides solving this issue, I would like to know how people figured this out. I found nothing on the GitHub of py_openshowvar about syntaxes or examples. I have 2 kuka handbooks (system variables and KUKA Sunrise.Workbench). But so far, it has just given me a basic understanding of the variables, but not how to actually write/set them.