Huanyang VFD plugin

Post anything you want to discuss with others about the software.

Re: Huanyang VFD plugin

Postby merlinogio » Fri Sep 21, 2018 6:59 pm

sorry for fragmented information...
with mach 3 go well..

f
merlinogio
 
Posts: 13
Joined: Sat Sep 08, 2018 5:51 am

Re: Huanyang VFD plugin

Postby ger21 » Fri Sep 21, 2018 8:19 pm

Most people that have had trouble with Dan's plugin, but no problems with Mach3, have found the USB adapter to be the issue.
Gerry
UCCNC 2017 Screenset - http://www.thecncwoodworker.com/2017.html
ger21
 
Posts: 1143
Joined: Sat Sep 03, 2016 2:17 am

Re: Huanyang VFD plugin

Postby merlinogio » Sat Sep 22, 2018 7:23 am

hi gere
if I understand you suggest to change a RS485 dongle adapter... Correct?
in your experience, there is a dongle better of the other?

thanks in adv
flavio
merlinogio
 
Posts: 13
Joined: Sat Sep 08, 2018 5:51 am

Re: Huanyang VFD plugin

Postby ger21 » Sat Sep 22, 2018 10:41 am

Gerry
UCCNC 2017 Screenset - http://www.thecncwoodworker.com/2017.html
ger21
 
Posts: 1143
Joined: Sat Sep 03, 2016 2:17 am

Re: Huanyang VFD plugin

Postby Dan911 » Sat Sep 22, 2018 11:17 am

merlinogio wrote:Hi Dan, Ger

HY12 work when it have a good day..:)

screenset 2017
Hy12 configured as in instruction
Spindle talker go well (open port and go with the slider don't go with the Fixed RPM button 6000, 8000, etc)
when i open UCNC he talk with VFD that aswer (see below)

BUT
when i click M3 Nothing

sometimes it go but with fix RPM (don't change with s command)

any suggestion?


thanks in advance

flavio



Porta aperta dal processo "UCCNC.exe" (PID: 4056)

Richiesta:21/09/2018 18:41:24.38664

01 01 03 8E 00 00 5C 65 ...?..\e

Risposta:21/09/2018 18:41:24.40764 (+0.0210 seconds)

01 01 03 8E 00 64 5D 8E ...?.d]?

Richiesta:21/09/2018 18:41:25.17764 (+0.7620 seconds)

01 01 03 8E 00 00 5C 65 ...?..\e

Risposta:21/09/2018 18:41:25.19664 (+0.0190 seconds)

01 01 03 8E 00 64 5D 8E ...?.d]?

Richiesta:21/09/2018 18:41:26.96764 (+0.7630 seconds)

01 01 03 8E 00 00 5C 65 ...?..\e

Risposta:21/09/2018 18:41:26.98664 (+0.0190 seconds)

01 01 03 8E 00 64 5D 8E


What's only working on good days is your RS485 converter.


"01 01 03 8E 00 64 5D 8E" is the byte array HY12 sends to VFD to test communication, if no response plugin won't start. With HY10 you will get a window reading "VFD not Responding".

Why it seems it's working in Mach3 with HY plugins availible is that there plugin is just sending 1 single line byte array. If you quickly and repeatedly change rpm speed in Mach3 you will see your RS485 converter will fail there also.

HY12 is continually polling its status like all Modbus programs, and some of these cheap converter chipsets can't keep up for whatever technical reasons of have no clue of.

Dan
Dan911
 
Posts: 423
Joined: Mon Oct 31, 2016 1:22 am
Location: USA

Re: Huanyang VFD plugin

Postby merlinogio » Sun Sep 23, 2018 10:17 pm

hi all
I've this dungle:
WINGONEER USB-485 USB a RS485 dell'adattatore del convertitore di Windows 08/07 XP Linux Vista
https://www.amazon.it/gp/product/B01N3L ... UTF8&psc=1

with driver CH341SER

the same used in slepko blog with raptor 5
in mach 3 for both us is all good. He don't use UCNC and can't help me
For me UCCNC spindle button don't go.
Same time go but with no repeatably condition.
I will try to change Dongle and hope

thanks
flavio
merlinogio
 
Posts: 13
Joined: Sat Sep 08, 2018 5:51 am

Re: Huanyang VFD plugin

Postby Dan911 » Mon Sep 24, 2018 3:24 am

Hi flavio,
I'm in the process of rewriting this plugin so some features like amps isn't implemented yet but see if this helps.

HY14.zip
Dan911
 
Posts: 423
Joined: Mon Oct 31, 2016 1:22 am
Location: USA

Re: Huanyang VFD plugin

Postby Dan911 » Mon Sep 24, 2018 5:04 am

Dan911 wrote:Hi flavio,
I'm in the process of rewriting this plugin so some features like amps isn't implemented yet but see if this helps.

HY14.zip



Use link to HYplugin thread to keep info together. viewtopic.php?f=14&t=432&p=11515#p11515
Dan911
 
Posts: 423
Joined: Mon Oct 31, 2016 1:22 am
Location: USA

Re: Huanyang VFD plugin

Postby merlinogio » Mon Sep 24, 2018 7:29 pm

Hi Dan, Ger
first of all thanks for your help
the problem now it's solved changing the dongle.

if could be useful I try this:

- new dongle with driver ch341ser of 2007 year -> Hy12 NOT go, hy14 NOT go, Mach3 GO
- new dongle with driver ch341ser of 2014 year (Get link) -> Hy12 GO, Hy14 NOT go, Mach 3 GO

in the attachment the serial monitor trace in the case: mach3, UCCNC Hy14 UCCNC Hy12

I don't know the communication protocol of vfd but seems that the polling sequence are different in the three case

thanks for help I hope that the test could help..
if useful I can try to do other tests

flavio
Attachments
mach3.txt
(38.84 KiB) Downloaded 6 times
hy14 uccnc.txt
(36.96 KiB) Downloaded 7 times
hy12 uccnc.txt
(5.11 KiB) Downloaded 10 times
merlinogio
 
Posts: 13
Joined: Sat Sep 08, 2018 5:51 am

Re: Huanyang VFD plugin

Postby Dan911 » Tue Sep 25, 2018 10:41 am

merlinogio wrote:Hi Dan, Ger
first of all thanks for your help
the problem now it's solved changing the dongle.

if could be useful I try this:

- new dongle with driver ch341ser of 2007 year -> Hy12 NOT go, hy14 NOT go, Mach3 GO
- new dongle with driver ch341ser of 2014 year (Get link) -> Hy12 GO, Hy14 NOT go, Mach 3 GO

in the attachment the serial monitor trace in the case: mach3, UCCNC Hy14 UCCNC Hy12

I don't know the communication protocol of vfd but seems that the polling sequence are different in the three case

thanks for help I hope that the test could help..
if useful I can try to do other tests

flavio

Hi flavio,

Knowing the spindle you were using and posting your .pro file from start would of helped determine your issues as it seems you may have more than 1. I see from the Mach3 and HY14 communication logs you are trying to set your spindle at 100 rpm on start which would need a 16.6 frequency sent.

Mach3 plugin is sending hex A6 = decimal 166
HY12 is sending hex 10 = decimal 16

If your min rpm is set at 100 rpm 16HZ would be lower and possibly why not setting on UCCNC. In HY plugin results are multiplied by 10, multiplying them by 100 will fix this. With the China 400hz spindles this wouldn't make a difference.

The plugin's communication protocol are all the same as Huanyang VFD has it's own.

Mach3 plugin communication log is polling function 04 (Read Control Status) for RPM and the reply's are 0.
HY12 is polling function 01 (Read the data of a function code) this is reading your setting in PD142 (Rated Motor Current) and replying 10.

There really is no difference between these plugin's other than the speed they poll in. UCCNC is very fast and I still didn't decide or research
what's best to do with new HY plugin to accommodate these slower cheap RS485 converters, use a timer thread or a editable to user Thread.Sleep.

On some of these RS485 converter sites actually advertise the chipset they use and are capable of fast communication. The 1 Gerry has linked is 1 of them.

Dan
Dan911
 
Posts: 423
Joined: Mon Oct 31, 2016 1:22 am
Location: USA

PreviousNext

Return to General discussion about the UCCNC software

Who is online

Users browsing this forum: No registered users and 5 guests