Page 8 of 8
Re: Functional overview
Posted: Sun Jan 08, 2017 11:47 pm
by Amazon [Bot]
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.
Re: Functional overview
Posted: Mon Jan 09, 2017 12:46 am
by Richard Cullin
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
Re: Functional overview
Posted: Mon Jan 09, 2017 2:21 am
by ArtF
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