@handymanpa54 said in M950, M563, M3 commands to run VFD:
As @cjm said in the other thread https://forum.duet3d.com/post/244734, you still have a second M563 tool 0 definition later in your config.g that is overriding the first:
M950 R0 C"exp.heater4" Q2000 L0:24000 ; Create spindle index 0, PWM frequency 2KHz, ; Lmin:max rpm ranges from 0rpm at PWM=0% to 24000rpm at 100% PWM ; spindle speed PWM pin : exp.13 M563 P0 R0 S"Spindle" ; Create Tool 0 with Spindle 0 and call it Spindle T0 ; Select Tool 0 (or make sure generated by CAM) M453 ; CNC Mode ... ; Tools M563 P0 S"CNC6040" D0 H1 F0 ; define tool 0 M453 S0 C"out1" R24000 Q100 T0 M563 S"XYZ-Probe" P1 ; define XYZ Touch Probe tool 1 G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0CChange the section after "; Tools" to:
; Tools ; M563 P0 S"CNC6040" D0 H1 F0 ; define tool 0 ; M453 S0 C"out1" R24000 Q100 T0 M563 S"XYZ-Probe" P1 ; define XYZ Touch Probe tool 1 ; G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets ; G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C(I've left the XYZ Touch Probe as tool 1, but you'll need to come back to that and define it properly.)
Edit: you may also need to invert the heater 4 pin, ie M950 R0 C"!exp.heater4" Q2000 L0:24000
Ian