I tried my Huanyang VFD spindle controller and a 485 USB interface, and thou it connects I never found a way to control it with the hex data. I must be missing something here. The photo is the options I set. Are there others I missed? My spindle never started.
Can you provide your completed script? Thanks. Something I am missing or this controller is different than yours.
Side Note: I use 3 mpgs with Auggie and Pokeys57cnc one for each axis.
Functional overview
-
Amazon [Bot]
- Full Member

- Posts: 185
- Joined: Tue Jan 06, 2026 4:56 pm
Re: Functional overview
You do not have the required permissions to view the files attached to this post.
-
Richard Cullin
- Site Admin
- Posts: 152
- Joined: Sat Jun 02, 2012 4:45 pm
Re: Functional overview
ya-nvr-no
that matches my settings , I have a few issues with windows changing the com port on me, every time I plug the adapter in its different port
pd165=3
pd164=1
pd163=1
if you call the GetVfdSpeed modified like this it will read the set freq , I call it from the m10 function when testing its wery handy and the spindle can remain still (quiet)
global GetVfdSpeed = function( )
{
CRC=0xffff;
vfd={1,4,3,0,0,0}; // will read set freq
...
you need to confirm the comms are working I here some vfd have missing rs485 chips
that matches my settings , I have a few issues with windows changing the com port on me, every time I plug the adapter in its different port
pd165=3
pd164=1
pd163=1
if you call the GetVfdSpeed modified like this it will read the set freq , I call it from the m10 function when testing its wery handy and the spindle can remain still (quiet)
global GetVfdSpeed = function( )
{
CRC=0xffff;
vfd={1,4,3,0,0,0}; // will read set freq
...
you need to confirm the comms are working I here some vfd have missing rs485 chips
You do not have the required permissions to view the files attached to this post.
Last edited by Richard Cullin on Mon Jan 09, 2017 12:57 am, edited 1 time in total.
-
ArtF
- Global Moderator

- Posts: 4557
- Joined: Sun Sep 05, 2010 5:14 pm
- Contact:
Re: Functional overview
Richard:
Probing is roughed it. I will take a look at it once I clear up a few things Im working on.
As of the next version, Ive added a SendTableCRC16 function so you dont need to
compute crc's.
myser = Serial();
myser.Open(6,9600);
vfd={0x01,0x03,0x01,0x01};//,0x31,0x88};
myser.Table = vfd;
crc = myser.SendTableCRC16();
str = format("0x%x",crc);
print( str );
This will print 0x8831 , as thats the returned crc. It sends the 0x31, 0x88 at the end of the
table, so you need only fill a table with command data, the CRC can be taken care of automatically.
Art
Probing is roughed it. I will take a look at it once I clear up a few things Im working on.
As of the next version, Ive added a SendTableCRC16 function so you dont need to
compute crc's.
myser = Serial();
myser.Open(6,9600);
vfd={0x01,0x03,0x01,0x01};//,0x31,0x88};
myser.Table = vfd;
crc = myser.SendTableCRC16();
str = format("0x%x",crc);
print( str );
This will print 0x8831 , as thats the returned crc. It sends the 0x31, 0x88 at the end of the
table, so you need only fill a table with command data, the CRC can be taken care of automatically.
Art