01-13-2020, 02:21 PM
Hi Patrick,
After reading the second message I realized that you would like to communicate to the extruder using the computer (not the robot). Correct?
In this case the integration may be easier as you can program the socket communication protocol using Python. Otherwise, you may need to purchase KUKA Ethernet/XML option to do so with a KUKA KRC controller.
To react on a program call (such as Extruder) in a custom way you can create an Extruder script like the one attached. You can collect arguments using sys.argv as shown here:
Let me know if this is not what you are looking for.
Albert
After reading the second message I realized that you would like to communicate to the extruder using the computer (not the robot). Correct?
In this case the integration may be easier as you can program the socket communication protocol using Python. Otherwise, you may need to purchase KUKA Ethernet/XML option to do so with a KUKA KRC controller.
To react on a program call (such as Extruder) in a custom way you can create an Extruder script like the one attached. You can collect arguments using sys.argv as shown here:
Code:
E_Value = None
#检查如果我们运行this program inside another program and passing arguments
import sys
if len(sys.argv) > 1:
E_Value = float(sys.argv[1])
Let me know if this is not what you are looking for.
Albert