Utiliser contrôle de Spindle (broche)¶
Ce que l'on va faire ici¶
Nous allons voir comment configurer le déclenchement de broche avec Smoothieware.
On a 2 façon de le faire : * soit un utilisant un module VFD spécial de contrôle de broche * soit simplement via un relais en mode ON/OFF
Procédure en mode ON/OFF simple¶
On va utiliser le module switch pour çà en mode ON/OFF
#Spindle control Switch module
switch.spindle.enable true #
switch.spindle.input_on_command M3 #
switch.spindle.input_off_command M5 #
switch.spindle.output_pin 2.6 # Here we are using this pin
switch.spindle.output_type digital # digital ON/OFF output
L'activation / désactivation se fait avec :
M3
M5
Procédure en mode pwm¶
On va utiliser le module switch en mode PWM
#Spindle control Switch module
switch.spindle.enable true #
switch.spindle.input_on_command M3 #
switch.spindle.input_off_command M5 #
switch.spindle.output_pin 2.6 # Here we are using this pin
switch.spindle.output_type pwm # pwm output settable with S parameter in the input_on_comand
switch.spindle.max_pwm 255 # set max pwm for the pin default is 255
Et pour commander :
M3 S255
Plus d'infos ici :