Huanyang V1 VFD and SLB Problems

gsender 1.4.12
firmware B5.05
connected to vfd by rs485

395 Huanyang v1
511 Huanyang v1
512 SLB laser
513 disabled
my understanding this should default to my Huanyang spindle

as soon as i connect in gsender Alarm 14 I can clear it usually with a few clicks sometimes more. If I press M3 same error and can never get the spindle to run.

If 395 is slb laser no errors but defaults to laser not spindle.

Problem is if you forget to switch to spindle and start a file it will run but with no bit spinning and then bad news.

I have been reading but have not found any posts with the same problem. I did post the other day with no response so I’m trying again with more information.

$0=10.0 (Step pulse time, μs)
$1=253 (Step idle delay, ms)
$2=0 (Step pulse invert, mask)
$3=3 (Step direction invert, mask)
$4=7 (Invert step enable pin, boolean)
$5=15 (Invert limit pins, boolean)
$6=1 (Invert probe pin, boolean)
$8=0
$9=0
$10=511 (Status report options, mask)
$11=0.010 (Junction deviation, mm)
$12=0.002 (Arc tolerance, mm)
$13=0 (Report in inches, boolean)
$14=14
$15=0
$16=0
$17=0
$18=0
$19=0
$20=1 (Soft limits enable, boolean)
$21=0 (Hard limits enable, mask)
$22=1 (Homing cycle enable, mask)
$23=1 (Homing direction invert, mask)
$24=200.0 (Homing locate feed rate, mm/min)
$25=3000.0 (Homing search seek rate, mm/min)
$26=250 (Homing switch debounce delay, ms)
$27=1.000 (Homing switch pull-off distance, mm)
$28=0.100 (G73 pull-off distance, mm)
$29=0.0 (Step Pulse Delay, μs)
$30=24000.000 (Maximum spindle speed, rpm)
$31=4800.000 (Spindle Mode, )
$32=0 (Laser-mode enabled as spindle, boolean)
$33=1000.0 (Spindle Frequency, Hz)
$34=0.0 (Spindle Duty Cycle, %)
$35=0.0 (Minimum spindle speed, %)
$36=100.0 (Maximum spindle speed, %)
$37=7 (Deenergized Steppers, %)
$39=1 (Printable Command Characters, boolean)
$40=0 (Soft Limits Jogging, boolean)
$41=1
$42=2
$43=1 (Homing Locate Cycle, )
$44=4 (Axis Mask, )
$45=3 (Axis Mask, )
$46=0 (Axis Mask, )
$47=0 (Axis Mask, )
$56=5.0
$57=1000.0
$58=-10.0
$59=1000.0
$60=1 (Restore Default Overrides, boolean)
$61=3 (Ignore Safety Door Signal, boolean)
$62=0 (Sleep Function, boolean)
$63=3 (Disable Laser on Hold, boolean)
$64=0 (Alarm on Startup, boolean)
$65=0 (Allow Feedrate Override, boolean)
$70=11 (Network Service, )
$100=99.997 (X-axis travel resolution, step/mm)
$101=160.439 (Y-axis travel resolution, step/mm)
$102=321.192 (Z-axis travel resolution, step/mm)
$103=19.753
$110=6000.000 (X-axis maximum rate, mm/min)
$111=6000.000 (Y-axis maximum rate, mm/min)
$112=4000.000 (Z-axis maximum rate, mm/min)
$113=8000.000
$120=250.000 (X-axis acceleration, mm/sec^2)
$121=250.000 (Y-axis acceleration, mm/sec^2)
$122=250.000 (Z-axis acceleration, mm/sec^2)
$123=1000.000
$130=795.000 (X-axis maximum travel, mm)
$131=812.000 (Y-axis maximum travel, mm)
$132=143.000 (Z-axis maximum travel, mm)
$133=0.000
$140=2800
$141=2800
$142=2800
$143=0
$150=8
$151=8
$152=8
$153=16
$180=200.0
$181=200.0
$182=200.0
$183=200.0
$190=3000.0
$191=3000.0
$192=3000.0
$193=3000.0
$200=22.0
$201=22.0
$202=22.0
$203=22.0
$210=15
$211=15
$212=10
$213=50
$220=22.0
$221=22.0
$222=22.0
$223=22.0
$300=grblHAL
$301=0
$302=192.168.5.1
$303=192.168.5.1
$304=255.255.255.0
$305=23
$307=80
$308=21
$338=7
$339=0
$340=0.0 (Spindle at speed tolerance, %)
$341=1 (Manual tool change mode, )
$342=30.0 (Probing distance, mm)
$343=25.0 (Probing slow feed rate, mm/min)
$344=200.0 (Probing seek feed rate, mm/min)
$345=200.0
$346=1
$370=0
$372=0
$374=3
$375=50
$376=0
$384=0
$392=4.0
$393=1.0
$395=7
$398=128
$450=0
$451=0
$452=7
$453=G53 G1 X-402.355 Y-405 F5000
$454=G53 X-402.355 Y-5 F 5000
$455=G4P0
$456=3
$457=3
$458=1
$459=3
$477=2
$481=0
$484=0
$486=0
$511=1
$512=7
$513=8
$520=0
$521=0
$522=0
$650=1
$651=1
$652=0
$653=2
$654=8
$655=0
$656=1
$657=22
$658=7
$659=3
$660=0
$661=3
$662=0
$663=41759
$664=16
$665=16
$666=0
$668=1
$730=1000.000
$731=0.000
$733=5000.0
$734=0.0
$735=0.0
$736=100.0
$741=0.000
$742=0.000
$743=0
ok

@iang It’s funny because I just went through a similar issue. All of a sudden, my laser quit firing. The solution was to make the laser default - $395=0 and the autospin $511=1. As you say, the downside of that was that each time I powered on the SLB, gSender defaulted to laser. I ruined one piece because the Autospin did not turn on and I was not quick enough to catch it.
I was going back and forth with Sienci tech at that point. They suggested reverting to my previous settings now that the SLB had been “unstuck”. So my settings are now $395=0, which is my autospin/SLB_spindle and $511=7, which is my SLB_laser.
I realize that these may not work for you because you are connected to RS485. I am not. I’m connected to the spindle output for my autospin and to the laser pwm for my laser.
I’m throwing this out there in case something jumps out at you.

There is also the order in which you need to change the spindle/laser drop down and the spindle/laser slider. Here is the excerpt from the SLB manual

…you can go into the EEPROM to change your selections for the Default Spindle, Spindle 1, 2, etc. to match how you tend to use your CNC. Then, you can use the dropdown in gSender or the g-code commands to switch outputs when you need to. Ensure that you only turn on ‘Laser Mode’ AFTER you switch over to the laser output, as well as turn off ‘Laser Mode’ BEFORE you switch back to any other output, otherwise you’ll see an error.

1 Like

WOW that’s lots of information. Thank you so much for the reply. I’m going to re read that a bunch of times and see if my brain can make sense of it. It does seem some what related in a few ways. Was the end result that it’s supposed to work that way? I’m not a dummy nor a rocket scientist but this does not seem easy. I have a friend with a longmill and he’s looking at a altmill and I’m usually his tech support for this kind of stuff but I may have to inform him he’s on his own because I can’t figure it out. I’ve been at it for a week on and off but just can’t figure it out. Thank you for all the information. I’ll keep at it.

@iang First, Ian, don’t confuse me with someone who knows what he is talking about. :grinning_face: It’s just fluke timing that I could add anything to this conversation. What I can add comes from several emails back and forth with Sienci tech support.
In terms of this being the way it is supposed to work, on mine that is now the case.
I was doing some laser work in the morning and had a dead laser that same afternoon. I tested the laser and it was fine. I checked the output from the PWM and it was dead. That’s when I went to Sienci. We were about to declare a bad SLB, when Chris suggested the I swap the default and number 1 spindle. So, I moved the laser to 395 and made it SLB_laser 0 and I moved the Autospin in 511 to SLB_spindle 1. For reasons way beyond my level of competence, that worked. The laser fired.
However, the down side was just as it is with your setup. The SLB started with the laser powered and not the spindle. When I whined about that to tech support, it was suggested that maybe the SLB had been “stuck” and that the temporary swap had “unstuck” it. I admit to being very skeptical, but I had nothing to lose. So, I swapped 395 and 511 back again and everything was back to normal.
I have no idea why this worked. Just as I have no idea if any of this will be of use to you.
Please keep the group posted as to your progress and, hopefully, success.

One more question if you don’t mind. Did you get any alarm 14 when you were having problems. I’m going to try switching it around again tomorrow and see if i can make sense of this. Thank you again.

@iang No, I didn’t get any errors. Good luck.

Update on my issue. After a while fooling around I was able to get the Huanyang inverter to default on startup. I fixed one problem and made another. I think most of the fix came from following the gSender settings found here ( Unofficial guide to setting up HY VFDs with RS485 on the SLB - Google Docs ) Now when I switch from spindle to laser and try to go back to spindle and select Huanyang v1 it switches to slb spindle and locks up. the only way is to power off the SLB then it defaults to Huanyang v1 again. I’m not sure if thats a gSender bug or still my configuration.

@iang just to add some clarity to all of this, there was an outstanding bug that exists in the current firmware that we found if you switch back and forth between several spindles the machine seems to get locked up and require a reset, so I think that’s the issue you’re seeing. This has since been fixed in firmware, but that firmware is not yet ready for public release.

In the meantime, what happened with Grant is much less straightforward, but to distill it down was a matter of sequential troubleshooting:

  1. Is the laser still working
  2. If you switch the laser to another output, or change the settings of that output does the board still talk to the laser
  3. If both these components seem to work separately, can we reset the system (classic turn it off then back on again) to get it back to it’s expected behaviour

I’m still not entirely sure how it got stuck up, and I’ve not really seen this problem occur before with the SLB, but glad we found the right solution.

In any case, it seems to me that you’ve now got the Huanyang set up as default, with laser as secondary, and no more Alarm 14 is that correct? If so, and the switching is the last sticking point, then you might just be good to go and then just keep an eye out for when the new firmware is available. Also I’ve been meaning to visit you for a while now since that same firmware is meant to improve stepper motor performance, but this year has really not gone as I originally planned with moving along the firmware so I’m sorry for the delay on that

1 Like

Yes I have the spindle and laser working as they should and no more alarms. The only problem is switching back from laser to spindle and as you said it’s probably a firmware thing so i’ll just use as is and wait for a update. After the update I really could use your expertise in the stepper performance department. Thanks for the quick reply before I spent to much more time trying to figure this out.