Huanyang Plugin

This is where you talk about Plugins. How they are made and how they work, show examples.

Re: Huanyang Plugin

Postby laki » Mon Jul 23, 2018 7:07 pm

Hello Dan,
Thank you for your prompt response. I read all plugin related posts here as well as on the CNC zone and saw that one user had a similar problem, but I did not see how it was solved.
I use the default screen and before I installed the plugin I did not modify any Textfield labelnumbers and screen. I also did not use the Amp Field.

I managed to solve the problem by uninstalling the plugin version12 and installing version 10. This version works for me, UCCNC does not report an error and I can turn on and off the spindle as well as to change the speed.
 Only if I add the Amp field the error reappears. I added the Amp field by copying the Sact field in the screen editor and changing its labelnumber in 20668 and putting the same number in the HYPLUGIN configure setup field. As I did this, UCCNC reported an error (UCCNC has encountered a problem and needs to close) again.
I wipe off the field for Amp and UCCNC and the plugin started to work properly. I changed the number of Sact fields from 870 to 20665 and entered the same number in the plugin configuration. Now, in UCCNC, I can see values ​​for the Sact fields (20665) and the S overridden field (2451).
I tested this configuration for a couple of hours and UCCNC no longer reported errors.
I will send you PM my email address if you have some suggestions regarding the plugin version. Thanks for the support
laki
 
Posts: 4
Joined: Thu Jul 19, 2018 12:46 am
Location: Belgrade, Serbia

Re: Huanyang Plugin

Postby Dan911 » Tue Jul 24, 2018 12:53 pm

Hi Laki,

Thanks for helping point/conferm to where this problem is...HY12 starts a polling thread on startup and Hy10 only starts this thread when Amps are enabled in setup, obviously it's this thread that is causing some systems trouble. Oddly I use WinXP, 1.2047 with HY12 on my system and I'm not able to reproduce this which makes it hard to debug and fix.

I written this plugin while learning UCCNC, C# and Huanyang, so there's a lot of editing through versions in plugin, when I read through code I see a lot poorly written but used the old saying "if not broke don't fix"...LOL

I received your PM/email, I originally planned to send you a version with thread removed since I already suspected that being the culprit of the problem, but no need too since you already found a alternative solution for now that's basically the same as what I was going to send. Within the next few weeks depending on my play time, I will send you a revised rewritten version and I'm hoping you can test on your system.

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

Re: Huanyang Plugin

Postby laki » Tue Jul 24, 2018 8:51 pm

Hi Dan!
Thank you for your reply.
Take your time and I'll be glad to test your plugin on my system when you finish revised rewritten version.
Best regards,
Laki
laki
 
Posts: 4
Joined: Thu Jul 19, 2018 12:46 am
Location: Belgrade, Serbia

Re: Huanyang Plugin

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

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

Previous

Return to Plugins

Who is online

Users browsing this forum: No registered users and 4 guests