开云体育

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

Electrical Noise


 

开云体育

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

?


 

开云体育

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

Cheers?

Peter Homann - (from my mobile)
http://www.homanndesigns.com

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

?


 

开云体育

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

?


 

开云体育

Hi John,
The charge pump frequency is 12.5kHz.?

Cheers,

Peter Homann - (from my mobile)
http://www.homanndesigns.com

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

?


 

开云体育

John,
Check in Mach3 that the “charge pump on in eStop” checkbox is ticked. It is in the general config tab.?
In Mach3, the charge pump signal is to indicate that Mach3 is running and has control of the parallel port.?

Cheers,

Peter Homann - (from my mobile)
http://www.homanndesigns.com

On 13 Jan 2020, at 10:06 am, Peter Homann <groups@...> wrote:

?Hi John,
The charge pump frequency is 12.5kHz.?

Cheers,

Peter Homann - (from my mobile)
http://www.homanndesigns.com

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

?


 

开云体育

Yes. Checked and as I said in the previous email I'm suspicious that the PMDX-126 doesn't like to come out of an ESTOP condition if the Charge Pump is still there.? So perhaps noise on that line from the AC servo at the wrong point just puts it back into ESTOP.? And that might be due to the timing of when it's enabled compared to when it's enabled by LinuxCNC.

?

Still very peculiar.

John

?

?

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

?

John,

Check in Mach3 that the “charge pump on in eStop” checkbox is ticked. It is in the general config tab.?

In Mach3, the charge pump signal is to indicate that Mach3 is running and has control of the parallel port.?

?

Cheers,

Peter Homann - (from my mobile)



On 13 Jan 2020, at 10:06 am, Peter Homann <groups@...> wrote:

?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

?


 

开云体育

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

?


 

Are both boots driving the parallel port to 0 volt and 5 volt levels? I think some parallel port drivers in Windows run closer to 3.5 volts. Check parallel port settings in the power on settings as well.
Martin?


 

开云体育

Hi Martin, Peter,

I'll check.? Status on this part of the project is that all appears to be working even if not exactly the way I'd like.? I still have to cycle the ENABLE button on the MACH3 display in order to 'trick' the system after an ESTOP but theoretically I should never see an ESTOP anyway…right?

?

In either case I now have the adaptor board that holds the little PWM to 10V analog output all working.? Op.tically isolates the ENABLE/STEP/DIR inputs and provides an open collector FAULT output.? Power is 16V unregulated from the second 12V winding of the transformer for the Gecko power supply.? The DB-25 goes directly to the Bergerda drive with the correct pinout for it.? The 0-10V output goes to that little green connector.

?

I can set MACH3 to be PWM and set up the Bergerda AC Serco to use analog for speed control and the motor can be sent in either direction from about 200 RPM up to about 2950 RPM.? Or I can set the Bergerda up to use step/dir? pulses and check the other box for spindle stepping.? Now I get 0 to 3000 RPM.? There don't appear to be any noise issues and everything except for the spindle motor as shown in the attached picture is on the mill.?

?

Nice seeing a G-Code program run and turn on/off the spindle automatically.? Now I've had that feature on the CNC router with a relay for years with the USB Smooth Stepper and PMDX-125.? But now I have variable speed on a 1.8kW AC Servo.? Very cool.? Can't wait to build the mounting plates for the motor now. ?

?

Next up.? The MODIO.

John Dammeyer

?

?

From: [email protected] [mailto:[email protected]] On Behalf Of Martin Connelly
Sent: January-13-20 7:47 AM
To: [email protected]
Subject: Re: [MachCNC] Electrical Noise

?

Are both boots driving the parallel port to 0 volt and 5 volt levels? I think some parallel port drivers in Windows run closer to 3.5 volts. Check parallel port settings in the power on settings as well.

Martin?


 

Sometimes making a problem worse provides the solution to the issue at hand. In Mach3 go to config>general config and on the right side clcik on the box for 5KHz for laser. See if that provides any insight to the problem.
Dan Mauch


 

开云体育

What will that do?? Easy to try but I'm curious what you expect to see happen.

Thanks for the feedback.

John

?

?

From: [email protected] [mailto:[email protected]] On Behalf Of Dan Mauch
Sent: January-28-20 9:20 AM
To: [email protected]
Subject: Re: [MachCNC] Electrical Noise

?

Sometimes making a problem worse provides the solution to the issue at hand. In Mach3 go to config>general config and on the right side clcik on the box for 5KHz for laser. See if that provides any insight to the problem.
Dan Mauch


 

Years ago there was an issue with the charge pump frequency not associated with? a laser. It was many years ago but you might try to do a search in the archives about charge pump freq. I vaguely recall that some devices had a problem and that they fixed it but not sure how.
Dan Mauch


 

开云体育

I went into the config page and checked the 5kHz charge pump.? The only repeatable failure I'm getting on a regular basis is when I home the Z axis.

?

Here's what happens:

1.????? Ref All Home button.?

a.?????? Z axis Knee (Gecko Stepper driver with 1200oz-in motor, 60VDC) heads down at about F10

b.????? Z axis knee stops with ESTOP message.

c.?????? This happens a number of times until it finally makes it to the home switch.

d.????? Then X and Y (HP_UHU Brushed DC Servo 105VDC) silently move to their home positions no problems.

2.????? G00 X0 Y0 Z0 ?which is mid table and mid Z distance

a.?????? All axis move simultaneously.

3.????? G01 Z4.000 F10.0 to move knee back close to home/limit switch

a.?????? Moves perfectly at same speed as homing.

?

So while moving the system theoretically is always looking for the limit switch.? While Homing the system is looking for the home/limit switch.? The only thing moving is the Z and at roughly the same speed as homing.? But it won't stop with a move.? 4 or 5 tries with an ESTOP while homing.

?

None of this happens with the parallel port interface under LinuxCNC (same hardware, dual boot to other system).

?

So I'd say the noise filtering on the home/limit switch is different for homing under MACH than it is under normal motion while under LinuxCNC the filtering is the same for both operations.

?

Therefore I need to look at how the limit switches might be picking up noise of course and add some ferrites to the Stepper motor cable. They are Normally closed micro-switches connected directly to the PMDX-126 inputs.? But that all the other motion operations do not have an ESTOP puts the issue squarely with MACH3 Homing operation.

?

And the up side is that if I can rewire my Stepper Motor for the knee with better shielding and ferrites so that it doesn't ESTOP on homing then I know I'll have eradicated noise at the source.? Which is a good thing.?? But still curious why only MACH and only with homing.

?

Suggestions?

?

Thanks

John

?

?

From: [email protected] [mailto:[email protected]] On Behalf Of Dan Mauch
Sent: January-28-20 10:03 AM
To: [email protected]
Subject: Re: [MachCNC] Electrical Noise

?

Years ago there was an issue with the charge pump frequency not associated with? a laser. It was many years ago but you might try to do a search in the archives about charge pump freq. I vaguely recall that some devices had a problem and that they fixed it but not sure how.
Dan Mauch


 

?In mach3 config> general Config in the top right corner have you tried to increase the debounce time. If not do not increase it too much or you willoverugn the limit switches. But also your plan to rewire the Z axis motor with better shielding and ferrite might help.
Dan Mauch


 

have you tried the debounce input setting in general config? had a similar issue long time ago and debounce cured it. don't remember what I had to set it at but it worked.
haven't used Mach3 for quite a while.
Chuck

----- Original Message -----
From: "John Dammeyer" <johnd@...>
To: <[email protected]>
Sent: Tuesday, January 28, 2020 3:45 PM
Subject: Re: [MachCNC] Electrical Noise


I went into the config page and checked the 5kHz charge pump. The only repeatable failure I'm getting on a regular basis is when I home the Z axis.

Here's what happens:
1. Ref All Home button.
a. Z axis Knee (Gecko Stepper driver with 1200oz-in motor, 60VDC) heads down at about F10
b. Z axis knee stops with ESTOP message.
c. This happens a number of times until it finally makes it to the home switch.
d. Then X and Y (HP_UHU Brushed DC Servo 105VDC) silently move to their home positions no problems.
2. G00 X0 Y0 Z0 which is mid table and mid Z distance
a. All axis move simultaneously.
3. G01 Z4.000 F10.0 to move knee back close to home/limit switch
a. Moves perfectly at same speed as homing.

So while moving the system theoretically is always looking for the limit switch. While Homing the system is looking for the home/limit switch. The only thing moving is the Z and at roughly the same speed as homing. But it won't stop with a move. 4 or 5 tries with an ESTOP while homing.

None of this happens with the parallel port interface under LinuxCNC (same hardware, dual boot to other system).

So I'd say the noise filtering on the home/limit switch is different for homing under MACH than it is under normal motion while under LinuxCNC the filtering is the same for both operations.

Therefore I need to look at how the limit switches might be picking up noise of course and add some ferrites to the Stepper motor cable. They are Normally closed micro-switches connected directly to the PMDX-126 inputs. But that all the other motion operations do not have an ESTOP puts the issue squarely with MACH3 Homing operation.

And the up side is that if I can rewire my Stepper Motor for the knee with better shielding and ferrites so that it doesn't ESTOP on homing then I know I'll have eradicated noise at the source. Which is a good thing. But still curious why only MACH and only with homing.

Suggestions?

Thanks
John


From: [email protected] [mailto:[email protected]] On Behalf Of Dan Mauch
Sent: January-28-20 10:03 AM
To: [email protected]
Subject: Re: [MachCNC] Electrical Noise

Years ago there was an issue with the charge pump frequency not associated with a laser. It was many years ago but you might try to do a search in the archives about charge pump freq. I vaguely recall that some devices had a problem and that they fixed it but not sure how.
Dan Mauch


 

chuck via Groups.Io
have you tried the debounce input setting in general config? had a similar
issue long time ago and debounce cured it. don't remember what I had to set
it at but it worked.
haven't used Mach3 for quite a while.
Chuck
Just tried that. And the problem with working on these types of issues is what I just ran into. I set it to 10x40uS. Quit. Restarted MACH3 and homed over a 4" distance. No problem. Perfect. Moved the knee back up. Set the debounce back to 0. Shut down. Restarted MACH3 and homed again over a 4" distance. No failure. Now it won't fail.

Sigh. I think I'll leave it at 5x40uS and see what happens while I fab up a new cable and connector that lets me deal with the shield better.

If all was working right (as in wrong) it would fail repeatedly without a debounce but succeed with a debounce. Then I could change wiring, add ferrites etc. and watch the problem vanish. But no. It's going to be stubborn.

John


 

开云体育

I've posted my solution to electrical noise on this forum a few times and no one has come back and said it did or didn't work for them, but when I had random missed steps? and spent a long time trying to find the fault... I fitted an Opto isolated BOB and I've never had a missed step since. Problem solved.

Dave



Sent from my Samsung Galaxy smartphone.


-------- Original message --------
From: John Dammeyer <johnd@...>
Date: 29/01/2020 12:55 am (GMT+00:00)
Subject: Re: [MachCNC] Electrical Noise

> chuck via Groups.Io
> have you tried the debounce input setting in general config? had a similar
> issue long time ago and debounce cured it. don't remember what I had to set
> it at but it worked.
> haven't used Mach3 for quite a while.
> Chuck

Just tried that.? And the problem with working on these types of issues is what I just ran into.? I set it to 10x40uS.? Quit. Restarted MACH3 and homed over a 4" distance.? No problem.? Perfect.? Moved the knee back up. Set the debounce back to 0.? Shut down.? Restarted MACH3 and homed again over a 4" distance.? No failure.? Now it won't fail.

Sigh.? I think I'll leave it at 5x40uS and see what happens while I fab up a new cable and connector that lets me deal with the shield better.

If all was working right (as in wrong)? it would fail repeatedly without a debounce but succeed with a debounce.? Then I could change wiring, add ferrites etc. and watch the problem vanish.? But no.? It's going to be stubborn.

John

>





 

I have been following this thread but not carefully because I didn't think I had a problem. Now I am thinking that some minor drift I have over time could be missed steps not mechanical as I thought.?

Is there any problem setting the debounce time as 10 or 20 us??
if this is input debouncing then what signals are being considers as noise sources, limit switches? there is no position feedback?

also, aren't all break out boards opto issolated?

?
?
Best regards, Spencer Chase
67550 Bell Springs Rd.
Garberville, CA 95542 Postal service only.
Laytonville, CA 95454 UPS only.
Spencer@...
Spencer@...
Spencer@...


(425) 791-0309
(707) 223-8212

------ Original Message ------
From: "dave via Groups.Io" <qconvers@...>
Sent: 1/29/2020 6:00:22 AM
Subject: Re: [MachCNC] Electrical Noise

I've posted my solution to electrical noise on this forum a few times and no one has come back and said it did or didn't work for them, but when I had random missed steps? and spent a long time trying to find the fault... I fitted an Opto isolated BOB and I've never had a missed step since. Problem solved.

Dave



Sent from my Samsung Galaxy smartphone.


-------- Original message --------
From: John Dammeyer <johnd@...>
Date: 29/01/2020 12:55 am (GMT+00:00)
Subject: Re: [MachCNC] Electrical Noise

> chuck via Groups.Io
> have you tried the debounce input setting in general config? had a similar
> issue long time ago and debounce cured it. don't remember what I had to set
> it at but it worked.
> haven't used Mach3 for quite a while.
> Chuck

Just tried that.? And the problem with working on these types of issues is what I just ran into.? I set it to 10x40uS.? Quit. Restarted MACH3 and homed over a 4" distance.? No problem.? Perfect.? Moved the knee back up. Set the debounce back to 0.? Shut down.? Restarted MACH3 and homed again over a 4" distance.? No failure.? Now it won't fail.

Sigh.? I think I'll leave it at 5x40uS and see what happens while I fab up a new cable and connector that lets me deal with the shield better.

If all was working right (as in wrong)? it would fail repeatedly without a debounce but succeed with a debounce.? Then I could change wiring, add ferrites etc. and watch the problem vanish.? But no.? It's going to be stubborn.

John

>





 

开云体育

Hi Spencer

No.? Some are straight though...


https://www.cnc4you.co.uk/Breakout-board-BM01?search=Break%20out%20board


But read the spec on this one...

https://www.cnc4you.co.uk/Breakout-board-CP0-10V-CNC-4-Axis-with-Charge-Pump?search=Break%20out%20board


Dave

Sent from my Samsung Galaxy smartphone.


-------- Original message --------
From: spencer@...
Date: 29/01/2020 5:14 pm (GMT+00:00)
Subject: Re: [MachCNC] Electrical Noise

I have been following this thread but not carefully because I didn't think I had a problem. Now I am thinking that some minor drift I have over time could be missed steps not mechanical as I thought.?

Is there any problem setting the debounce time as 10 or 20 us??
if this is input debouncing then what signals are being considers as noise sources, limit switches? there is no position feedback?

also, aren't all break out boards opto issolated?

?
?
Best regards, Spencer Chase
67550 Bell Springs Rd.
Garberville, CA 95542 Postal service only.
Laytonville, CA 95454 UPS only.
Spencer@...
Spencer@...
Spencer@...


(425) 791-0309
(707) 223-8212

------ Original Message ------
From: "dave via Groups.Io" <qconvers@...>
Sent: 1/29/2020 6:00:22 AM
Subject: Re: [MachCNC] Electrical Noise

I've posted my solution to electrical noise on this forum a few times and no one has come back and said it did or didn't work for them, but when I had random missed steps? and spent a long time trying to find the fault... I fitted an Opto isolated BOB and I've never had a missed step since. Problem solved.

Dave



Sent from my Samsung Galaxy smartphone.


-------- Original message --------
From: John Dammeyer <johnd@...>
Date: 29/01/2020 12:55 am (GMT+00:00)
Subject: Re: [MachCNC] Electrical Noise

> chuck via Groups.Io
> have you tried the debounce input setting in general config? had a similar
> issue long time ago and debounce cured it. don't remember what I had to set
> it at but it worked.
> haven't used Mach3 for quite a while.
> Chuck

Just tried that.? And the problem with working on these types of issues is what I just ran into.? I set it to 10x40uS.? Quit. Restarted MACH3 and homed over a 4" distance.? No problem.? Perfect.? Moved the knee back up. Set the debounce back to 0.? Shut down.? Restarted MACH3 and homed again over a 4" distance.? No failure.? Now it won't fail.

Sigh.? I think I'll leave it at 5x40uS and see what happens while I fab up a new cable and connector that lets me deal with the shield better.

If all was working right (as in wrong)? it would fail repeatedly without a debounce but succeed with a debounce.? Then I could change wiring, add ferrites etc. and watch the problem vanish.? But no.? It's going to be stubborn.

John

>





 

开云体育

Hi Dave,

I have a PMDX-126 which is optically isolated for inputs and the control outputs.? The Step/Dir are not under the assumption that most drives are.? In my case they are.

?

The problem has temporarily gone away again. No matter what I do, which includes twisting the stepper motor wire along the ESTOP and LIMIT switch wires, I can now home the Z without issue.

?

I'm still going to rewire the Z motor cable but it's a perplexing problem.

John

?

?

From: [email protected] [mailto:[email protected]] On Behalf Of dave via Groups.Io
Sent: January-29-20 6:00 AM
To: [email protected]
Subject: Re: [MachCNC] Electrical Noise

?

I've posted my solution to electrical noise on this forum a few times and no one has come back and said it did or didn't work for them, but when I had random missed steps? and spent a long time trying to find the fault... I fitted an Opto isolated BOB and I've never had a missed step since. Problem solved.

?

Dave

?

?

?

Sent from my Samsung Galaxy smartphone.

?

?

-------- Original message --------

From: John Dammeyer <johnd@...>

Date: 29/01/2020 12:55 am (GMT+00:00)

Subject: Re: [MachCNC] Electrical Noise

?

> chuck via Groups.Io
> have you tried the debounce input setting in general config? had a similar
> issue long time ago and debounce cured it. don't remember what I had to set
> it at but it worked.
> haven't used Mach3 for quite a while.
> Chuck

Just tried that.? And the problem with working on these types of issues is what I just ran into.? I set it to 10x40uS.? Quit. Restarted MACH3 and homed over a 4" distance.? No problem.? Perfect.? Moved the knee back up. Set the debounce back to 0.? Shut down.? Restarted MACH3 and homed again over a 4" distance.? No failure.? Now it won't fail.

Sigh.? I think I'll leave it at 5x40uS and see what happens while I fab up a new cable and connector that lets me deal with the shield better.

If all was working right (as in wrong)? it would fail repeatedly without a debounce but succeed with a debounce.? Then I could change wiring, add ferrites etc. and watch the problem vanish.? But no.? It's going to be stubborn.

John

>