开云体育

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

Limit switch cloning.


 

开云体育

I'd like to add an input to MACH3 that does exactly what a limit switch input does. I want it to switch off the ENABLE (DB25-1) but leave the charge pump running (the check box is on in the config menu).?? So not quite the same as the ONLINE button.

?

I want to logically OR the servo motor fault outputs so all motion stops but power is not switched off. ?

?

To do this I have to remove the FAULT input to the PMDX-126 which creates an ESTOP event and shuts off servo motor power.

?

A limit switch type event is more appropriate for my system.? I could logically combine say the Z upper limit with the fault and just settle for the incorrect error message but I'd rather have the input generate a message that says "Fault Input Active".

?

Is there a way to do this with MACH3??

?

Thanks

John

?

?

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

Automation Artisans Inc.

www dot autoartisans dot com

?


 

开云体育

John,

been a while since I played with M3 but just off the cuff could you use a unused axis limit say A and I believe with the M3 screen editor you can change the error message for that event????? just a guess been a while, don't remember all the features in M3 editor.

Chuck


On 2/12/2021 4:18 PM, John Dammeyer wrote:

I'd like to add an input to MACH3 that does exactly what a limit switch input does. I want it to switch off the ENABLE (DB25-1) but leave the charge pump running (the check box is on in the config menu).?? So not quite the same as the ONLINE button.

?

I want to logically OR the servo motor fault outputs so all motion stops but power is not switched off. ?

?

To do this I have to remove the FAULT input to the PMDX-126 which creates an ESTOP event and shuts off servo motor power.

?

A limit switch type event is more appropriate for my system.? I could logically combine say the Z upper limit with the fault and just settle for the incorrect error message but I'd rather have the input generate a message that says "Fault Input Active".

?

Is there a way to do this with MACH3??

?

Thanks

John

?

?

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

Automation Artisans Inc.

www dot autoartisans dot com

?



 

开云体育

Hi Chuck,

Thanks for the reply.? I do have an A axis (Harmonic motor run with STMBL AC Servo drive) and although I may well add a home position switch to it I hadn't thought about using one of the other unused limit switches.?

?

I currently use a small PIC12F609 micro-controller to monitor the DC Servo power, ENABLE from the system and the FAULT outputs from the servo.? With only 6 pins I'm limited in what I can do but changing the /FAULT output to the inverse FAULT active high is really easy.

?

For that matter I can just declare the limit switch input as active high rather than active low since a broken wire to a switch isn't an issue with this.? Don't even have to change the firmware then.

?

The reason for the PIC controller was that I have a soft start on the DC servo power supply so it takes a second or so for it to come on after the master power is applied.? Problem is that the Charge Pump and ENABLE output show up before the power supply is up to voltage.? It's not a problem for the HP_UHU DC Servo motor driver but is for the STMBL AC Servo drive which uses the same 105VDC power.?? It faults out when it gets the EABLE because the power supply voltage is still too low.?

?

So I get this cycle of PMDX-126 gets ENABLE and switches on K2 relay which supplies relay control to the AC/DC power circuits and MACH outputs the ENABLE signal on DB25-1 out to the drives.?

?

The STMBL AC Servo Drive sees low DC voltage and asserts /FAULT into the PMDX-126 Fault input.? The PMDX-126 /FAULT forces an ESTOP from that input and that shuts off the control relay for the AC/DC power circuits.? AC/DC goes bye-bye.? MACH is in RESET and then undoing that starts the whole cycle over again. ?

?

By adding a delay on the FAULTs based on the DC voltage I get around the STMBL issue.? There were a few other problems but that was the biggest.

?

From: [email protected] [mailto:[email protected]] On Behalf Of chuck via groups.io
Sent: February-12-21 2:02 PM
To: [email protected]
Subject: Re: [MachCNC] Limit switch cloning.

?

John,

been a while since I played with M3 but just off the cuff could you use a unused axis limit say A and I believe with the M3 screen editor you can change the error message for that event????? just a guess been a while, don't remember all the features in M3 editor.

Chuck

?

On 2/12/2021 4:18 PM, John Dammeyer wrote:

I'd like to add an input to MACH3 that does exactly what a limit switch input does. I want it to switch off the ENABLE (DB25-1) but leave the charge pump running (the check box is on in the config menu).?? So not quite the same as the ONLINE button.

?

I want to logically OR the servo motor fault outputs so all motion stops but power is not switched off. ?

?

To do this I have to remove the FAULT input to the PMDX-126 which creates an ESTOP event and shuts off servo motor power.

?

A limit switch type event is more appropriate for my system.? I could logically combine say the Z upper limit with the fault and just settle for the incorrect error message but I'd rather have the input generate a message that says "Fault Input Active".

?

Is there a way to do this with MACH3? ?

?

Thanks

John

?

?

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

Automation Artisans Inc.

www dot autoartisans dot com

?

?