menu
dopisz swój adres do listy:
kontakt CoDeSys.pl:
e-mail: news@codesys.pl
Telefon: 048 331 20 57
Fax: 048 331 25 36

www.codesys.pl
wyszukaj w codesys.pl
biblioteki standardowe - standard.lib (funkcje bistabilne)


RS

Zerowanie bistabilnego bloku funkcji (standard.lib):

Q1 = RS (SET, RESET1) oznacza:
Q1 = NOT RESET1 AND (Q1 OR SET)


Wejścia SET i RESET1 oraz wyjście Q1 są typu BOOL.

Przykład deklaracji:

RSInst : RS ;

Przykład w IL:

CAL RSInst(SET:= VarBOOL1,RESET1:=VarBOOL2)
LD RSInst.Q1
ST VarBOOL3


Przykład w ST:

RSInst(SET:= VarBOOL1 , RESET1:=VarBOOL2 );
VarBOOL3 := RSInst.Q1 ;


Przykład w FBD:


RS


codesys.pl