What's new
VORON Design

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members!

MOTOR A B wrong direction

yisus

New member
i was checking motor and i have a issue wuit motor AB y set all posibilitis for correct direction but its imposible choose the correct.
Someone can help me?


#####################################################################
## X-axis on MOTOR_0(B Motor)
#####################################################################

[stepper_x]
step_pin: PF13 # X-axis motor pulse pin setting
dir_pin: PF12 # X-axis motor direction pin setting
enable_pin: !PF14 # X-axis motor enable pin setting
microsteps: 32 # Motor microsteps Setting
rotation_distance: 40 # Active pulley circumference mm (2GT-20T pulley 40, 2GT-16T pulley 32)
full_steps_per_rotation:200 # Number of pulses required for a single motor revolution (1.8 degree motor: 200, 0.9 degree motor: 400)
endstop_pin: EBBCan:gpio24 #PG6 # Limit switch PIN pin setting(X-)
position_min: 0 # X-axis minimum travel - software limit
position_endstop: 300 #350 ## Mechanical reset point coordinates for X-axis (change to 350 for 350 models)
position_max: 300 #350 ## X-axis maximum travel - software limit (change to 350 for 350 models)
homing_speed: 50 # Reset speed maximum 100
homing_retract_dist: 5 # Setback distance after the first trigger of the reset switch
homing_positive_dir: true # Direction of reset (generally no change required)

[tmc2240 stepper_x]
cs_pin: PC4
spi_software_sclk_pin: PA5
spi_software_mosi_pin: PA7
spi_software_miso_pin: PA6
driver_TPFD: 0
run_current: 0.85

#####################################################################
## Y-axis on MOTOR_1(A Motor)
#####################################################################

[stepper_y]
step_pin: PG0 # Y-axis motor pulse pin setting
dir_pin: !PG1 # Y-axis motor direction pin setting
enable_pin: !PF15 # Y-axis motor enable pin setting
microsteps: 32 # Motor microsteps Setting
rotation_distance: 40 # Active pulley circumference mm (2GT-20T pulley 40, 2GT-16T pulley 32)
full_steps_per_rotation:200 # Number of pulses required for a single motor revolution (1.8 degree motor: 200, 0.9 degree motor: 400)
endstop_pin: PG9 # Limit switch PIN pin setting(Y-)
position_min: 0 # X-axis minimum travel - software limit
position_endstop: 300 #350 # Mechanical reset point coordinates for Y-axis (change to 350 for 350 models)
position_max: 300 #350 # Y-axis maximum travel - software limit (change to 350 for 350 models)
homing_speed: 50 # Reset speed maximum 100
homing_retract_dist: 5 # Setback distance after the first trigger of the reset switch
homing_positive_dir: true # Direction of reset (generally no change required)

[tmc2240 stepper_y]
cs_pin: PD11
spi_software_sclk_pin: PA5
spi_software_mosi_pin: PA7
spi_software_miso_pin: PA6
driver_TPFD: 0
run_current: 0.85
 
dir_pin: PF12
I had the same problem with direction being reversed on all of my Z stppers. Change the line: dir_pin: PF12 to: dir_pin: !PF12

The exclamtion point is the "not" command which reverses direction in a stepper drive.

I hope this helps.
 
Top