开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: Electrical Noise


 

开云体育

Thanks.? Just measured that value with the scope.? LinuxCNC 20kHz and 2.5kHz.depending on the parallel port interface.

?

To simulate the LinuxCNC I have the Charge Pump running while ESTOP.? And here's the curious thing.

?

If I mechanically trip the ESTOP button the PMDX-126 Red Light comes on showing ESTOP.? The RED MACH3 button starts blinking.? Both Pin17 (charge pump) and Pin1 (Enable) LEDs on the board are off.?

?

But once I mechanically release the ESTOP button the red light stays on, the 12.5kHZ Charge Pump shows up on the scope.? But Pin17 LED does not light.? I can't get it out of the MACH3 ESTOP by clicking on the screen button.? Only the OFFLINE button and then RESET screen button take me out.

?

Or if I unplug the parallel port cable and then plug it in again the RED led goes off and then the screen RESET button works and the OFFLINE button isn't needed.

?

The diagnostic screen on MACH doesn't show anything strange.

?

So I guess there's something odd at the parallel port level because unplugging a cable that doesn't have any outputs asserted and seeing the RED Led switch OFF and not ON again when the cable is plugged in again suggests there is something seen on the parallel port by the PMDX-126 gets confused. ?

?

I'm going to guess that after an ESTOP event the PMDX needs the Charge Pump to go away for a moment.? When it doesn't it won't come out of reset properly.? And if there's noise on the cable then that same confusion may occur.?

?

Linux handles the charge pump slightly differently. ?

?

John

?

?

?

?

?

From: [email protected] [mailto:[email protected]] On Behalf Of Peter Homann
Sent: January-12-20 3:06 PM
To: [email protected]
Subject: Re: [MachCNC] Electrical Noise

?

Hi John,

The charge pump frequency is 12.5kHz.?

?

Cheers,

Peter Homann - (from my mobile)



On 13 Jan 2020, at 9:45 am, John Dammeyer <johnd@...> wrote:

?

Hi Peter,

The PMDX-126 doesn’t change.? And it's the one tripping the ESTOP.? Looking at the lights I can see the Charge Pump (pin17) light come on along with the ENABLE.? The moment the ENABLE comes on the AC Servo is energized and then they both go off and the RED ESTOP LED comes on at the other end of the PMDX-126.? So I'm guessing it's something to do with the Charge Pump output from MACH3 being different from the Charge Pump output from LinuxCNC which uses one of the stepper motor driver channels as a Charge Pump. ?

?

The LinuxCNC is

# MESA 7i92H P2 connections

# ---Chargepump StepGen: 0.25 velocity = 10Khz square wave output---

?

I can't tell from the parallel port version hal file what the charge pump frequency is.? I'll ask on the LinuxCNC group.

?

Does anyone know what the Charge Pump frequency for MACH3 is?? Maybe it's not a square wave?

?

As I said before, preventing the AC Servo switching noise from coupling onto the parallel port cable? solves the problem and these things are incredibly hard to diagnose via emails or even phone calls. ?Separation is our friend in this case.

?

Guess I'd better bring the scope back into the shop.

?

John

?

?

From: [email protected] [mailto:[email protected]] On Behalf Of Peter Homann
Sent: January-12-20 2:13 PM
To: [email protected]
Subject: Re: [MachCNC] Electrical Noise

?

My first thought would be a differences in the settings or software algorithms for noise filtering.?

?

Cheers?

Peter Homann - (from my mobile)



On 13 Jan 2020, at 8:11 am, John Dammeyer <johnd@...> wrote:

?

I've been building up my CNC system for the milling machine using a PC with dual boot for both WIN-XP and LinuxCNC.? I'm using the parallel port for both at the moment since it's easier to switch between OS and CNC software than unplugging a MESA board and plugging in a USB Smooth Stepper.

?

The system is constructed as follows:

Parallel Port to PMDX-126 BoB

Separate 24V switching power supply for logic with a linear regulator to 15V for the HP_UHU DC Servo drives which run off 105VDC Toroid based power supply. ?

Axis X and Y are 3:1 and 4:1 with the 225 oz-in Brushed DC Servo motors.

Axis Z uses one Gecko running a 1200 oz-in motor on 65VDC toroid based supply for the milling machine knee (3:1)

Axis A uses a Harmonic Drive with an AC Servo STMBL drive using the same 105VDC supply.

Changing from the single phase 2HP (1.5kW) spindle motor to a 1.8kW Bergerda AC Servo but for now on the test bench using a 400W Bergerda AC Servo.

?

There are several custom boards to do optical level conversion between the non-optically isolated PMDX-126 and the STMBL and also the 0V-10V PWM converter module from China.

?

So here's the interesting problem.? Without the Bergerda AC Servo (spindle) motor powered MACH3 and LinuxCNC boot and can run/jog the various axis without issues.? Faults like encoder cable missing, high voltage errors etc. are all caught and cause the system to enter the RESET fault state.

?

Plug in the Bergerda AC Servo (just the 400W unit) and suddenly MACH3 won't come out of ESTOP.? Reboot into LinuxCNC and absolutely no problem.

?

Since this stuff is all running on the bench at the moment the solution turned out to be deceptively simple.? Move the AC servo motor away from sitting beside the PC and that moves the cables so they aren't lying along side the parallel port cable.? Now MACH3 comes out of reset without the PMDX-126 suddenly flagging an error and going back into ESTOP mode.?? Still works perfectly in LinuxCNC.

?

I can now easily run a

S3000 M3

M4

M5

Using the MDI and the Bergerda works perfectly turning 3000 RPM? (200ipm).

?

The DC Servo X axis (250 line encoder) with the 3:1 and 5 TPI lead screw configuration run a nice 200 ipm (Motor 3000 RPM) and the arrow keys nicely change direction between -3000 RPM and +3000 RPM as indicated by the Bergerda AC Servo Drive.

?

All is as it should be!

?

What I'm wondering is why it worked with LinuxCNC and not MACH3.? It was tried with Charge Pump ON during RESET.? No real difference.? Cycling it back on when it did work (although flakey) required using the OFFLINE button and the RESET.

?

Remember, the only difference between the two systems was which OS was chosen when the PC boots.? No hardware was touched or moved during these experiments.

?

The only thing I can think of is that the noise from the AC Servo was coupled onto the parallel port line and somehow the Charge Pump signal was corrupted in a way on the MACH3 system that didn't affect the charge pump signal generated by LinuxCNC.? A missing Charge Pump is the only thing that would cause the PMDX-126 to suddenly reset.? Especially since I had the FAULT signal into the PMDX-126 disconnected.

?

Under LinuxCNC I can specify the Charge Pump Frequency.? I haven't found anything in the MACH3 setup that lets me set that.? There's enough switching noise in the system that looking at the signals with a scope didn't show anything specific.? The scope leads themselves were picking up noise and it's hard to determine where to connect the scope ground.

?

Comments?? Why LinuxCNC robust.? MACH3 not??? Something odd with PMDX-126 setup that causes a Charge Pump Missing reset?

?

Thanks

John Dammeyer

?

?

?

?

?

"ELS! Nothing else works as well for your Lathe"

Automation Artisans Inc.

www dot autoartisans dot com

?

Join [email protected] to automatically receive all group messages.