Hello Guest it is March 29, 2025, 11:01:06 AM

Author Topic: Activate a digital output when an axis is activated  (Read 8340 times)

0 Members and 2 Guests are viewing this topic.

Activate a digital output when an axis is activated
« on: July 21, 2022, 06:02:10 AM »
Hi

Is there any way to enable an output when a specific axis is running?

For example for the X axis

G21 G90 X10 Y10 (output is enable)
G21 G90 Y15 (output is disable)

kind regards

Pablo

Re: Activate a digital output when an axis is activated
« Reply #1 on: November 15, 2024, 08:33:21 AM »
Hi
this is how I do it.
the last two rungs of the brain attached have an output for +ve moving, the second rung outputs for -ve moves
I know its an old post but I saw no one answered
hope it helps
Re: Activate a digital output when an axis is activated
« Reply #2 on: November 15, 2024, 08:37:43 AM »
hi again
sorry last three rungs, it writes to a store and compares it later on in scan
regards
Re: Activate a digital output when an axis is activated
« Reply #3 on: February 18, 2025, 09:38:14 PM »
Hi Pablo,

It depends on the controller you're using, but one common approach is to use M-codes linked to an output signal. Some controllers allow you to assign an output to activate when a specific axis is moving.

If your system supports conditional logic or macros, you might be able to set up a function that enables the output when an X-axis move is commanded and disables it otherwise.

What machine/controller are you working with? That might help narrow down a solution.

Best regards,