Beispiel #1
0
base.setup_stepper(section='AXIS_1', axisIndex=1, stepgenIndex=1, thread='servo-thread')
# Z [2] Axis
base.setup_stepper(section='AXIS_2', axisIndex=2, stepgenIndex=2, thread='servo-thread')
# Extruder, velocity controlled
for i in range(0, numExtruders):
    base.setup_stepper(section='EXTRUDER_%i' % i, stepgenIndex=3,
                       velocitySignal='ve-extrude-vel')

# Extruder Multiplexer
base.setup_extruder_multiplexer(extruders=numExtruders, thread='servo-thread')

# Stepper Multiplexer
multiplexSections = []
for i in range(0, numExtruders):
    multiplexSections.append('EXTRUDER_%i' % i)
base.setup_stepper_multiplexer(stepgenIndex=4, sections=multiplexSections,
                               selSignal='extruder-sel', thread='servo-thread')

# Fans
for i in range(0, numFans):
    base.setup_fan('f%i' % i, thread='servo-thread')

# Temperature Signals
if hasHbp:
    base.create_temperature_control(name='hbp', section='HBP',
                                    hardwareOkSignal='temp-hw-ok',
                                    thread='servo-thread')
for i in range(0, numExtruders):
    hardware.setup_exp('exp%i' % i)
    base.create_temperature_control(name='e%i' % i, section='EXTRUDER_%i' % i,
                                    coolingFan='f%i' % i,
                                    hotendFan='exp%i' % i,
Beispiel #2
0
                   thread='servo-thread')
# Extruder, velocity controlled
for i in range(0, numExtruders):
    base.setup_stepper(section='EXTRUDER_%i' % i,
                       stepgenIndex=3,
                       velocitySignal='ve-extrude-vel')

# Extruder Multiplexer
base.setup_extruder_multiplexer(extruders=numExtruders, thread='servo-thread')

# Stepper Multiplexer
multiplexSections = []
for i in range(0, numExtruders):
    multiplexSections.append('EXTRUDER_%i' % i)
base.setup_stepper_multiplexer(stepgenIndex=4,
                               sections=multiplexSections,
                               selSignal='extruder-sel',
                               thread='servo-thread')

# Fans
for i in range(0, numFans):
    base.setup_fan('f%i' % i, thread='servo-thread')

# Temperature Signals
if hasHbp:
    base.create_temperature_control(name='hbp',
                                    section='HBP',
                                    hardwareOkSignal='temp-hw-ok',
                                    thread='servo-thread')
for i in range(0, numExtruders):
    hardware.setup_exp('exp%i' % i)
    base.create_temperature_control(name='e%i' % i,