Jump to content

Bigtreetech Scylla V1 firmware installation.


Stevo

Recommended Posts

Hi, sorry to enter this late in the conversation, I wanted to share my find on this. 
I connected my VFD on Scylla like PFarm had shown on the schematics, (and as I have shown the photos on the messages I shared with you)
AVR (Scylla) → 10V (VFD); SPD→VI; SP-G→ACM; COM→DCM; EN→FOR; DIR→REV.

after this i added this line in the config.g file :
(

; ==============================================================
;  SPINDLE — 2.2kW, 24000 RPM, VFD HY-05D5
;  Porta SPIN e Scylla:
;    PB1 = spindlepwm -> VFD VI  (speed 0-10V)
;    PC5 = spindleen  -> VFD FOR (enable/start)
;    PB0 = spindledir -> VFD REV (direction)
;
; ==============================================================
M950 R0 C"spindlepwm+spindleen+spindledir" Q200
M453 R0 F24000 L5000 I0         ; F=RPM maks, L=RPM min, I0=drejtim normal

; Tool 0 = Spindle
M563 P0 D-1 H-1 S"Spindle"      ; D-1=pa ekstrudes, H-1=pa nxehes
;G10 P0 X0 Y0 Z0                 ; offset zero per tool 0
T0                              ; activate Tool 0
; --- MODALITETI CNC ---
M453                             ; activate CNC mode 

; --- Security ---
M911 S22 R23 P"M913 X0 Y0 Z0 A0|M84 E0"

; ---  FINAL initialisation ---
G4 P1000                         ; wait 1s for stabilization 
T0                               ; activate Tool 0 (Spindle)
M300 S1000 P100
M300 S1500 P100
M300 S2000 P100
)

after this I went to VFD and make those changes:

Step 1: Reset the VFD to factory default settings
This will fully clear any accidental incorrect parameter changes, and restore the VFD to its original base state. Here’s exactly how to do it:
Make sure the VFD is powered on, and the spindle is completely stopped.
Press the PRGM key on the VFD panel to enter the parameter menu.
Use the up/down arrow keys to locate the PD013 (Parameter Reset) parameter.
Press the SET key to enter the editing interface, then change the value to 8 (this is the dedicated code for a full factory reset).
Press SET again to confirm the setting, then press PRGM to exit the menu. The VFD will automatically restore its factory default settings.
Step 2: Re-input the optimized parameters for your 2.2kW spindle
After the factory reset, we need to re-enter the spindle-specific parameters we pre-configured before shipping. These settings are tailored exactly for your 2.2kW water-cooled spindle, to ensure safe, smooth operation and full alignment with its rated performance.
Critical first step before any adjustments: Locate the PD000 parameter and set it to 0. This unlocks the parameter editing function, otherwise any changes you make will not be saved.
Once unlocked, please set the following parameters one by one:
PD003 = 400 Hz (Main frequency setting)
PD004 = 400 Hz (Base frequency setting)
PD005 = 400 Hz (Max operating frequency, matching the spindle's maximum 24000rpm speed)
PD007 = 20 Hz (Minimum frequency)
PD008 = 220V (Maximum voltage, matching your 220V spindle)
PD009 = 15 (Intermediate voltage)
PD010 = 8 (Minimum voltage)
PD011 = 150 Hz (Frequency lower limit, ensures the spindle runs fast enough for proper water cooling)
PD014 = 12 (Acceleration time, for smooth startup to protect the spindle)
PD015 = 15 (Deceleration time, for smooth stop to avoid mechanical damage)
PD070 = 1 (Analog input type: 0 = Mach3 CNC control, 1 = manual potentiometer control; you can adjust this later when connecting your CNC board)
PD072 = 400 (Higher analog frequency)
PD073 = 120 (Lower analog frequency)
PD144 = 3000 (Rated motor revolution, matching the spindle's 24000rpm at 400Hz)
After you finish setting all these parameters, press the STOP/RESET key once to ensure all settings are fully saved.
Press the PRGM key to enter the parameter menu, and locate PD002 (Source of Operating Frequency).
Press SET to ente
r editing mode, change the value to 1, then press SET again to confirm the change.
Press PRGM to exit the menu, and the setup is complete.
This setting tells the VFD to take its speed reference from the analog input (the on-board potentiometer), instead of the fixed digital frequency setting. After this adjustment, the potentiometer will adjust the spindle speed normally when you run the motor, just like it did when you first tested it.
Step 3: Test the manual control function
Once the parameters are set, you can test the VFD’s built-in controls again:
Press the RUN key to start the spindle in forward rotation (the "FOR" light will stay solid, not flashing).
Press the STOP key to stop the motor, then test the reverse rotation function to confirm it works normally.

After manually checking VFD, you disconnect it from power move on the VFD from VR to IO.

On comand PD001, change source run comand to “1” (external terminal).

After this go to PD000 set the value to “1” than restart VFD and you can control it Spindle run/for/rev/start/stop, RPM, M3,M4,M5, from onboars Spindler options in DWC. 

 

Edited by Altin Zogaj
  • Like 2
Link to comment
Share on other sites

On 4/4/2026 at 7:40 PM, Altin Zogaj said:

Hi, sorry to enter this late in the conversation, I wanted to share my find on this. 
I connected my VFD on Scylla like PFarm had shown on the schematics, (and as I have shown the photos on the messages I shared with you)
AVR (Scylla) → 10V (VFD); SPD→VI; SP-G→ACM; COM→DCM; EN→FOR; DIR→REV.

after this i added this line in the config.g file :
(

; ==============================================================
;  SPINDLE — 2.2kW, 24000 RPM, VFD HY-05D5
;  Porta SPIN e Scylla:
;    PB1 = spindlepwm -> VFD VI  (speed 0-10V)
;    PC5 = spindleen  -> VFD FOR (enable/start)
;    PB0 = spindledir -> VFD REV (direction)
;
; ==============================================================
M950 R0 C"spindlepwm+spindleen+spindledir" Q200
M453 R0 F24000 L5000 I0         ; F=RPM maks, L=RPM min, I0=drejtim normal

; Tool 0 = Spindle
M563 P0 D-1 H-1 S"Spindle"      ; D-1=pa ekstrudes, H-1=pa nxehes
;G10 P0 X0 Y0 Z0                 ; offset zero per tool 0
T0                              ; activate Tool 0
; --- MODALITETI CNC ---
M453                             ; activate CNC mode 

; --- Security ---
M911 S22 R23 P"M913 X0 Y0 Z0 A0|M84 E0"

; ---  FINAL initialisation ---
G4 P1000                         ; wait 1s for stabilization 
T0                               ; activate Tool 0 (Spindle)
M300 S1000 P100
M300 S1500 P100
M300 S2000 P100
)

after this I went to VFD and make those changes:

Step 1: Reset the VFD to factory default settings
This will fully clear any accidental incorrect parameter changes, and restore the VFD to its original base state. Here’s exactly how to do it:
Make sure the VFD is powered on, and the spindle is completely stopped.
Press the PRGM key on the VFD panel to enter the parameter menu.
Use the up/down arrow keys to locate the PD013 (Parameter Reset) parameter.
Press the SET key to enter the editing interface, then change the value to 8 (this is the dedicated code for a full factory reset).
Press SET again to confirm the setting, then press PRGM to exit the menu. The VFD will automatically restore its factory default settings.
Step 2: Re-input the optimized parameters for your 2.2kW spindle
After the factory reset, we need to re-enter the spindle-specific parameters we pre-configured before shipping. These settings are tailored exactly for your 2.2kW water-cooled spindle, to ensure safe, smooth operation and full alignment with its rated performance.
Critical first step before any adjustments: Locate the PD000 parameter and set it to 0. This unlocks the parameter editing function, otherwise any changes you make will not be saved.
Once unlocked, please set the following parameters one by one:
PD003 = 400 Hz (Main frequency setting)
PD004 = 400 Hz (Base frequency setting)
PD005 = 400 Hz (Max operating frequency, matching the spindle's maximum 24000rpm speed)
PD007 = 20 Hz (Minimum frequency)
PD008 = 220V (Maximum voltage, matching your 220V spindle)
PD009 = 15 (Intermediate voltage)
PD010 = 8 (Minimum voltage)
PD011 = 150 Hz (Frequency lower limit, ensures the spindle runs fast enough for proper water cooling)
PD014 = 12 (Acceleration time, for smooth startup to protect the spindle)
PD015 = 15 (Deceleration time, for smooth stop to avoid mechanical damage)
PD070 = 1 (Analog input type: 0 = Mach3 CNC control, 1 = manual potentiometer control; you can adjust this later when connecting your CNC board)
PD072 = 400 (Higher analog frequency)
PD073 = 120 (Lower analog frequency)
PD144 = 3000 (Rated motor revolution, matching the spindle's 24000rpm at 400Hz)
After you finish setting all these parameters, press the STOP/RESET key once to ensure all settings are fully saved.
Press the PRGM key to enter the parameter menu, and locate PD002 (Source of Operating Frequency).
Press SET to ente
r editing mode, change the value to 1, then press SET again to confirm the change.
Press PRGM to exit the menu, and the setup is complete.
This setting tells the VFD to take its speed reference from the analog input (the on-board potentiometer), instead of the fixed digital frequency setting. After this adjustment, the potentiometer will adjust the spindle speed normally when you run the motor, just like it did when you first tested it.
Step 3: Test the manual control function
Once the parameters are set, you can test the VFD’s built-in controls again:
Press the RUN key to start the spindle in forward rotation (the "FOR" light will stay solid, not flashing).
Press the STOP key to stop the motor, then test the reverse rotation function to confirm it works normally.

After manually checking VFD, you disconnect it from power move on the VFD from VR to IO.

On comand PD001, change source run comand to “1” (external terminal).

After this go to PD000 set the value to “1” than restart VFD and you can control it Spindle run/for/rev/start/stop, RPM, M3,M4,M5, from onboars Spindler options in DWC. 

Firstly thank you ALTIN and PFARM very much for all this information and this comprehensive set of instructions its very much appreciated your sharing of information to help us all out with our builds!

I wanted to ask whether this set of instructions is suitable for my particular build please.

So i have used my machine for a year now and its wired at a very basic stage ie

The steppers are controlled by the Scylla and the spindle is controlled by the VFD as a standalone unit.

So once Datum start point is set i start run on the VFD and then start the machining program through the user interface.

My emergency stop button is in line with the extension to which all of the components are connected so in an emergency power is cut to all electrical components.

So my question is do i require additional wiring other than the six wires between the Scylla board and VFD for control of the spindle to work via screen instruction. rather than physical interaction with the VFD controller?

 

Many thanks Steve

 

 

 

  • Like 1
Link to comment
Share on other sites

Regarding the VFD control, if you wire the 6 wires as shown, you'll be able to control the VFD from the user interface.

AVR (Scylla) → 10V (VFD); SPD→VI; SP-G→ACM; COM→DCM; EN→FOR; DIR→REV.

For the e-stop: Feed the AC power to the VFD through a contactor. Connect the ground wire from the stepper motor power supply to one side of the NO contact on the contactor, and the other side of the NO contact to the V-motor negative. This will shut down the spindle and stepper, but leave Scylla powered up.

On the Milo with RRF and MOS - MOS requires confirmation from the user that it is safe to energize the contactors to return the VFD and stepper to normal function. Not sure how you'd do this without using MOS.

  • Like 2
Link to comment
Share on other sites

Oh, and forgot this. Wire to the e-stop to the contactor coil = when the e-stop is activated, the coil is de-energized.

  • Like 1
Link to comment
Share on other sites

Posted (edited)

So figured out how to add the settings in the end 😊 and also added the AO jumper to Scylla and move the jumper on the VFD.

i have done four VFD resets and all with the same outcome 

Cannot control the spindle from the UI at all.

i can press the RUN button on the VFD and  the spindle goes straight to 9558rpm irrelevant of where the rotational knob is.

the STOP button has to be pressed to stop the spindle.

i tried using the wizard setup thinking it would start the spindle but nothing! 
 

The code suitable for my setup ?

cheers Steve

 

 

 

Edited by Stevo
Link to comment
Share on other sites

Just now, Stevo said:

So figured out how to add the settings in the end 😊 and also added the AO jumper to Scylla and move the jumper on the VFD.

i have done four VFD resets and all with the same outcome 

Cannot control the spindle from the UI at all.

i can press the RUN button on the VFD and  the spindle goes straight to 9558rpm irrelevant of where the rotational knob is.

the STOP button has to be pressed to stop the spindle.

i tried using the wizard setup thinking it would start the spindle but nothing! 
 

The code suitable for my setup ?

cheers Steve

If you have followed all the steps on resetting VFD, you will in the end face this issue when you test the spindle. after pressing start it will start spinning automatically and the adjustment knob wont work. to fix this you need to change PD002 (source of operation) to value 1 and press SET. press PRGM to exit. (this will tell the VFD to take its information from onboard potentiometer). But keep in mind that this only works when you want to control Spindle manually. and for it to work you also need the jumper on the VFD to be on VR.

When you want to control the Spindle from Scylla, you need to put the jumper on VI, you must change PD001 to 1, and you may need to set values on PD044~PD049 to match our wiring (check the user manual of the VFD starting form PD044 - 2: For rotation...) and also don't forget adding those commands in config.g  ( M950 R0 C"spindlepwm+spindleen+spindledir" Q200
M453 R0 F24000 L5000 I0)

If you want to add  any external emergency stop button for the Spindle you can utilize one of the ports on Scylla dedicated for end stops if you have any of them unoccupied. connect as NC and program it by creating an extra macro to act as E stop, which stops the spindle and pauses the job. Or you can add a connector to cut the power as PFarm suggested. 

P.S do not forget to set Jumper on AO for  speed OUT- chose and alvays switch of power from scylla when working on it so you don't short anything out like I did with mine and now have to wait at least a  month for new one to be shipped.

Edited by Altin Zogaj
  • Like 2
Link to comment
Share on other sites

 

Hi 

So in regards to adding to my config.g file literally the following is only required to allow the board to control the speed even if using with the Millennium addon.

M950 R0 C"spindlepwm+spindleen+spindledir" Q200
M453 R0 F24000 L5000 I0)

Is there any reason why the default settings after the reset in the VFD would stop Scylla control over the VFD / Spindle.

 

 

 

Screenshot 2026-04-06 214740.jpg

Link to comment
Share on other sites

7 minutes ago, Stevo said:

Hi 

So in regards to adding to my config.g file literally the following is only required to allow the board to control the speed even if using with the Millennium addon.

M950 R0 C"spindlepwm+spindleen+spindledir" Q200
M453 R0 F24000 L5000 I0)

Is there any reason why the default settings after the reset in the VFD would stop Scylla control over the VFD / Spindle.

Screenshot 2026-04-06 214740.jpg

Yes after installing RRF 3.6.1 for Scylla and connecting and re configuring the VFD. Set PD001=1 and PD002=1. I only needed to add those lines in the gcode.g for spindle control. No aditional macro needed because this allows the onboard RRF spindle option and comands to control it. In my case I did not need to change anything. But the seller I bought the Spindle and VFD suggested me to check those for any missing functions. After this was abble to control spindle from DWCconfig.g

  • Like 2
Link to comment
Share on other sites

Posted (edited)
20 minutes ago, Altin Zogaj said:

Yes after installing RRF 3.6.1 for Scylla and connecting and re configuring the VFD. Set PD001=1 and PD002=1. I only needed to add those lines in the gcode.g for spindle control. No aditional macro needed because this allows the onboard RRF spindle option and comands to control it. In my case I did not need to change anything. But the seller I bought the Spindle and VFD suggested me to check those for any missing functions. After this was abble to control spindle from DWCconfig.g

I just wondered about what you mentioned earlier in regards to wiring are the default values after the reset good ?

"and you may need to set values on PD044~PD049 to match our wiring (check the user manual of the VFD starting form PD044 - 2: For rotation...) "

Edited by Stevo
Link to comment
Share on other sites

Posted (edited)

Well I guess i must have been tired yesterday have started a fresh today and i now have control over the spindle via the Scylla. So apologies totally my fault !

RPM on the monitor does not seem to match the display on the VFD readout is that normal ?

 

 

Edited by Stevo
  • Like 1
Link to comment
Share on other sites

42 minutes ago, Stevo said:

Well I guess i must have been tired yesterday have started a fresh today and i now have control over the spindle via the Scylla. So apologies totally my fault !

RPM on the monitor does not seem to match the display on the VFD readout is that normal ?

I'm glad to hear you got it figured. I'm still trying to figure out the RPM issue as well.

  • Like 1
Link to comment
Share on other sites

Posted (edited)

Blimey on a roll today tool setter installed daft question how does it know how tall the tool setter is to know how far to come down to the work piece ?

Should there be an icon / tab on the desktop to be able to use it ?

Noticed that I'm using the following web control version is there a newer version ? will it have me over by updating to a more recent version ?

image.thumb.png.148e91b618e50bd9b7f9e2db674042e5.png

 

Edited by Stevo
Link to comment
Share on other sites

Posted (edited)

Just done a small program to drill a pattern of holes and the program runs in all three axis just fine but the spindle isnt been controlled by Scylla. Am I to assume I need additional code to run turn the spindle on and set the revs in a config folder ?

I am using a GRBL (mm) which will control the spindle?

Screenshot 2026-04-07 135757.png

Edited by Stevo
Link to comment
Share on other sites

Posted (edited)

 

 

; user-config.g - Configure machine or user-specific overrides

; Set Machine Name
M550 P"SCYLLA CNC"

; Activate CNC mode
M453

; LED SETTINGS
; Define Neopixel (T1 RGB, T2 with white diode RGBW)
M950 E0 C"PD6" T1
; R=Red, U-Green, B=Blue, W=White, P=Brightness (0-255), S=Number of LEDs.
M150 R255 U0 B0 W0 P255 S24 

; Set drive mappings to relevant axes
M584 X0 Y1:3 Z2

; Physical drive 0 (X) goes forwards using default driver timings
M569 P0 S1

; Physical drive 1 (Y) goes forwards using default driver timings
M569 P1 S1
; Secondary Y in drive 3
M569 P3 S1

; Physical drive 2 (Z) goes backwards using default driver timings
M569 P2 S0

; Set non-standard sense resistors for the BTT 5160 drivers
M569.9 P0.0 R0.05
M569.9 P0.1 R0.05
M569.9 P0.2 R0.05
M569.9 P0.3 R0.05

; Configure microstepping, no interpolation.
; This is about as high as we can go without losing
; significant amounts of torque.
; This puts our positional accuracy around the 0.02-0.04mm range.

M350 X32 Y32:32 Z32 I0

; Set steps per mm.
M92 X1280 Y1280:1280 Z1280

; Set motor currents (mA)
M906 X3500 Y3500:3500 Z3500

; Set standstill current reduction to 5%
M917 X10 Y10:10 Z10

; Set axis limits - minima
M208 X0 Y0 Z-185 S1

; Set axis limits - maxima
M208 X750 Y1200 Z0 S0

; Endstop X=MIN: NC
M574 X1 S1 P"PD_11"

; Endstop Y=MIN: NC
M574 Y1 S1 P"PD_14"

; Endstop Z=MAX: NC
M574 Z2 S1 P"PD_12"
 

 

 

Edited by Stevo
Link to comment
Share on other sites

With Milo, the probing is done through MOS. Maybe @Altin Zogaj can help you with setting probing in your config. I know M585 is used for probing in RRF. Found this example:

Screenshot2026-04-07at11_21_08AM.thumb.png.3fdca6fbaf229d6b53ae0925e2da13de.png

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...