Hello Guest it is March 28, 2024, 11:54:14 AM

Author Topic: Enabling output during axis movement  (Read 2278 times)

0 Members and 1 Guest are viewing this topic.

Enabling output during axis movement
« on: July 31, 2015, 05:09:34 PM »
Good afternoon,

I am working on a wire Bender that will be pulling material off of the spool with the X axis motor and feeding it through the machine. I have a pneumatic brake on the spool and would like to turn the break off when the X axis motor is in motion. Does anyone know how I could make an output change state while the X axis is moving?

dan

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Enabling output during axis movement
« Reply #1 on: July 31, 2015, 07:11:30 PM »
Perhaps make two macros, one before a x axis move, then one after an x axis move, that turn off then on an output that controls your brake.......

Or...........

in your PLC script, use the mc calls to watch for x axis is moving and if true, turn on or off your output that goes to the brake.

Scott
fun times

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Enabling output during axis movement
« Reply #2 on: July 31, 2015, 08:43:34 PM »
Anything you try to monitor from the inside will run into the problem of what comes first the brake or the axis. IF you monitor the axis movement by the time you sense the axis is moving and release the brake it is too late to release the brake as the axis is ALREADY in motion.

Scott is correct with the Mcode before and after the Axis movement .

(;-) TP