PMDX Forum

General Category => Generic Spindle interfaces, I/O boards, Misc boards and panels => Topic started by: jbolt on March 31, 2015, 10:33:01 PM

Title: Setting up PMDX-107/VFD with PMDX-126 and relays
Post by: jbolt on March 31, 2015, 10:33:01 PM
I have my PMDX-126 and ESS working with no problems. I am now converting the gear head mill to a variable speed belt drive. I need some help verifying if I have the correct connections from the PMDX-107 to the VFD, how the jumpers on the PMDX-126 need to be configured and what settings on the PMDX-126 need to be made to control two solid state relays for coolant and mist.

I have the VFD running the motor in manual mode so that is all okay. The VFD is a Huanyang HY02D223B.

These are the settings I think are correct.

PMDX-107 ---> VFD
Pin 6 - Rev/Dir ---->       REV (reverse run)
Pin 5 - Fwd/Run ---->    FOR (forward run)
Pin 4 - COM (common terminal for relays, pins 5 & 6) ----> DCM (common terminal of digital and control signals)
Pin 3 - Aref (not used)
Pin 2 - Aout (spindle speed analog control voltage) ----> VI (analog voltage frequency reference input)
Pin 1 - Agnd (VSD ground reference) ----> ACM (common terminal of analog and control signals)

PMDX-107  Config settings (dip switches)
Config 1 = Off (Normal Mode)
Config 2 = Off (Normal Mode)
Config 3 = Off (relays operate as for and reverse control signals)
Config 4 = Off (charge pump signal required)
Slow = Off (fast PWM filter response) (may need to be changed to slow if VFD cannot keep up)
5v/10v = Off (10v reference)
 
PMDX-126 Settings
Config 1 = Open
Config 2 = Closed
Config 3 = Closed
Config 4 = Closed
Config 5 = Closed
Config 6 = Closed
Config 7 = ???
Config 8 = ???
Title: Re: Setting up PMDX-107/VFD with PMDX-126 and relays
Post by: Steve Stallings on March 31, 2015, 11:32:47 PM
Looks like you nailed it for wiring and switch setting. There are two
more things to take care of:

1) Setting the parameters in the VFD. From the factory the settings
are usually configured to control the run mode and speed from the
panel on the VFD. You typically need to change at least two settings,
often the first two parameters, so that the VFD looks at its screw
terminal interface for commands.

2) The ESS needs an acceleration setting for the spindle speed. Without
it the speed will not ramp up. See this application note for info:

http://www.pmdx.com/Doc/AN002_PWMSpindleSmoothStepper_02.pdf

We also recommend that you get the VFD responding to the speed
calibration button on the PMDX-107 before proceeding to try to control
things from your software.
Title: Re: Setting up PMDX-107/VFD with PMDX-126 and relays
Post by: jbolt on April 01, 2015, 12:36:12 AM
Steve,

Thank you for confirming the control wiring.

I am still unsure of the settings for JP1 & JP2 and the config switches 7 & 8 on the pmdx-126.

Additionally, with 4 axis and the 107 all the output pins from PP#1 are used. To control two solid state relays for coolant and mist do I use A, B, C or D on J5 on PP#2? 

Jay
Title: Re: Setting up PMDX-107/VFD with PMDX-126 and relays
Post by: Steve Stallings on April 01, 2015, 02:02:59 AM
The SmoothStepper does give you access to Port 2 and can control the signals
on J5. They map as follows:

A = Port 2 Pin 1
B = Port 2 Pin 14
C = Port 2 Pin 16
D = Port 2 Pin 17

The settings of JP1 and JP2 depend on what other features you
wish to use.

One useful setup is to use the small K2 relay as part of a power
control and E-Stop circuit. To do this, you need to set JP2 in the
"MultiMode" position, set DIP switch 8 to the Open position so
that K2 follows the state of "Outputs Enabled", and set DIP
switch 1 open (2 and 3 still closed) so that the Charge Pump
functions. There is an application about power control  using
this feature here:

http://www.pmdx.com/Doc/AN003_MachinePower_03.pdf

The signal on Port 1 Pin 1 remains available to control the
large K1 relay. JP1 should be in the Pin 1 position if you want
to use this relay. If you prefer to use this signal for a SSR
on the Pin 1 output on J6, then you can remove the clip from
JP1 entirely to disable K2 so that it does not click on and off.
The setting of DIP switch 7 is a "don't care" because you are
not using K1 in "multimode".

The signals on Port 1 Pins 14 and 16 are used by the PMDX-107.

If you should ever want to run a 5th axis you can do that with
unused pins on J5 which the SmoothStepper can drive as a
stepper motor.


Title: Re: Setting up PMDX-107/VFD with PMDX-126 and relays
Post by: jbolt on April 01, 2015, 11:43:36 PM
Stave, thank you for the clarification on the relays. The manual had me thinking K1 and K2 were disabled because of the 107.

I have the spindle turning on/off with Mach3 but I cannot set the speed. The spindle always goes to full speed regardless of the "S" command. Mach3 thinks it is going to the correct speed but it is always 100%.

I followed the AN002 so I'm not sure where I have gone wrong?

Jay
Title: Re: Setting up PMDX-107/VFD with PMDX-126 and relays
Post by: jbolt on April 02, 2015, 12:22:06 AM
Also when I run the test mode the VFD will not go to 30% on the second test button push.

Jay
Title: Re: Setting up PMDX-107/VFD with PMDX-126 and relays
Post by: jbolt on April 02, 2015, 01:35:32 AM
Found one problem. I did not have one of the VFD parameters set for the proper frequency input.

Now when I run the test I get 100% (105hz) on the first button push and approximately 60%(67hz) on the second button push. It still does not go to 30%.

In mach3 I have the pulley setup for Max rpm of 6000 (105hz) Min rpm of 300 (5%) and a pulley ratio of 2 (4" motor pulley/ 2" spindle pulley). I don't know what the reverse box is for but I have tried at ratio od 0.5, 1 and 2 with the reverse box checked and un-checked with no difference. It always goes to 100% on an M command regardless of the S command setting. I can use the override to slow or speed up the spindle.
Title: Re: Setting up PMDX-107/VFD with PMDX-126 and relays
Post by: jbolt on April 03, 2015, 12:35:41 PM
These are my setting if it is of any help.

PMDX-126 BOB, PMDX-107 Motor Control, ESS Motion Controller.

MOTOR, 220v, 2hp, 3ph, 1725rpm, inverter duty, class F

VFD = Huanyang HY02D223B Settings

pd001 = 1, run command = external terminals
PD002 = 1, operating frequency source = external terminals
pd003 = 60.00, main frequency
pdoo4 = 60.00, base frequency
pd005 = 120.00, max frequency
pd008 = 220, max voltage
pd141 = 220, rated motor voltage
pd142 = 8.0, rated motor current
pd143 = 4, motor pole number
pd144 = 1725, rated motor revolution
pd176 = 60.00, inverter frequency standard


ESS Settings

SPINDLE
PWM, base hz 25


Mach3 Settings

RELAY CONTROL, disabled

MOTOR CONTROL
Use Spindle Motor Output
PWM Control
PWM Base Freq = 25
Minimum PWM 5%

SPINDLE MOTOR TUNING
Steps per = 1000
Velocity = 60
Acceleration = 5000

PULLEY SELECTION
Pulley 1, Min Speed = 300, Max Speed = 6000, Ratio = 2 (4" motor pulley, 2" spindle pulley)
Pulley 2, Min Speed = 75, Max Speed = 1500, Ratio = 0.5 (2" motor pulley, 4" spindle pulley)

Thanks
Jay
Title: Re: Setting up PMDX-107/VFD with PMDX-126 and relays
Post by: Steve Stallings on April 03, 2015, 09:55:55 PM
Jay,

All looks good except your pulley ranges. Normally the pulley
numbers in the Mach3 setup should use 0 as the lower end of
the range.

If I understand the math that Mach3 uses, you are telling Mach
that 0 volts out is expected to produce the RPMs that you enter
in the low end of the range. Using something other than 0 will
distort the math and should only be used if you have set up
similar offset and scaling in your VFD, something the is almost
never done.

If you need to enforce a minimum RPM to be sure that your
motor has adequate cooling or does not draw too much current
at low RPM, use the minimum PWM to create a lower limit.

Give this a try and see if it helps.

Steve
Title: Re: Setting up PMDX-107/VFD with PMDX-126 and relays
Post by: jbolt on April 03, 2015, 10:15:00 PM
Steve,

That made some progress but now (on pulley 1) if I enter s3000 or above I get 100% (6000 rpm). S1500 gives me appox 3000 rpm. So it appears to be doubling somewhere. I'm wondering if there is another VFD setting that needs to be set?

Thanks,
Jay
Title: Re: Setting up PMDX-107/VFD with PMDX-126 and relays
Post by: Steve Stallings on April 03, 2015, 10:38:21 PM
I suggest using the calibration test button on the PMDX-107 to
verify what speeds the 100% and 30% voltage outputs from the
PMDX-107 produce at the spindle. This will take the math functions
in Mach3 out of the picture.

If you get unexpected speeds, then look for invalid assumptions about
your mechanical pulley ratios or to the parameters in your VFD.
Title: Re: Setting up PMDX-107/VFD with PMDX-126 and relays
Post by: jbolt on April 03, 2015, 11:11:29 PM
Steve, I freally appreciate your feedback.

Running the CAL test with the pot set full CCW I get no increase in spindle speed. Always 100% (105hz) no matter where the pot is. At 30% with the pot at full CCW the VFD drops to 67hz. With the pot at a half tun the 30% speed is 94hz.

So it sounds like it is a VFD setting?

Thanks,
Jay
Title: Re: Setting up PMDX-107/VFD with PMDX-126 and relays
Post by: Steve Stallings on April 03, 2015, 11:30:40 PM
Yes, it sounds like your VFD is mapping the voltage to a greater speed
than we need and expect.

If you have meter, you should be able to confirm that you can get about
10 volts between Agnd and Aout of the PMDX-107 at 100% PWM and
about 3 volts at 30% PWM.

A lot of users set up these Huanyang VFDs to run 400 Hz 24,000 RPM
router spindles. If yours was configured for the command scaling to
accommodate this, then 30% of 400 Hz is about 120 Hz. Separate
parameters in the VFD control the scaling and the maximum speeds
allowed, so it is possible to get strange results like you describe if
the parameters are not in agreement. Look to see if any of the
parameters that accept Hz as the number are set for anything
greater than 120 Hz.
Title: Re: Setting up PMDX-107/VFD with PMDX-126 and relays
Post by: jbolt on April 03, 2015, 11:39:53 PM
Steve,

A bit of a breakthrough. I went through the VFD settings and found PD072 -" Higher Analog Frequency" to have been  factory set at 400hz. I changed this to 105hz and it slowed everything down too much so I put it at 200hz and now I am getting close to the correct values. With the trim pot at full CCW at 30% I now get 34hz which is a little higher than I should have. I could possibly tune the PD072 value but I'm not sure what this setting is for?

I believe we are out of the realm of PMDX issues so thank you for your help.

Jay
Title: Re: Setting up PMDX-107/VFD with PMDX-126 and relays
Post by: jbolt on April 03, 2015, 11:52:31 PM
I got it. I'm a bit thick in the head sometimes. I set PD072 to 105hz and re-ran the Calibration. Tuned the spindle to 6000 rpm and all is working perfect.

Thank you again for your time!

Best Regards,

Jay
Title: Re: Setting up PMDX-107/VFD with PMDX-126 and relays
Post by: MileHiDude on May 23, 2020, 10:37:47 AM
Hi...new poster (I think)
I too am having a somewhat similar situation, but yet also a little unique.
I’m utilizing a PMDX-126 with the DIP configuration: 1-8 all on except 7 is off;
 married with the PMDX-107 with its DIP configuration: 1,2,5 & 6 are off, 3 &4 are on.

My VFD (Teco) is solid; utilizing an toggle (by relay or SS) and speed (RPM) by analog input (10VDC)
All has worked well under a different BOB and controller.
Also, when I push the 107’s self contained “Test” button, everything works fine.
However, when I manually click the spindle button on my Mach4 interface or enter the appropriate
code in the MDI (stating speed) my “spindle on” (PMDX-107 out-pins, 4 & 5, I get only a quick energization
at k1 (relay and light) and of course the light at pin 5, then nothing until I make a second attempt at starting
the spindle.
Again, pushing the self-contained “Test” button on the 107 has the spindle performing as it should.

...not sure if I was to post here (couldn’t find where else to go)
Thanks in advance....
Walt
Title: Re: Setting up PMDX-107/VFD with PMDX-126 and relays
Post by: 12strings on May 28, 2020, 10:31:41 AM
So, to expand on your DIP switch settings:
PMDX-126: Run in "normal" mode without charge pump, no aux feature enabled.  I can't tell what sw7 and 8 do without knowing how JP1 and JP2 are configured.

PMDX-107: Normal mode, SSRs are "run" and "direction", ignore "charge pump OK" signal, fast PWM filter and 10V output range.

Since you mention "K1", I presume you have the PMDX-126's relay somehow involved with the spindle operation?

So backing up a bit: how do you have the PMX-126 connected to your PC?  One of the PMDX SmartBOBs?  A SmoothStepper?  Something else?

When you try to turn on the spindle form Mach4, are you entering a speed and fwd/rev command (i.e. MDI commands "Sxxx" then M3 or M4)?  And have you configured the "Spindle" tab in the configuration screen to set your actual max RPM?
Title: Re: Setting up PMDX-107/VFD with PMDX-126 and relays
Post by: MileHiDude on July 25, 2020, 09:56:22 PM
Hello Again
Sorry for such a late response.........Life
The new setup runs well, in spite of the glitch, I'm really quite pleased.

The spindle.... Just doesn't seem to like an M5 command.

Responds to G-Code M3 with S####
Responds to G-Code M7 and M9 (Mister)
Responds to any written mid-code (as well as Mach4 dashboard) change in spindle RPM
Responds to M3 S#### executed within the MDI

Herein is the exception.....
Responds only to a separate MDI "S0" (zero speed) command outside of the executed G-Code in order to shut down spindle.
JP1 = To run on pin 1    (K1 relay not used)
JP2 = To run on pin 14  (K2 misting relay; running great)
ESS Motion Control

You pointed out:
"PMDX-107: Normal mode, SSRs are "run" and "direction", ignore "charge pump OK" signal, fast PWM filter and 10V output range."
I have set these parameters accordingly.

I've noticed Plug-Ins for Mach4 when 107 is paired with the Smart-Bob boards to rectify M3, M4, M5 etc issues;
does that also apply here?

Thanks again 12strings and sorry for my late response.
I hope I have properly addressed your questions to me.
Walt
Title: Re: Setting up PMDX-107/VFD with PMDX-126 and relays
Post by: 12strings on July 27, 2020, 12:04:43 AM
Ahhhh, you are using an ESS.  to interface to the PMDX-126/107 combo.  I would contact Warp9 support forums about this, after making sure you have their latest plug-in.  My experience with SmoothSteppers is years out of date, but spindle setup used in the ESS configuration pages used to be non-intuitive (at least to me).  Any way, there is no "smarts" on the PMDX-127

When the spindle is running, you should be able to see the LED on the PMDX-126 for the "PWM" signal (pin 16) turn on when the spindle should be on, and turn off when the spindle should be off.  You should also see it change brightness with changing spindle speeds (brighter at higher speeds).  If that is not happening, then the ESS is not outputting the PWM properly.

Quote
I've noticed Plug-Ins for Mach4 when 107 is paired with the Smart-Bob boards to rectify M3, M4, M5 etc issues;
does that also apply here?
Huh? Do you mean the SmartBOB plug-in?  That does not apply here since you are using an ESS.
Title: Re: Setting up PMDX-107/VFD with PMDX-126 and relays
Post by: MileHiDude on July 27, 2020, 12:57:38 AM
Thanks so much 12strings
...good info about the specific criteria related to ESS setup.
Through trial use of the MDI, I found an acceptable work-around (at least for the time being).

It turns out that the following G-Code syntax will shut down the spindle at the end of an executed program.

G0 ......(program's ending lines)
M5
S0
M30

The "M5" has to be on a line separate from and ahead of the "S0" (S-zero) command.

As to your questions about the LED indicators;
yes, they go on when triggered at the program's outset and shut off when the above command protocol is followed.
(Intensity looks as though it changes with speed (RPM) commands; (which commands I've had no issue with).
...go figure...
However, I'm glad it's operational and that its operation at least resembles the intentions of the Warp9 folks; (sorta)
I'll delve into this issue with Warp9 (and perhaps Newfangled) when time permits.
Unless of course you have some other ideas.

Thanks
 - Walt