Autor Thema: Problem  (Gelesen 12976 mal)

0 Mitglieder und 3 Gäste betrachten dieses Thema.

SweElite

  • Gast
Problem
« am: 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.

Offline hugo

  • Global Moderator
  • *****
  • Beiträge: 2 152
    • Profil anzeigen
Re:Problem
« Antwort #1 am: 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.

SweElite

  • Gast
Re:Problem
« Antwort #2 am: 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


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.

Offline hugo

  • Global Moderator
  • *****
  • Beiträge: 2 152
    • Profil anzeigen
Re:Problem
« Antwort #3 am: 22. September 2009, 15:53:27 »
try this

[gelöscht durch Administrator]

Offline hugo

  • Global Moderator
  • *****
  • Beiträge: 2 152
    • Profil anzeigen
Re:Problem
« Antwort #4 am: 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
« Letzte Änderung: 22. September 2009, 15:56:32 von hugo »

SweElite

  • Gast
Re:Problem
« Antwort #5 am: 23. September 2009, 08:45:38 »
Thanks alot for the help Hugo ! I cant belive that this small issue have given me this trouble :)

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