Hi,
I'm trying to update a config.g (working in 2.03) to a new Duet in RRF3.1.1
All axes are working fine, but impossible to have my fans controlled by the PWM command. (ebm-papst 4-wire fans, with 25kHz PWM command)
The M106 has no effect. The 24V is supplied externally, I only use the Duet to generate the PWM signal (wired to FAN0- pin).
The LED command is working fine, I expect then to not be too far from the truth.
Concerning the sx1509 outputs, can you confirm I need to declare them first with M950 ?
Is my config OK for those ? I receive an error message when trying to use a P value >10 (would have loved to keep the old P120-126 to keep the same slicer/gcodes)
Below my config.g file, with the old RRF2 commands, and my try at updating them to RRF3.
;config.g file hopefully compatible with RepRapFirmware 3.1.1
; Communication and general
M111 S0 ; Debug off
M550 My_new_printer ; Machine name and Netbios name (can be anything you like)
;*** Networking
M552 S0 ; Turn network off
M555 P2 ; Set output to look like Marlin
G21 ; Work in millimetres
;Define axis
M584 X0 Y1 Z2 U3 E4
;Set drive current an idle current at 20%
M906 Z1500 X1500 Y1500 U1500 E1500 I20
;Set inactive time before idle to 5s
M84 S5
; set microstepping with interpolation
M350 X16 Y16 Z16 U16 E16 I1
;Set axis step/unit
M92 Z3200 X3200 Y3200 U44.4 E460
;Set acceleration
M201 Z200 X500 Y500 U10000 E3000
;Set max feedrate (unit/min)
M203 Z600 X600 Y600 U108000 E10000 I1
;Set instant speed changes mm/minute (Jerk)
M566 X1200 Y1200 Z1200 E1200
; Z probe definition
;M558 P5 I1
; Axis and motor configuration
M569 P0 S1 ; Drive 0 X goes forwards
M569 P1 S1 ; Drive 1 Y goes forwards
M569 P2 S1 ; Drive 2 Z goes forwards
M569 P3 S1 ; Drive 3 U goes forwards
M569 P4 S0 ; Drive 4 E goes backwards
;define min and max travel
;RRF2: M208 X-25 Y-25 Z0 u-1000000000000 S1; min travel
;RRF2: M208 X25 Y25 Z92.5 u1000000000000 S0; max travel
;RRF3:
M208 X-25:25 Y-25:25 Z0:92.5 U-1000000000000:1000000000000
;Endstop configuration
;RRF2:M574 X1 Y1 Z1 U2 S1
;RRF3:
M574 X1 S1 P"xstop"
M574 Y1 S1 P"ystop"
M574 Z1 S1 P"zstop"
M574 U2 S1 P"e0stop"
; Disable heat bed to use as command of the LED light
;RRF2:M307 H0 A-1 C-1 D-1
;RRF3.1:
M950 P0 C"bed_heat"
;light ON
M42 P0 S1
; Set Fan : H0
;RRF2: M106 P0 I1 H-1
;RRF3:M950 needed
M950 F0 C"!fan0" Q25000
M106 P0 S0.5
; Set Fan : H1
;RRF2: M106 P1 I1 H-1
;RRF3:M950 needed
M950 F1 C"!fan1" Q25000
M106 P1 S0.5
;set SX1509 outputs
M950 P9 C"sx1509b:0" ;P0 already used by the LED
M950 P1 C"sx1509b:1"
M950 P2 C"sx1509b:2"
M950 P3 C"sx1509b:3"
M950 P6 C"sx1509b:6"
;Tool definition : still necessary in RRF3 to activate the PWM fan command?
M563 P0 D0 F0:1
;Tool selection
T0
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves