A little lost on config

I’m trying to setup a mks sbase v1.3 as the controller for a k40. the lightburn link Smoothieware settings (?) speed issues shows the following:

Laser module configuration

laser_module_enable true # Whether to activate the laser module at all. All configuration is

ignored if false.

laser_module_pin 2.5 # this pin will be PWMed to control the laser. Only P2.0 - P2.5, P1.18, P1.20, P1.21, P1.23, P1.24, P1.26, P3.25, P3.26

can be used since laser requires hardware PWM

laser_module_maximum_power 1.0 # this is the maximum duty cycle that will be applied to the laser
laser_module_minimum_power 0.0 # This is a value just below the minimum duty cycle that keeps the laser

active without actually burning.

#laser_module_default_power 0.8 # This is the default laser power that will be used for cuts if a power has not been specified. The value is a scale between

the maximum and minimum power levels specified above

laser_module_pwm_period 200 # this sets the pwm frequency as the period in microseconds

switch.laserfire.enable false
switch.laserfire.output_pin 2.6
switch.laserfire.output_type digital
switch.laserfire.input_on_command M3
switch.laserfire.input_off_command M5

What is the difference in switch.laserfire.output_pin and laser_module_pin ? I assume the laser is fired as a hone shot using switch.laserfire.output_pin and is PWM’d using laser_module_pin
And what and how is the laser_module_ttl_pin used

I can’t seem to get any of then to work. I’m new to smoothieware by the way. below is my config. I’m only using X and Y steppers and need 5v high to low to fire laser.

Thanks for any help

The following is my config file.

Smoothieboard configuration file, see http://smoothieware.org/configuring-smoothie

NOTE Lines must not exceed 132 characters, and ‘#’ characters mean what follows is ignored

Robot module configurations : general handling of movement G-codes and slicing into moves

Basic motion configuration

default_feed_rate 4000 # Default speed (mm/minute) for G1/G2/G3 moves
default_seek_rate 4000 # Default speed (mm/minute) for G0 moves
mm_per_arc_segment 0.0 # Fixed length for line segments that divide arcs, 0 to disable
#mm_per_line_segment 5 # Cut lines into segments this size
mm_max_arc_error 0.01 # The maximum error for line segments that divide arcs 0 to disable
# note it is invalid for both the above be 0
# if both are used, will use largest segment length based on radius

Arm solution configuration : Cartesian robot. Translates mm positions into stepper positions

See http://smoothieware.org/stepper-motors

alpha_steps_per_mm 80 # Steps per mm for alpha ( X ) stepper
beta_steps_per_mm 80 # Steps per mm for beta ( Y ) stepper
#gamma_steps_per_mm 160 # Steps per mm for gamma ( Z ) stepper

Planner module configuration : Look-ahead and acceleration configuration

See http://smoothieware.org/motion-control

acceleration 1000 # Acceleration in mm/second/second.
#z_acceleration 500 # Acceleration for Z only moves in mm/s^2, 0 uses acceleration which is the default. DO NOT SET ON A DELTA
junction_deviation 0.05 # See http://smoothieware.org/motion-control#junction-deviation
#z_junction_deviation 0.0 # For Z only moves, -1 uses junction_deviation, zero disables junction_deviation on z moves DO NOT SET ON A DELTA

Cartesian axis speed limits

x_axis_max_speed 60000 # Maximum speed in mm/min
y_axis_max_speed 60000 # Maximum speed in mm/min
#z_axis_max_speed 300 # Maximum speed in mm/min

Stepper module configuration

Pins are defined as ports, and pin numbers, appending “!” to the number will invert a pin

See http://smoothieware.org/pin-configuration and http://smoothieware.org/pinout

alpha_step_pin 2.0 # Pin for alpha stepper step signal
alpha_dir_pin 0.5 # Pin for alpha stepper direction, add ‘!’ to reverse direction
alpha_en_pin 0.4 # Pin for alpha enable pin
alpha_current 0.5 # X stepper motor current
alpha_max_rate 3000.0 # Maximum rate in mm/min

beta_step_pin 2.1 # Pin for beta stepper step signal
beta_dir_pin 0.11! # Pin for beta stepper direction, add ‘!’ to reverse direction
beta_en_pin 0.10 # Pin for beta enable
beta_current 0.6 # Y stepper motor current
beta_max_rate 3000.0 # Maxmimum rate in mm/min

#gamma_step_pin 2.2 # Pin for gamma stepper step signal
#gamma_dir_pin 0.20 # Pin for gamma stepper direction, add ‘!’ to reverse direction
#gamma_en_pin 0.19 # Pin for gamma enable
#gamma_current 1.5 # Z stepper motor current
#gamma_max_rate 300.0 # Maximum rate in mm/min

Extruder module configuration

See http://smoothieware.org/extruder

extruder.hotend.enable false # Whether to activate the extruder module at all. All configuration is ignored if false
extruder.hotend.steps_per_mm 140 # Steps per mm for extruder stepper
extruder.hotend.default_feed_rate 600 # Default rate ( mm/minute ) for moves where only the extruder moves
extruder.hotend.acceleration 500 # Acceleration for the stepper motor mm/sec²
extruder.hotend.max_speed 50 # Maximum speed in mm/s

extruder.hotend.step_pin 2.3 # Pin for extruder step signal
extruder.hotend.dir_pin 0.22 # Pin for extruder dir signal ( add ‘!’ to reverse direction )
extruder.hotend.en_pin 0.21 # Pin for extruder enable signal

Extruder offset

#extruder.hotend.x_offset 0 # X offset from origin in mm
#extruder.hotend.y_offset 0 # Y offset from origin in mm
#extruder.hotend.z_offset 0 # Z offset from origin in mm

Firmware retract settings when using G10/G11, these are the defaults if not defined, must be defined for each extruder if not using the defaults

#extruder.hotend.retract_length 3 # Retract length in mm
#extruder.hotend.retract_feedrate 45 # Retract feedrate in mm/sec
#extruder.hotend.retract_recover_length 0 # Additional length for recover
#extruder.hotend.retract_recover_feedrate 8 # Recover feedrate in mm/sec (should be less than retract feedrate)
#extruder.hotend.retract_zlift_length 0 # Z-lift on retract in mm, 0 disables
#extruder.hotend.retract_zlift_feedrate 6000 # Z-lift feedrate in mm/min (Note mm/min NOT mm/sec)

delta_current 1.5 # First extruder stepper motor current

Second extruder module configuration

#extruder.hotend2.enable false # Whether to activate the extruder module at all. All configuration is ignored if false
#extruder.hotend2.steps_per_mm 140 # Steps per mm for extruder stepper
#extruder.hotend2.default_feed_rate 600 # Default rate ( mm/minute ) for moves where only the extruder moves
#extruder.hotend2.acceleration 500 # Acceleration for the stepper motor, as of 0.6, arbitrary ratio
#extruder.hotend2.max_speed 50 # mm/s

#extruder.hotend2.step_pin 2.8 # Pin for extruder step signal
#extruder.hotend2.dir_pin 2.13 # Pin for extruder dir signal ( add ‘!’ to reverse direction )
#extruder.hotend2.en_pin 4.29 # Pin for extruder enable signal

#extruder.hotend2.x_offset 0 # x offset from origin in mm
#extruder.hotend2.y_offset 25.0 # y offset from origin in mm
#extruder.hotend2.z_offset 0 # z offset from origin in mm

#epsilon_current 1.5 # Second extruder stepper motor current

Laser module configuration

See http://smoothieware.org/laser

laser_module_enable true # Whether to activate the laser module at all
laser_module_pwm_pin 2.3! # This pin will be PWMed to control the laser.
# Only pins 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 1.18, 1.20, 1.21, 1.23, 1.24, 1.26, 3.25 and 3.26
# can be used since laser requires hardware PWM, see http://smoothieware.org/pinout
laser_module_ttl_pin 2.7 # ? # This pin turns on when the laser turns on, and off when the laser turns off.
laser_module_maximum_power 1.0 # This is the maximum duty cycle that will be applied to the laser
laser_module_minimum_power 0.05 # This is a value just below the minimum duty cycle that keeps the laser
# active without actually burning.
laser_module_default_power 0.8 # This is the default laser power that will be used for cuts if a power has not been specified. The value is a scale between
# the maximum and minimum power levels specified above
laser_module_pwm_period 200 # This sets the pwm frequency as the period in microseconds
switch.laserfire.enable false
switch.laserfire.output_pin 2.6 # ?
switch.laserfire.output_type digital
switch.laserfire.input_on_command M3
switch.laserfire.input_off_command M5

The laser_module_pin is PWM’d to control the output power of the laser. The laserfire pin is just on/off to enable / disable the laser. If your laser has both a TTL wire and a PWM wire you’d use both.

The laser? Or anything?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.