Tuesday, December 15, 2015

Huanyang Inverter VFD NC Studio Settings

I have been putting up non vacuum stuff up here for the last few posts because I have nowhere else to put them! The vacuum system is in stasis at the moment as other more daytoday things has been taking up my time. So my apologies to you high vacuumers out there.

This post is motivated by a day and a half of frustration which finally got sorted through much googling, testing, reading and rereading and logic-ing out. My cnc machine is now armed and fully operational! I have no doubt that there are others in the same position as I was yesterday...

Be warned: I am not an engineer and don't really know what I'm talking about here, so use this info at your own risk!

How I learned to love my new Huanyang VFD spindle for NC Studio. This post is just about getting NC Studio talking to the VFD, not motor settings. There are other good tuts out there on that bit.
I'll assume you've done a bit of work on this already and get right into the nitty gritty.

Please read it carefully, every step is important.

**some changes you make may need the VFD to be restarted, it seems...**

**with NC Studio we are dealing with '4-speed external control'. You don't really get the values in your gcode. boooo!**

Speed1 being stopped/no rotation. Defined by PD003/PD011(see below)
Speed2 definded by PD0086
Speed3 definded by PD0087
Speed4 defined by PD0088

To begin!
0.PD000 set to 0.  Allows changes to happen in the settings...

1. PD013 set to 8. Factory reset (Thus may not be nessasary if you have a matching VFD and spindle.)

2. PD001 set to 1. This selects external terminal/multi-input as the signal input.(this over rides PD002[1] setting I assume)

3. PD003,PD004,PD005 ... this is motor specific settings I'm not covering here.

4. PD011 set to 0. Now this is the interesting one. This is going to supersceed PD003 that you would think is the defined speed for Speed1.
But there is an assumption that as long as [FOR]ward is enabled (which it is, because its permanently tied low, isn't it?)the motor is turning and doing something and so would burn out if the setting is too low. But in GCode the spindle is turned on by its speed setting ie: S18000 or what ever...so it's a cheat we programme into the VFD firmware to turn the spindle off with a zero speed setting.
(granted there is an Mcode for spindle on but with NC studio you just have 4 speed options on 3 pins. 000 being off, 100 being low, 010 being...etc.)

PD044 is set to 02. Sets FOR connector to enable forward rotation when taken low.
PD047 is set to 22.  Sets SPH connector to enable setting in PD0088 when taken high.
PD048 is set to 24. Sets SPM connector to enable setting in PD0087 when taken high
PD049 is set to 23. Sets SPL connector to enable setting in PD0086 when taken high

PD080 set to 2.
That's the magic setting.

This allows signal from NS Studio to select the three(4) settings for speeds you will define below...
We've already looked at the PD003/PD011 issue so that is Speed1 ie: 0Hz
PD0086 is set to 133 for 8000rpm
PD0087 is set to 300 for 18000 rpm
PD088 is set to 400 for 24000rpm
I may change these settings depending how they work in practice.

If I'm wrong with what I've done here please let me know. If this has been a help please comment. If I made some typos please let me know.

No comments:

Post a Comment