01-09-2020, 12:10 PM
(This post was last modified: 01-09-2020, 12:23 PM bySakerfalke.)
Dear forum members, dear Albert, dear Jeremy,
On our 3D printing project we try to connect/implement an extruder/duetboard which shell be controlled via RoboDK.
The Duet2-Board controls the stepper motor of the extruder.
RoboDK shell send the E-Value of the G-Code of the 3D printing program to the duetboard via ethernet.
Where and how do we define the ethernet connection in RoboDK?
Probably somewhere here in the Post-processor of the KRC4:
Do we have to change some of the following code of yourinstructions?
I also wanted to ask to which output ID this Number 5 refers?
Where and how are these IDs declared?
Where can I find informations about analog/digital connections to RoboDK?
On our 3D printing project we try to connect/implement an extruder/duetboard which shell be controlled via RoboDK.
The Duet2-Board controls the stepper motor of the extruder.
RoboDK shell send the E-Value of the G-Code of the 3D printing program to the duetboard via ethernet.
Where and how do we define the ethernet connection in RoboDK?
Probably somewhere here in the Post-processor of the KRC4:
Do we have to change some of the following code of yourinstructions?
Code:
# 3D Printing Extruder Setup Parameters:
PRINT_E_AO = 5 # Analog Output ID to command the extruder flow
PRINT_SPEED_2_SIGNAL = 1.0 # Ratio to convert the speed/flow to an analog output signal
PRINT_FLOW_MAX_SIGNAL = 6000 # Maximum signal to provide to the Extruder
PRINT_ACCEL_MMSS = -1 # Acceleration, -1 assumes constant speed if we use rounding/blending
I also wanted to ask to which output ID this Number 5 refers?
Where and how are these IDs declared?
Where can I find informations about analog/digital connections to RoboDK?
Code:
def setDO(self, io_var, io_value):
"""Set a Digital Output"""
if type(io_var) != str: # set default variable name if io_var is a number
io_var = '$OUT[%s]' % str(io_var)
if type(io_value) != str: # set default variable value if io_value is a number
if io_value > 0:
io_value = 'TRUE'
else:
io_value = 'FALSE'
# at this point, io_var and io_value must be string values
self.addline('%s=%s' % (io_var, io_value))