Internet PLC Forum

General => Technical support => Topic started by: danier on July 19, 2010, 07:23:16 PM

Title: Reinicio plc
Post by: danier 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


Title: Re:Reinicio plc
Post by: support 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.

Title: Re:Reinicio plc
Post by: garysdickinson 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.