OSCAT Forum

Home Automation => SPS-Programmierung => Thema gestartet von: SweElite in 22. September 2009, 12:36:06

Titel: Problem
Beitrag von: SweElite in 22. September 2009, 12:36:06
Hello !

Im having a small problem that has got me stuck. I programming in Beckhoff plc control, and i need a function that does the following. I need 1x input in a function block and 2x time inputs and 1x output. When the input is high i need to switch between the two outputs, and if possible have a deadband between the outputs for 2x seconds. The block must be working "cyclic".

Is there anyone who knows how to do this ?
Please help.
Titel: Re:Problem
Beitrag von: hugo in 22. September 2009, 12:54:10
what exactly do you mean by 2xinput ...

sorry i dont understand what you are trying to achieve
you describe 3 inputs butonly the function of one input.
Titel: Re:Problem
Beitrag von: SweElite in 22. September 2009, 13:47:16
Sorry for my extreamly bad explanation.

What i mean with 2x input is  2 diffrent times. I need to have 1x digital  input, and one digital output. When the input is high i want the output q1 to be high (time input 1) and after that has elapsed then have a deadband with 2sec, and then next output q2 to be high related to time input 2


Zitat von: hugo in 22. September 2009, 12:54:10
what exactly do you mean by 2xinput ...

sorry i dont understand what you are trying to achieve
you describe 3 inputs butonly the function of one input.
Titel: Re:Problem
Beitrag von: hugo in 22. September 2009, 15:53:27
try this

[gelöscht durch Administrator]
Titel: Re:Problem
Beitrag von: hugo in 22. September 2009, 15:54:17
sorry forgot to put PT of TOF to T#2s
i assumed in1 and in2 are pulses in case you want to act on a rising edge of the inputs use R_trig in fromt of the inputs
Titel: Re:Problem
Beitrag von: SweElite in 23. September 2009, 08:45:38
Thanks alot for the help Hugo ! I cant belive that this small issue have given me this trouble :)

Zitat von: hugo in 22. September 2009, 15:54:17
sorry forgot to put PT of TOF to T#2s
i assumed in1 and in2 are pulses in case you want to act on a rising edge of the inputs use R_trig in fromt of the inputs