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, hardwareOkSignal='temp-hw-ok', thread='servo-thread') # LEDs for i in range(0, numLights): base.setup_light('l%i' % i, thread='servo-thread') # Standard I/O - EStop, Enables, Limit Switches, Etc
# 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, hardwareOkSignal='temp-hw-ok', thread='servo-thread') # LEDs for i in range(0, numLights): base.setup_light('l%i' % i, thread='servo-thread') # Standard I/O - EStop, Enables, Limit Switches, Etc errorSignals = ['temp-hw-error', 'watchdog-error', 'hbp-error']
#sigBase='stepgen.3' #assign_param(sigBase,"position-scale",c.find("ABP", 'SCALE')) #assign_param(sigBase,"maxaccel",c.find("ABP", 'STEPGEN_MAXACC')) #hal.net('ve-extrude-vel','stepgen.3.velocity-cmd') #stepgen3en = hal.newsig('is-running',hal.HAL_BIT) #stepgen3en.link('halui.program.is-running') #stepgen3en.link('stepgen.3.enable') # Setup Hardware hardware.setup_hardware(thread='servo-thread') base.setup_tclab() # Temperature Signals base.create_temperature_control(name='e0', section='EXTRUDER_0', thread='servo-thread', tclab_index=0) base.create_temperature_control(name='hbp', section='HBP', thread='servo-thread', tclab_index=1) # LEDs #for i in range(0, numLights): # base.setup_light('l%i' % i, thread='servo-thread') # HB LED # hardware.setup_hbp_led(thread='servo-thread') # Standard I/O - EStop, Enables, Limit Switches, Etc # errorSignals = ['gpio-hw-error', 'pwm-hw-error', 'temp-hw-error',