Author Topic: Momentary Relay operation  (Read 11891 times)

ckane

  • Newbie
  • Posts: 14
    • View Profile
Momentary Relay operation
« on: June 10, 2012, 08:04:50 AM »
Newbie here.

Using a custom function, how does one operate a relay on a momentary basis?  I want to emulate the function of a momentary push button.  

For example, I have an INIT Input which is a manual push button, but I want to either programmically operate a relay contact in parallel with the input or call the custom function that this input operates.

ckane

  • Newbie
  • Posts: 14
    • View Profile
Re:Momentary Relay operation
« Reply #1 on: June 10, 2012, 08:24:59 AM »
As an update, I can call the function, but what I really want to do is emulate the push button.  I have stanard start/stop circuit with manul buttons, but I want to program the stop input.  So when the process completes, I want to emulate pressing the stop button.


support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Momentary Relay operation
« Reply #2 on: June 11, 2012, 09:09:21 AM »
You could actually turn on the STOP input for one scan time by running the command SETIO STOP (assuming your STOP button is so labelled in the I/O table).

You should ensure that the function calling SETIO STOP precede the ladder circuit that STOP is driving. This way it has a chance to be executed by the ladder scan before the I/O scan set it back to OFF state.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS