I can’t get that link to work . Maybe it’s my phone . I will try it on computer when I get off work .
This may work for you they are called a gender changer you can get them in any combination you need
https://www.ebay.com/sch/i.html?_nkw...male+to+female
Mactec54
Hi Mac I hooked up the eBay board like the wire diagram shows on a YouTube video the motor turns on and off in Mach but still no speed control like the geko the only thing that is better when I turn off the board the spindle stays off unlike the geko it starts . I must be missing something in the vfd setting.
Have you added the 12v power supply, between the relay out and the 0-10 v out, connect this correct as well watch the where you put the +/- connections, if you have you can then check for the 0-10v out from the board once you get that working then you will should have speed control
Also do you have the jumper set for terminal control
PD001=0 (1 For Remote Control)
PD002=0 ( 1 For 0-10v Terminal Control or Remote Trim Pot Control ) ( J1 Also Needs to be set for Terminal Control )
Mactec54
This thread appears to have strayed off track from its original intention,
The main idea behind this thread was to demonstrate how easy it is to interface the Digital output of the G540 to any VFD or controller PLC that uses a source input in order to use the G540 sink output for FWD command signal.
This method is intended to eliminate or exclude the alternative to an intermediate relay.
Which incidentally the SuperPID Triac Spindle controller manual also shows as the recommended way.
The device interfacing the G540 to has to be able to either use the typical opto input that has a source voltage or one that can be configured for source or sink, the Huanyang for example has a set (non-configurable) sourced PLC input.
Any further posts that are not relevant will be given their own thread.
Al_The_Man
CNC, Mechatronics Integration and Custom Machine Design
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Hi Racetech,
Did you figure out a solution to this problem?
I'm experiencing the same problem as you are. All of it, including spindle powering back up when the G540 is powered off. With the way that it's wired (as mentioned above) and Pd002 = 1, I can turn on/off the spindle using Mach3 but not adjust the speed.
Any fix to this issue would be much appreciated.
This was a most helpful thread for getting my G540 and LinuxCNC running the Huanyang VFD and Chinese spindle on my small CNC. I started with Al_The_Man's post #1 and quickly got forward working and then quickly added reverse just because why not. I used a combination of the G540 manual and some other forum thread to wire up speed control.
Here's my wiring breakout
G540 Pin => VFD
5 => FOR (forward)
6 => REV (reverse)
7 => ACM (speed control)
8 => VI (speed control)
9 => 10V (speed control)
12 => DCM (forward/reverse)
I changed two VFD settings to reflect computer control: PD001 from 0 to 1, PD002 from 0 to 1.
As I was running through wiring, in three phases (forward, reverse, speed), I ran stepconf (sp?) in LinuxCNC to create a dummy configuration just for testing, then copied the applicable settings from the dummy .hal file to my regular .hal file.
All told, I spent maybe 2 hours in wiring, quadruple checking wiring, checking pinouts between G540 manual and configuration files, research, adjusting configuration files, etc. If I had to do it again today, it would probably take about 15 minutes at a slow pace and carefully validating wiring correctness.
This is going to be so convenient, especially as I want to mount my control box in a location that won't be convenient to get to the VFD frequently; instead, I only have to turn the box on and off via easily accessible buttons on the outside.
Thanks Al_The_Man,
Roy
________________________
My First Machine Build Log
I’ve been reading such different approaches to the same components I have, I can’t get any of them to work. My next thing is to try an order an rs485
CNC, Mechatronics Integration and Custom Machine Design
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.