1.5kw vevor spindle skr pro 1.2 wiring and setup

Mine do good. One machine has a PLA core on it the other a PETG core and either are fine. The limit you have with the vevor VFD is there isn’t any way to get it to display RPM, at least not that I have found anyways. So you have to do the conversion from HZ to RPM which is easy. 200=12000 and 400=24000

1 Like

ok so my gcode issues a M3 S14500 command,
However Marlin displays a message “Unknown Command MM3 S14500” on the tft screen.
Even though the gcode only shows the 1x M for M3 S14500.
im using Marlin latest version. anyone else have this issue?>
My PP for vectric is producing the gcode which shows correctly

Not sure on that one. I never tried to have marlin run the spindle. I just started getting the jackpot to run it and that’s been going well

Can you upload the g-code file that has the problem? Don’t paste it into a topic, use the upload button. I’d like to 1) view it in a tool that will see if there are any hidden characters, and 2) send it to my Marlin board to see if I get the same issue.

test.gcode (7.0 KB)
ok so this is gives me a error before it starts the toolpath.
It goes through the prompts (material secured, attach tool/touchplate, remove touchplate, click to start, then the M3 S14500 errors.
it does proceed on and not halt the system and goes to the tool3 onwards. there are other m3 S14500 commands during tool change but that doesnt error out. so it only errors the beginning of the gcode.

; test
; Minimum extent in X = 0.000 Minimum extent in Y = 0.000 Minimum extent in Z = -25.500
; Maximum extent in X = 430.000 Maximum extent in Y = 1820.000 Maximum extent in Z = 0.000
; Length of material in X = 430.000
; Length of material in Y = 1820.000
; Depth of material in Z = 25.500
; Home X = X0.000 Home Y = Y0.000 Home Z = Z20.000
; Safe Z height: 20.000
; Tools: 3 = 1/16" End Mill 2 Flute Downcut (1.59 mm)
; Tools: 1 = 1/8" End Mill 1 Flute UpCut (3.18 mm)
; Notes: 
; Generated Saturday December 09 2023 04:46 PM
 
M150 S0 R255 U0 B0
M150 S1 R21 U28 B235
G90
M400
M300
M117 Load 1/16" End Mill 2 Flute Downcut (1.59 mm)
M0 Load 1/16" End Mill 2 Flute Downcut (1.59 mm)
M118 P0 Load 1/16" End Mill 2 Flute Downcut (1.59 mm)
M84 S0
G21
G92 X0 Y0
M400
M300
G0 X100 Y100 F2520
M117 Is Material Loaded & Secured?
M00 Is Material Loaded & Secured?
M118 P0 Is Material Loaded & Secured?
M400
M300
M117 Attach Tool and Touchplate
M0 Attach Tool and Touchplate
M118 P0 Attach Tool and Touchplate
M400
G38.2 Z0
G92 Z0.5
G1 Z10 F500
M400
M300
M117 Remove Touchplate
M0 Remove Touchplate
M118 P0 Remove Touchplate
M400
G1 X0.000 Y0.000 F480
M400
M300
M117 Click to Start!
M00 Click to Start!
M118 P0 Click to Start!
M400
M150 S0 R255 U0 B0
M150 S1 R255 U255 B255
M3 S14500
M106 P0
M106 P1
M106 P2
; Tool 3: 1/16" End Mill 2 Flute Downcut (1.59 mm)
; Path: Drill Through Holes J:\test.gcode
; 
G0 X179.419 Y19.875 F3000
G0 Z20.000 F500
G1   Z-1.250 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-2.500 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-3.750 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-5.000 F180.0
G0   F3000
G0 Z20.000 F500
G0 X115.419  F3000
G0  F500
G1   Z-1.250 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-2.500 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-3.750 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-5.000 F180.0
G0   F3000
G0 Z20.000 F500
G0  Y77.875 F3000
G0  F500
G1   Z-1.250 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-2.500 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-3.750 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-5.000 F180.0
G0   F3000
G0 Z20.000 F500
G0 X179.419  F3000
G0  F500
G1   Z-1.250 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-2.500 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-3.750 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-5.000 F180.0
G0   F3000
G0 Z20.000 F500
G0 X170.690 Y133.958 F3000
G0  F500
G1   Z-1.250 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-2.500 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-3.750 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-5.000 F180.0
G0   F3000
G0 Z20.000 F500
G0 X125.690 Y133.958 F3000
G0  F500
G1   Z-1.250 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-2.500 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-3.750 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-5.000 F180.0
G0   F3000
G0 Z20.000 F500
G0 X170.690 Y208.958 F3000
G0  F500
G1   Z-1.250 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-2.500 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-3.750 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-5.000 F180.0
G0   F3000
G0 Z20.000 F500
G0 X125.690 Y208.958 F3000
G0  F500
G1   Z-1.250 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-2.500 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-3.750 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-5.000 F180.0
G0   F3000
G0 Z20.000 F500
G0 X342.157 Y259.244 F3000
G0  F500
G1   Z-1.250 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-2.500 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-3.750 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-5.000 F180.0
G0   F3000
G0 Z20.000 F500
G0 X392.157  F3000
G0  F500
G1   Z-1.250 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-2.500 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-3.750 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-5.000 F180.0
G0   F3000
G0 Z20.000 F500
G0  Y357.244 F3000
G0  F500
G1   Z-1.250 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-2.500 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-3.750 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-5.000 F180.0
G0   F3000
G0 Z20.000 F500
G0 X342.157  F3000
G0  F500
G1   Z-1.250 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-2.500 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-3.750 F180.0
G0   F3000
G0 Z5.000 F500
G1   Z-5.000 F180.0
G0   F3000
G0 Z20.000 F500
; Tool change:
; Tool 1: 1/8" End Mill 1 Flute UpCut (3.18 mm)
M150 S0 R21 U28 B235
M150 S1 R255 U255 B255
M400
M117 Tool Change in progress
M118 P0 Tool Change in progress
M400
G28 Z ;goto safe z
G1 X10 Y10 F3000 ;Move XY axis close to home rapid
G0 X0.0000 Y0.0000 F500 ;Move XY axis to home
M400
M5
M107 P0
M107 P1
M107 P2
M400
M300
M150 S0 R225 U245 B2
M117 Change Tool:1/8" End Mill 1 Flute UpCut (3.18 mm)
M00 Change Tool:1/8" End Mill 1 Flute UpCut (3.18 mm)
M118 P0 Change Tool:1/8" End Mill 1 Flute UpCut (3.18 mm)
M400
M300
M117 Is Material Loaded & Secured?
M00 Is Material Loaded & Secured?
M118 P0 Is Material Loaded & Secured?
M400
M300
G0 X100 Y100 F2520
M117 Add Touchplate
M00 Add Touchplate
M118 P0 Add Touchplate
G38.2 Z0
G92 Z0.5
G1 Z10.0000 F500
M400
M300
M117 Remove Touchplate
M00 Remove Touchplate
M118 P0 Remove Touchplate
M400
G1 X10 Y10 F3000 ;Move XY axis close to home rapid
G1 X0.000 Y0.000 F500 ;Move XY axis to home
M400
M300
M117 Tool Change Complete, Continue?
M118 P0 Tool Change Complete, Continue?
M400
M00 Tool Change Complete, Continue?
M150 S0 R255
M150 S1 R255 U255 B255
M3 S14500
M106 P0
M106 P1
M106 P2
; Path: Section Markings J:\test.gcode
; 
M150 S0 R255 U255 B255
M150 S1 R255 U255 B255
G1 X10 Y10 F3000 ;Move XY axis close to home rapid
G1 X0.000 Y0.000 F500 ;Move XY axis to home
M150 S0 R255
M150 S1 R255 U255 B255
M3 S14500
M106 P0
M106 P1
M106 P2
G0 X0.649 Y104.090 F3000
G0 Z20.000 F500
G1   Z-1.000 F180.0
G1 X322.469   F600.0
G1  Y125.910  F600.0
G1 X0.649   F600.0
G1  Y104.090  F600.0
G0   F3000
G0 Z20.000 F500
G0 X51.590 Y215.718 F3000
G0  F500
G1   Z-1.000 F180.0
G1 X248.410   F600.0
G1  Y412.538  F600.0
G1 X51.590   F600.0
G1  Y215.718  F600.0
G0   F3000
G0 Z20.000 F500
G0 X328.357 Y114.321 F3000
G0  F500
G1   Z-1.000 F180.0
G1 X405.177   F600.0
G1  Y511.141  F600.0
G1 X328.357   F600.0
G1  Y114.321  F600.0
G0   F3000
G0 Z20.000 F500
G0 X188.410 Y440.662 F3000
G0  F500
G1   Z-1.000 F180.0
G1  Y522.482  F600.0
G1 X51.590   F600.0
G1  Y440.662  F600.0
G1 X188.410   F600.0
G0   F3000
G0 Z20.000 F500
G0 X298.410 Y549.905 F3000
G0  F500
G1   Z-1.000 F180.0
G1  Y876.725  F600.0
G1 X51.590   F600.0
G1  Y549.905  F600.0
G1 X298.410   F600.0
G0   F3000
G0 Z20.000 F500
G0 X322.513 Y899.061 F3000
G0  F500
G1   Z-1.000 F180.0
G1  Y920.881  F600.0
G1 X0.694   F600.0
G1  Y899.061  F600.0
G1 X322.513   F600.0
G0   F3000
G0 Z20.000 F500
G0 X324.352 Y1694.090 F3000
G0  F500
G1   Z-1.000 F180.0
G1  Y1715.910  F600.0
G1 X2.532   F600.0
G1  Y1694.090  F600.0
G1 X324.352   F600.0
G0   F3000
G0 Z20.000 F500
G28 Z ;goto safe z
G28 ;goto home
M5
M107 P0
M107 P1
M107 P2
M400
M300
M150 S0 R0 U255 B0
M150 S1 R0 U255 B0
M117 Job Complete!
M00 Job Complete!
M118 P0 Job Complete!
G4 S30
M150 S0 R255 U0 B0
M150 S1 R21 U28 B235

PS. Im not actually cutting with these tools, its just for the above testing purposes. :wink:

I took your g-code file, edited out everything but your M3 command, and ran it on my machine. There was no error, and the command turned on my laser. I wasn’t sure what was going to happen since the S value was well outside the 0 to 255 range of a PWM value used by my laser g-code, but it did turn on the laser. Marlin processed the M3 command on my control board.

Looking through the g-code, I see a lot of uncommon (to me) g-codes used in the start of the file. Plus, there is a M84 used, and I don’t find M84 in the Marlin g-code reference.

For troubleshooting, I would suggest:

  1. eliminate all the start g-code down to the first G0 except for the M3. So, your code will run the M3 and then start processing the G0 and G1 codes. If it works, then there is something in the other g-codes causing the issue. If the test does not work then…
  2. use a diff tool to compare your configuration.h and configuration_adv.h to the unmodified V1 versions. Perhaps you’ve changed a setting that is impacting the processing of M3.

If the M3 does work with all the other start code removed, then you can start putting chunks of your header back in to isolate the problem.

I use Meld as my diff tool.

M84 disables stepper motors (however don’t know why since it’s set for 0seconds lol) so will need to get rid of this in the pp.
M106 turns on relays,
M150 turns on led strip lighting.

I will edit this gcode and just delete all the extras and just have a basic command (get rid of led, relays etc).

I will try meld, thanks for that.
I’m wondering if the vfd needs to be connected maybe? As I did have the vfd offline during the test, but I didn’t seem to get this issue prior to the vfd and the gcoding still had the M3 command in there.

What throws it off is that in doesn’t impact the other M3 commands only the start. Weird!

I wonder if I put a M400(finish moves) and a G4(dwell time) just before the M3 command as it could be that the controller just couldn’t keep up in its buffer? Maybe?

M84 disables stepper motors (however don’t know why since it’s set for 0seconds lol)

I see now that M84 is documented in the Marlin g-code reference under M18, which is likely the Marlin preferred g-code, though M84 is supported.

I’ve never seen an M400 in the start code, only at the end of a file.

The use of M118 (serial print) is the only g-code I could not puzzle out why it was there. Is this talking to the VFD?

Anyway I would start with a minimal file to try and determine if the issue is related to the specific g-code sequence, or if there is a setting in the firmware causing the problem, or a Marlin bug. The ‘MM3’ is pointing to a parsing bug in Marlin, but you’d like to have a workaround if it is a bug.

M118 sends serial text to tft screen/terminal.