Sorry for the delay…
I currently do not have a vfd/spindle on my OneFinity. I do have one on another cnc controlled by Mach3. The information below should be a good way to test your vfd/spindle with the OneFinity Controller.
OK, here is some g-code that will test your spindle and vfd to make sure they are working correctly with the OneFinity Controller. It will also demonstrate the use of M0 command with popup messages. Copy the following g-code and paste it in a new Text File using Windows Notepad or equivalent. Do not use a word processor because it will insert formatting commands that will cause errors. Saving it with the default .txt extension is ok. It will still load and run on the OneFinity just fine.
G91 G1 Z 0.250 F50
M0 (MSG, Click Continue to turn your spindle on at 1000 RPM)
M0 (MSG, Click Continue to increase to 5000 RPOM)
M0 (MSG, Click Continue to increase to 24000 RPM)
M0 (MSG, Click Continue to turn spindle off and end this test)
Send the saved file to your OneFinity controller just like you would a regular carving gcode file and when ready click the play button to start it
What the TEST file will do:
- Set your units to imperial and then Raise your spindle up 1/4 inch
- Prompt you to click continue to Turn on your spindle at 1000 rpm
- Prompt you to click continue button to increase rpm to 5000
- Prompt you to click continue button to increase rpm to 24000
- Prompt you to click continue to turn off your spindle off and end test.
Keep in mind that the spindle rpm will not be exact but could be close. If you find that it is way off then edit your VFD PD070 setting to match the voltage output of the OneFinity Controller closer which I believe tops out at 3.2 volts. So PD070 may need to be set at 0-5 volts since I don’t think there is a setting for 0-3.2volts. Below is a calculated chart that shows Requested RPM via G-Code and what I believe will be the actual rpm.The assumption here is the OneFinity will only output a max of 3.2 volts for the PWM output to the VFD which is looking for 5 volts to achieve a max rpm of 24000. If the OneFinity output is in fact limited to 3.2 volts then your spindle rpm will likely max out at 16000 rpm. To allow for manual rpm control, change PD002 to a 0 on the VFD to use the rotary dial on the front to control the rpm of the spindle and still use the M3 and M5 commands to turn the spindle on and off. I believe there will also be a jumper to move on the vfd when changing PD002. The Sxxx commands in your gcode will be ignored when your VFD is set to manually control the RPM.
1500 RPM —1000 RPM
3000 RPM — 2000 RPM
4500 RPM — 3000 RPM
6000 RPM — 4000 RPM
7500 RPM — 5000 RPM
9000 RPM — 6000 RPM
10500 RPM—7000 RPM
12000 RPM—8000 RPM
13500 RPM—9000 RPM
15000 RPM—10000 RPM
16500 RPM—11000 RPM
18000 RPM—12000 RPM
19500 RPM—13000 RPM
21000 RPM—14000 RPM
22500 RPM—15000 RPM
24000 RPM—16000 RPM