Poll

se pueden desconectar salidas secuencialmente

alidas
0 (0%)

Total Members Voted: 0

Author Topic: Reinicio plc  (Read 4872 times)

danier

  • Newbie
  • *
  • Posts: 14
  • I'm a llama!
    • View Profile
Reinicio plc
« on: July 19, 2010, 07:23:16 PM »
Hola a todos de nuevo con una consulta, etoy casi por terminar un programa para un plc f 1616ba, el cual consiste en que al detectar que una entrada se activa este corre todo el programa activando las salidas que se requieren, mi interrogante es que al desactivar la entrada,todas las salidas se desactivan de inmediato, quiero que estas salidas se vallan desactivando sequencialmente tal como se van activando, para lo cual utilic? timers
como debo hacer para que se vayan desactivando las salidas secuencialmente.
de antemano gracias a todos por su gran ayuda.

[Google Translate result]:
Hi all again with a query, etoy almost complete a program for f 1616ba plc, which is that when it detects that an input is activated it runs throughout the program by checking the outputs required, my question is that disable input, all outputs are disabled immediately, I want these departures were fenced clearing sequentially as they activate, for which I used timers
as I get to be clearing the outputs sequentially.
in advance thank you all for your help


« Last Edit: July 20, 2010, 11:02:53 AM by support »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3170
    • View Profile
    • Internet Programmable PLCs
Re:Reinicio plc
« Reply #1 on: July 20, 2010, 11:08:11 AM »
Not sure I understand what you want to do (Google translate result is not too clear). But presumably you want the output to turn off sequentially after a certain time? You could turn on a timer or just use the built-in clock pulse to periodically trigger a custom function that at every execution will turn off the outputs one by one using the CLRBIT function together with a variable as index.

Email: support@triplc.com
Tel: 1-877-TRI-PLCS

garysdickinson

  • Hero Member
  • Posts: 502
  • Old PLC Coder
    • View Profile
Re:Reinicio plc
« Reply #2 on: July 26, 2010, 09:46:58 AM »
Sr. Danier,

I think that using a state machine design would be the easiest to write, debug and maintain.  I've attached a .pdf file that contains a simple state machine design and implementation.

good luck,

Gary d.
« Last Edit: July 26, 2010, 09:49:44 AM by garysdickinson »