Output pulse for m2/m30

  • The Feral Engineer
  • The Feral Engineer's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
23 Dec 2020 00:42 #192903 by The Feral Engineer
Output pulse for m2/m30 was created by The Feral Engineer
Is there a way to link m2 or m30 to a pin? On industrial machines, program end, m1 optional stop and m0 has available io we use for linking plc signals for things like automatic door unlock, pallet change, and my current endeavor in lncnc - interactive parts counter. I have a gladevcp counter I'm making in classic ladder that i need to pulse an output to in order to make work and m64 is latching, so i need a different way

Please Log in or Create an account to join the conversation.

  • The Feral Engineer
  • The Feral Engineer's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
23 Dec 2020 03:54 #192922 by The Feral Engineer
Replied by The Feral Engineer on topic Output pulse for m2/m30
got something to work that'll do for now. made an M code to control the input i'm using to classicladder to count up

#!/bin/bash
halcmd setp classicladder.0.in-01 true
halcmd setp classicladder.0.in-01 false
exit 0

now that I know how to assign M codes, I think I'll be in good shape for now

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum