Enabing fans on SKR Pro v1.2 #237
Replies: 14 comments 5 replies
-
Beta Was this translation helpful? Give feedback.
-
I was actually referring to the FANS issue. I didn't see anything in reference to fans on that page. |
Beta Was this translation helpful? Give feedback.
-
You reported this:
which my reply was adressing. A bit odd that ioSender is exiting - that could be due to the alarm, so get that out of the way first. |
Beta Was this translation helpful? Give feedback.
-
In the boards file the pins are already specified as the correct ones. PE6 or 5 comes to mind which are the correct ones for FAN1 and FAN2 but FAN0 is being used as spindle PWM.
Jun 15, 2025 2:26:43 PM Terje Io ***@***.***>:
…
You reported this:
Upon boot I get a code 10 error.
GrblHAL 1.1f ['$' or '$HELP' for help]
Alarm:10 -
...
which my reply was adressing.
A bit odd that ioSender is exiting - that could be due to the alarm, so get that out of the way first.
BTW from the *$pins* report I see that there are no aux. outputs available so the fans plugin cannot be used unless you either modify the map or free up a pin - e.g the spindle direction pin if that is unsed.
—
Reply to this email directly, view it on GitHub[#237 (comment)], or unsubscribe[https://github.com/notifications/unsubscribe-auth/ABFIKPMEUCVAJ7752SCIBU33DXCHFAVCNFSM6AAAAAB7LNCNT2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGNBXGYZDQMQ].
You are receiving this because you authored the thread.
[Tracking image][https://github.com/notifications/beacon/ABFIKPMF25JLDOHL3DNNEAD3DXCHFA5CNFSM6AAAAAB7LNCNT2WGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAZWQ3U.gif]
|
Beta Was this translation helpful? Give feedback.
-
Hi Jon,
Thanks for your reply!
Are there any examples for adding an AUX output port?
From: Jon Escombe ***@***.***>
Sent: Monday, June 16, 2025 3:43 AM
To: grblHAL/STM32F4xx ***@***.***>
Cc: Andy (gardenweazel) Lewis ***@***.***>; Author ***@***.***>
Subject: Re: [grblHAL/STM32F4xx] Enabing fans on SKR Pro v1.2 (Discussion #237)
Yes, but all aux outputs are in use already, hence nothing for the fans plugin to claim..
From the standard map file, there are the 5 aux outputs defined here <https://github.com/grblHAL/STM32F4xx/blob/d44d3ff2799a1887a9f52dc0aab4f1946599a9cc/boards/btt_skr_pro_v1_1_map.h#L121-L130> . And you can see from just below that (and from your $pins output), that 3 are being used for spindle control, and 2 for coolant.
As Terje says, you will need to free up one of these, or add another aux output..
—
Reply to this email directly, view it on GitHub <#237 (reply in thread)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABFIKPKGZONTB4AVIPTMY2L3DZ7R5AVCNFSM6AAAAAB7LNCNT2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGNBYGA3TGNA> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/ABFIKPP3XD6NL6HLRI6UEKD3DZ7R5A5CNFSM6AAAAAB7LNCNT2WGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAZWZR4.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
-
It’s a no-go:
GrblHAL 1.1f ['$' or '$HELP' for help]
[VER:1.1f.20250611:]
[OPT:VNM0SL2,100,1024,4,0]
[AXS:4:XYZA]
[NEWOPT:ENUMS,RT+,PROBES=1,ES,SED]
[FIRMWARE:grblHAL]
[SIGNALS:HSEP]
[NVS STORAGE:*FLASH]
[FREE MEMORY:86K]
[DRIVER:STM32F407]
[DRIVER VERSION:250609]
[BOARD:BTT SKR PRO v1.1]
[AUX IO:1,0,0,0]
[PLUGIN:Bootloader Entry v0.03]
[PLUGIN:Trinamic v0.30]
[G54:0.000,0.000,0.000,0.000]
[G55:0.000,0.000,0.000,0.000]
[G56:0.000,0.000,0.000,0.000]
[G57:0.000,0.000,0.000,0.000]
[G58:0.000,0.000,0.000,0.000]
[G59:0.000,0.000,0.000,0.000]
[G59.1:0.000,0.000,0.000,0.000]
[G59.2:0.000,0.000,0.000,0.000]
[G59.3:0.000,0.000,0.000,0.000]
[G28:0.000,0.000,0.000,0.000]
[G30:0.000,0.000,0.000,0.000]
[G92:0.000,0.000,0.000,0.000]
[TLO:0.000,0.000,0.000,0.000]
[PRB:0.000,0.000,0.000,0.000:0]
[SPINDLE:0|0|0|*DLIRV|PWM|0.0,1000.0]
$pins
[PIN:PD11,Feed hold]
[PIN:PG2,Cycle start]
[PIN:PG6,Emergency stop]
[PIN:PA1,Probe]
[PIN:PB10,X limit min]
[PIN:PE12,Y limit min]
[PIN:PG5,Y limit min 2]
[PIN:PG8,Z limit min]
[PIN:PE15,A limit min]
[PIN:PG4,Aux in 0,P0]
[PIN:PE9,X step]
[PIN:PE11,Y step]
[PIN:PD15,Y2 step]
[PIN:PE13,Z step]
[PIN:PE14,A step]
[PIN:PF1,X dir]
[PIN:PE8,Y dir]
[PIN:PE7,Y2 dir]
[PIN:PC2,Z dir]
[PIN:PA0,A dir]
[PIN:PF2,X enable]
[PIN:PD7,Y enable]
[PIN:PA3,Y enable]
[PIN:PC0,Z enable]
[PIN:PC3,A enable]
[PIN:PE5,Spindle on]
[PIN:PE6,Spindle direction]
[PIN:PA8,Spindle PWM]
[PIN:PD14,Mist]
[PIN:PB1,Flood]
[PIN:PC13,UART X]
[PIN:PE3,UART Y]
[PIN:PE1,UART Z]
[PIN:PD4,UART M3]
[PIN:PD1,UART M4]
[PIN:PA10,RX,UART1]
[PIN:PA9,TX,UART1]
[PIN:PD9,RX,UART2]
[PIN:PD8,TX,UART2]
[PIN:PC7,RX,UART3]
[PIN:PC6,TX,UART3]
M106 P0
error:20 - Unsupported or invalid g-code command found in block.
M106 P1
error:20 - Unsupported or invalid g-code command found in block.
M106 P2
error:20 - Unsupported or invalid g-code command found in block.
From: Terje Io ***@***.***>
Sent: Monday, June 16, 2025 12:13 PM
To: grblHAL/STM32F4xx ***@***.***>
Cc: Andy (gardenweazel) Lewis ***@***.***>; Author ***@***.***>
Subject: Re: [grblHAL/STM32F4xx] Enabing fans on SKR Pro v1.2 (Discussion #237)
If you are not using spindle direction add
-D SPINDLE0_ENABLE=12
to platformio.ini - this will free up the spindle direction output. <https://github.com/grblHAL/core/blob/596576763e88f2bcd288b5f3d729d0b1cb1e85af/spindle_control.h#L41>
—
Reply to this email directly, view it on GitHub <#237 (reply in thread)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABFIKPOUSL75DFEDPXGRLD33D33INAVCNFSM6AAAAAB7LNCNT2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGNBYGY3TSMI> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/ABFIKPJG6MTKD5WD5PNWNWT3D33INA5CNFSM6AAAAAB7LNCNT2WGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAZXFMO.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
-
Actually I did a clean and recompiled and have a good image now.
I’m still getting the M106 error. Note that pin PE6 is FAN2.
GrblHAL 1.1f ['$' or '$HELP' for help]
[VER:1.1f.20250611:]
[OPT:VNMD0SL2,100,1024,4,0]
[AXS:4:XYZA]
[NEWOPT:ENUMS,RT+,PROBES=1,ES,SED]
[FIRMWARE:grblHAL]
[SIGNALS:HSEP]
[NVS STORAGE:*FLASH]
[FREE MEMORY:86K]
[DRIVER:STM32F407]
[DRIVER VERSION:250609]
[BOARD:BTT SKR PRO v1.1]
[AUX IO:0,1,0,0]
[PLUGIN:Bootloader Entry v0.03]
[PLUGIN:Trinamic v0.30]
[PLUGIN:Laser coolant v0.08]
[PLUGIN:Fans v0.17]
[FANS:0]
[G54:0.000,0.000,0.000,0.000]
[G55:0.000,0.000,0.000,0.000]
[G56:0.000,0.000,0.000,0.000]
[G57:0.000,0.000,0.000,0.000]
[G58:0.000,0.000,0.000,0.000]
[G59:0.000,0.000,0.000,0.000]
[G59.1:0.000,0.000,0.000,0.000]
[G59.2:0.000,0.000,0.000,0.000]
[G59.3:0.000,0.000,0.000,0.000]
[G28:0.000,0.000,0.000,0.000]
[G30:0.000,0.000,0.000,0.000]
[G92:0.000,0.000,0.000,0.000]
[TLO:0.000,0.000,0.000,0.000]
[PRB:0.000,0.000,0.000,0.000:0]
[SPINDLE:0|0|0|*LIRV|PWM|0.0,1000.0]
$pins
[PIN:PD11,Feed hold]
[PIN:PG2,Cycle start]
[PIN:PG6,Emergency stop]
[PIN:PA1,Probe]
[PIN:PB10,X limit min]
[PIN:PE12,Y limit min]
[PIN:PG5,Y limit min 2]
[PIN:PG8,Z limit min]
[PIN:PE15,A limit min]
[PIN:PG4,Aux in 0,Coolant ok]
[PIN:PE9,X step]
[PIN:PE11,Y step]
[PIN:PD15,Y2 step]
[PIN:PE13,Z step]
[PIN:PE14,A step]
[PIN:PF1,X dir]
[PIN:PE8,Y dir]
[PIN:PE7,Y2 dir]
[PIN:PC2,Z dir]
[PIN:PA0,A dir]
[PIN:PF2,X enable]
[PIN:PD7,Y enable]
[PIN:PA3,Y enable]
[PIN:PC0,Z enable]
[PIN:PC3,A enable]
[PIN:PE5,Spindle on]
[PIN:PA8,Spindle PWM]
[PIN:PD14,Mist]
[PIN:PB1,Flood]
[PIN:PE6,Aux out 1,P0]
[PIN:PC13,UART X]
[PIN:PE3,UART Y]
[PIN:PE1,UART Z]
[PIN:PD4,UART M3]
[PIN:PD1,UART M4]
[PIN:PA10,RX,UART1]
[PIN:PA9,TX,UART1]
[PIN:PD9,RX,UART2]
[PIN:PD8,TX,UART2]
[PIN:PC7,RX,UART3]
[PIN:PC6,TX,UART3]
M106
error:20 - Unsupported or invalid g-code command found in block.
From: Terje Io ***@***.***>
Sent: Monday, June 16, 2025 12:13 PM
To: grblHAL/STM32F4xx ***@***.***>
Cc: Andy (gardenweazel) Lewis ***@***.***>; Author ***@***.***>
Subject: Re: [grblHAL/STM32F4xx] Enabing fans on SKR Pro v1.2 (Discussion #237)
If you are not using spindle direction add
-D SPINDLE0_ENABLE=12
to platformio.ini - this will free up the spindle direction output. <https://github.com/grblHAL/core/blob/596576763e88f2bcd288b5f3d729d0b1cb1e85af/spindle_control.h#L41>
—
Reply to this email directly, view it on GitHub <#237 (reply in thread)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABFIKPOUSL75DFEDPXGRLD33D33INAVCNFSM6AAAAAB7LNCNT2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGNBYGY3TSMI> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/ABFIKPJG6MTKD5WD5PNWNWT3D33INA5CNFSM6AAAAAB7LNCNT2WGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAZXFMO.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
-
What is your $386 setting? It should be set to 1 for Aux out 1 You will need to restart the controller after setting, the assignment should then show up in the $pins report.. Example output from a dev board, with $386=1
|
Beta Was this translation helpful? Give feedback.
-
ioSender doesn’t allow me to save $386=1
GrblHAL 1.1f ['$' or '$HELP' for help]
[VER:1.1f.20250611:]
[OPT:VNMD0SL2,100,1024,4,0]
[AXS:4:XYZA]
[NEWOPT:ENUMS,RT+,PROBES=1,ES,SED]
[FIRMWARE:grblHAL]
[SIGNALS:HSEP]
[NVS STORAGE:*FLASH]
[FREE MEMORY:86K]
[DRIVER:STM32F407]
[DRIVER VERSION:250609]
[BOARD:BTT SKR PRO v1.1]
[AUX IO:0,1,0,0]
[PLUGIN:Bootloader Entry v0.03]
[PLUGIN:Trinamic v0.30]
[PLUGIN:Laser coolant v0.08]
[PLUGIN:Fans v0.17]
[FANS:0]
ok
$0=10.0
$1=25
$2=0
$3=1
$4=11
$5=0
$6=0
$8=0
$9=3
$10=511
$11=0.010
$12=0.002
$13=0
$14=70
$15=0
$16=0
$17=0
$18=0
$19=0
$20=0
$21=0
$22=0
$23=3
$24=25.0
$25=500.0
$26=250
$27=4.000
$28=0.000
$29=0.0
$30=1000.000
$31=0.000
$32=1
$33=5000.0
$34=0.0
$35=0.0
$36=100.0
$37=0
$39=1
$40=0
$43=1
$44=1
$45=2
$46=0
$47=0
$62=0
$63=0
$64=0
$65=0
$100=200.00000
$101=200.00000
$102=0.00000
$103=200.00000
$110=2000.000
$111=2000.000
$112=0.000
$113=2000.000
$120=30.000
$121=30.000
$122=0.000
$123=30.000
$130=666.000
$131=714.000
$132=0.000
$133=200.000
$140=700
$141=700
$142=500
$143=700
$150=16
$151=16
$152=16
$153=16
$170=0.000
$171=0.000
$172=0.000
$173=0.000
$200=22.0
$201=22.0
$202=22.0
$203=22.0
$210=50
$211=50
$212=50
$213=50
$220=22.0
$221=22.0
$222=22.0
$223=22.0
$338=15
$339=0
$341=0
$342=30.0
$343=25.0
$344=200.0
$345=200.0
$346=1
$347=5.0
$348=2.500
$349=25.000
$370=0
$372=0
$376=1
$378=0.0
$379=0.0
$384=0
$386=0.0
$391=0.0
$394=0.0
$398=100
$480=0.0
$481=0
$483=1
$484=1
$486=0
$538=0
$539=0.0
$673=0.0
$676=3
$680=0
ok
[GC:G0 G54 G17 G21 G90 G94 G49 G98 G50 M5 M9 T0 F0 S0.]
ok
[G54:0.000,0.000,0.000,0.000]
[G55:0.000,0.000,0.000,0.000]
[G56:0.000,0.000,0.000,0.000]
[G57:0.000,0.000,0.000,0.000]
[G58:0.000,0.000,0.000,0.000]
[G59:0.000,0.000,0.000,0.000]
[G59.1:0.000,0.000,0.000,0.000]
[G59.2:0.000,0.000,0.000,0.000]
[G59.3:0.000,0.000,0.000,0.000]
[G28:0.000,0.000,0.000,0.000]
[G30:0.000,0.000,0.000,0.000]
[G92:0.000,0.000,0.000,0.000]
[TLO:0.000,0.000,0.000,0.000]
[PRB:0.000,0.000,0.000,0.000:0]
ok
$pins
[PIN:PD11,Feed hold]
[PIN:PG2,Cycle start]
[PIN:PG6,Emergency stop]
[PIN:PA1,Probe]
[PIN:PB10,X limit min]
[PIN:PE12,Y limit min]
[PIN:PG5,Y limit min 2]
[PIN:PG8,Z limit min]
[PIN:PE15,A limit min]
[PIN:PG4,Aux in 0,Coolant ok]
[PIN:PE9,X step]
[PIN:PE11,Y step]
[PIN:PD15,Y2 step]
[PIN:PE13,Z step]
[PIN:PE14,A step]
[PIN:PF1,X dir]
[PIN:PE8,Y dir]
[PIN:PE7,Y2 dir]
[PIN:PC2,Z dir]
[PIN:PA0,A dir]
[PIN:PF2,X enable]
[PIN:PD7,Y enable]
[PIN:PA3,Y enable]
[PIN:PC0,Z enable]
[PIN:PC3,A enable]
[PIN:PE5,Spindle on]
[PIN:PA8,Spindle PWM]
[PIN:PD14,Mist]
[PIN:PB1,Flood]
[PIN:PE6,Aux out 1,P0]
[PIN:PC13,UART X]
[PIN:PE3,UART Y]
[PIN:PE1,UART Z]
[PIN:PD4,UART M3]
[PIN:PD1,UART M4]
[PIN:PA10,RX,UART1]
[PIN:PA9,TX,UART1]
[PIN:PD9,RX,UART2]
[PIN:PD8,TX,UART2]
[PIN:PC7,RX,UART3]
[PIN:PC6,TX,UART3]
ok
From: Jon Escombe ***@***.***>
Sent: Tuesday, June 17, 2025 4:15 AM
To: grblHAL/STM32F4xx ***@***.***>
Cc: Andy (gardenweazel) Lewis ***@***.***>; Author ***@***.***>
Subject: Re: [grblHAL/STM32F4xx] Enabing fans on SKR Pro v1.2 (Discussion #237)
What is your $386 setting <https://github.com/grblHAL/Plugin_fans> ? It should be set to 1 for Aux out 1
You will need to restart the controller after setting, the assignment should then show up in the $pins report..
Example output from a dev board, with $386=1
$pins
...
[PIN:PB11,Aux out 0,P0]
[PIN:PE2,Aux out 1,Fan 0]
[PIN:PF0,Aux out 2,P1]
[PIN:PE5,Aux analog out 0,E0]
[PIN:PE6,Aux analog out 1,E1]
...
—
Reply to this email directly, view it on GitHub <#237 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABFIKPPCDT5BMB4EELDIV2D3D7MC7AVCNFSM6AAAAAB7LNCNT2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGNBZGQZDGNQ> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/ABFIKPNFT36FEMRPQEDLSWL3D7MC7A5CNFSM6AAAAAB7LNCNT2WGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAZXT5Y.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
-
Something isn't stacking up here. Note the areas that I have highlighted. GrblHAL 1.1f ['$' or '$HELP' for help] Finally here's my platformio.ini relevant section:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for that commit! I was successful in compiling. However I did get this warning:
I've not tried running it and will report back once confirmed. |
Beta Was this translation helpful? Give feedback.
-
I'm still getting an error: 2 from the console when I start ioSender XL. It sounds as if its an issue with the g-code initialization. When I enter a M106 I still get an error as follows:
|
Beta Was this translation helpful? Give feedback.
-
I can't change $386 period. Tried from GrblHal settings and from command line. |
Beta Was this translation helpful? Give feedback.
-
You are absolutely correct! That was the first file that I merged and suspect I was distracted. In any case is working now and I thank your for your continued support. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've added: -D FANS_ENABLE=1
to the [env:btt_skr_pro_1_1] section of my platformio.ini in order to enable a fan. The code compiles just fine.
Upon boot I get a code 10 error.
GrblHAL 1.1f ['$' or '$HELP' for help]
Alarm:10 -
[VER:1.1f.20250611:]
[OPT:VNM0SL,100,1024,3,0]
[AXS:3:XYZ]
[NEWOPT:ENUMS,RT+,PROBES=1,ES,SED]
[FIRMWARE:grblHAL]
[SIGNALS:HSEP]
[NVS STORAGE:*FLASH]
[FREE MEMORY:88K]
[DRIVER:STM32F407]
[DRIVER VERSION:250609]
[BOARD:BTT SKR PRO v1.1]
[AUX IO:1,0,0,0]
[PLUGIN:Bootloader Entry v0.03]
[PLUGIN:Fans v0.17]
[FANS:0]
[G54:0.000,0.000,0.000]
[G55:0.000,0.000,0.000]
[G56:0.000,0.000,0.000]
[G57:0.000,0.000,0.000]
[G58:0.000,0.000,0.000]
[G59:0.000,0.000,0.000]
[G59.1:0.000,0.000,0.000]
[G59.2:0.000,0.000,0.000]
[G59.3:0.000,0.000,0.000]
[G28:0.000,0.000,0.000]
[G30:0.000,0.000,0.000]
[G92:0.000,0.000,0.000]
[TLO:0.000,0.000,0.000]
[PRB:0.000,0.000,0.000:0]
[SPINDLE:0|0|0|*DLIRV|PWM|0.0,1000.0]
$pins
[PIN:PD11,Feed hold]
[PIN:PG2,Cycle start]
[PIN:PG6,Emergency stop]
[PIN:PA1,Probe]
[PIN:PB10,X limit min]
[PIN:PE12,Y limit min]
[PIN:PG8,Z limit min]
[PIN:PG4,Aux in 0,P0]
[PIN:PE9,X step]
[PIN:PE11,Y step]
[PIN:PE13,Z step]
[PIN:PF1,X dir]
[PIN:PE8,Y dir]
[PIN:PC2,Z dir]
[PIN:PF2,X enable]
[PIN:PD7,Y enable]
[PIN:PC0,Z enable]
[PIN:PE5,Spindle on]
[PIN:PE6,Spindle direction]
[PIN:PA8,Spindle PWM]
[PIN:PD14,Mist]
[PIN:PB1,Flood]
[PIN:PA10,RX,UART1]
[PIN:PA9,TX,UART1]
[PIN:PD9,RX,UART2]
[PIN:PD8,TX,UART2]
[PIN:PC7,RX,UART3]
[PIN:PC6,TX,UART3]
Any ideas why this error?
Beta Was this translation helpful? Give feedback.
All reactions