Look at the HD1 input on the HY. If I understand the manual correctly that allows a pulse input to control the speed. One of the Sx inputs can be programmed for direction.
You might ask why, it's for my mill turn setup running on mach3 which has a vertical milling spindle (huanyang vfd), and a servo controlled horizontal turning spindle. I have it working already using swap axis to switch the servo spindle between spindle and 4th axis, but the vfd vertical spindle has to run on a plugin since the motor tuning for spindle is setup for the servo spindle. This causes some odd behavior during synchronized ops like threading since the rpm readout gets confused between the 2 spindles. I have a work around that is working, but not optimal.
I think the best solution would be to ditch the plugin and be able to run both spindles on step/dir. Matching steps per unit for the 2 spindles is not important since I can call a pulley selection to adjust ratio in my swap axis macro. I will have the proper units setup for the servo spindle and use pulley gearing to adjust vertical spindle to correct speed.
Does anyone know of a step/dir to +/-10v converter I can use for this? I found the yapsc which I think would work, but can't find one for sale. Not sure if he even makes them any more. I've searched and found quite a few links from years ago, but having trouble actually finding something for sale.
Similar Threads:
Look at the HD1 input on the HY. If I understand the manual correctly that allows a pulse input to control the speed. One of the Sx inputs can be programmed for direction.
Jim Dawson
Sandy, Oregon, USA
Mactec54
The problem is, I have to mach3 set up as a step/dir spindle since that's how my horizontal mill turn servo spindle runs. The swap axis macro just switches the pin out between the vertical and horizontal spindle, so both need to be driven by step/dir. Right now it works since the vfd is controlled by a plugin which works independently from however the spindle is setup in mach3, but it has some slight complications running this way. Getting rid of the plugin and controlling both with step/dir will eliminate the complications.
I definitely might want your yapsc. I'm still exploring options, like possibly switching to mach4 for other reasons like ability for xyz tool offsets. With mach4 there might also be other options for controlling multiple spindles, possibly by using out of band axis and editing post to output something other than sxxx m3. Ill let you know if i need it though
CNC4PC makes step/dir to analog speed control boards.
Gerry
UCCNC 2017 Screenset
[URL]http://www.thecncwoodworker.com/2017.html[/URL]
Mach3 2010 Screenset
[URL]http://www.thecncwoodworker.com/2010.html[/URL]
JointCAM - CNC Dovetails & Box Joints
[URL]http://www.g-forcecnc.com/jointcam.html[/URL]
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Gerry
UCCNC 2017 Screenset
[URL]http://www.thecncwoodworker.com/2017.html[/URL]
Mach3 2010 Screenset
[URL]http://www.thecncwoodworker.com/2010.html[/URL]
JointCAM - CNC Dovetails & Box Joints
[URL]http://www.g-forcecnc.com/jointcam.html[/URL]
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)