Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Inverting Motor direction

    Scheduled Pinned Locked Moved
    Beta Firmware
    2
    3
    116
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • MaxGyverundefined
      MaxGyver
      last edited by

      I am not sure if this is related to the beta Firmware. (I am on 3.2.0-beta3)
      For some time I have not been able to invert the motor direction by changing the S parameter in the M569 command. First I thought this was a bug in the current Beta, but this seems to be persistent.

      ; Drives	
      M569 P0 S1                                       	        ; Drive 0/Z1
      M569 P1 S1                                     		; Drive 1/Z2
      M569 P2 S1                                    		; Drive 2/Z3
      M569 P3 S1                                   		; Drive 3/Z4
      M569 P4 S1                         					; Drive 4/Y1
      M569 P5 S1                        					; Drive 5/Y2
      M569 P6 S1                                      	; Drive 6/U
      M569 P7 S1                                 			; Drive 7/X
      M569 P8 S1                             				; Drive 8/E1
      M569 P9 S1	                          		      	; Drive 9/E2
      M584 Z0:1:2:3 Y4:5 U1.0 X1.1 E1.2				    ; set 4 Z drivers and add one U driver -> Must come earlier than M350,M906,M92, M201, M203, M208, M350, M566, M574, M667 and M669
      
      M350 U16 X16 Y16 Z16 I1    		            	; Configure microstepping with interpolation
      M350 E16 I0   		            				; Configure microstepping with interpolation
      M92 U80 X80 Y80 Z800 E655 						; Set steps per mm
      M203 U48000 X48000 Y48000 Z2000 E6000			; Set maximum speeds (mm/min)
      M566 U1000 X1000 Y1000 Z300 E1500          		; set maximum instantaneous speed changes (mm/min)
      M201 U3000 X3000 Y2500 Z200 E2000	 			; Set accelerations (mm/s^2)
      M906 U1500 X1500 Y1500 Z1500 E500 I30			; Set motor currents (mA) and motor idle factor in per cent
      M84 S10                                       	; Set idle timeout
      
      ;Kinematics
      M669 K1 X-1:0:0:0 Y1:1:0:-1 Z0:0:1:0 U0:0:0:1		;set Y to react with X and U ->must come earlier than any M671 command
      M671 X-49:498:498:-39 Y-21:-21:309:309 S10 			; lead screw positions
      
      1 Reply Last reply Reply Quote 0
      • chrishammundefined
        chrishamm administrators
        last edited by

        Since you're specifying CAN boards in your config I presume you're using a MB6HC + EXP3HC. If that is the case, then you partially specify the wrong drivers in M569. Try something like this:

        M569 P0.0 S1                                 		     		; Drive 0.0/Z1
        M569 P0.1 S1                                     		 		; Drive 0.1/Z2
        M569 P0.2 S1                                		     		; Drive 0.2/Z3
        M569 P0.3 S1                            		        		; Drive 0.3/Z4
        M569 P0.4 S1                               		       	; Drive 0.4/Y1
        M569 P0.5 S1                              		        		; Drive 0.5/Y2
        M569 P1.0 S1                              		        		; Drive 1.0/U
        M569 P1.1 S1                             		         		; Drive 1.1/X
        M569 P1.2 S1                                     		 		; Drive 1.2/E0
        M584 Z0.0:0.1:0.2:0.3 Y0.4:0.5 U1.0 X1.1 E1.2 	; set 4 Z drivers and add one U driver -> Must come earlier than M350,M906,M92, M201, M203, M208, M350, M566, M574, M667 and M669
        

        Duet software engineer

        MaxGyverundefined 1 Reply Last reply Reply Quote 1
        • MaxGyverundefined
          MaxGyver @chrishamm
          last edited by

          @chrishamm
          Thank you, this solved the problem!

          -Max

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA