05-19-2021, 12:42 PM
Thank you for your feedback. I recommend you to use the default post processor called Universal Robots, which generates a script file and a URP program with that script. Then, you can take the components you need from the 3D printing example. Unless you've calibrated your extruder, you'll need to customize a few things to properly integrate with your extruder, such as adjusting the flow ratio. You can do this in the post processor or probably in your slicer software as well.
You'll find the following setAO function with the default post processor:
You'll find the following setAO function with the default post processor:
Code:
def setAO(self, io_var, io_value):
"""Set an Analog Output"""
self.make_last_move_accurate()
if type(io_value) != str: # set default variable value if io_value is a number
io_value = str(io_value)
if type(io_var) != str: # set default variable name if io_var is a number
newline = 'set_standard_analog_out(%s, %s)' % (str(io_var), io_value)
else:
newline = '%s = %s' % (io_var, io_value)
self.addline(newline)