Hallo zusammen,
ich bin neu hier im Forum und beschäftige mich jetzt mit codesys und Beckhoff Steuerungen mit RPI.
Komme ganz gut damit zurecht,aber ich brauchte mal Hilfe beim programmieren einer Flip-Flop Schaltung.
D.h. mit einem Eingang setze ich einen Ausgang auf ein und beim nächsten drücken des Eingangs den Ausgang wieder auf aus.
Für jede Hilfe wäre ich sehr dankbar.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
wofi hat geschrieben:
Hallo zusammen,
ich bin neu hier im Forum und beschäftige mich jetzt mit codesys und Beckhoff Steuerungen mit RPI.
Komme ganz gut damit zurecht,aber ich brauchte mal Hilfe beim programmieren einer Flip-Flop Schaltung.
D.h. mit einem Eingang setze ich einen Ausgang auf ein und beim nächsten drücken des Eingangs den Ausgang wieder auf aus.
Für jede Hilfe wäre ich sehr dankbar.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There might be a function block already doing this but here is a quick way to accomplish this.
VAR  xInputPressed:BOOL; //Inputthatthebuttonistiedto  fb_ButtonPressedTrig:R_TRIG;  xOutputActive:BOOL;//Outputtobeturnedon/offEND_VARfb_ButtonPressedTrig(CLK:=xInputPressed);IFfb_ButtonPressedTrig.QTHEN  xOutputActive:=NOTxOutputActive;END_IF
This was quickly written up and not tested so there might be an error but this hopefully gets you there.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hallo zusammen,
ich bin neu hier im Forum und beschäftige mich jetzt mit codesys und Beckhoff Steuerungen mit RPI.
Komme ganz gut damit zurecht,aber ich brauchte mal Hilfe beim programmieren einer Flip-Flop Schaltung.
D.h. mit einem Eingang setze ich einen Ausgang auf ein und beim nächsten drücken des Eingangs den Ausgang wieder auf aus.
Für jede Hilfe wäre ich sehr dankbar.
There might be a function block already doing this but here is a quick way to accomplish this.
This was quickly written up and not tested so there might be an error but this hopefully gets you there.