RS
Àðãóìåíòû:
SET BOO åñëè TRUE, óñòàíîâèòü Q1 â TRUE
RESET1 BOO åñëè TRUE, óñòàíîâèòü Q1 â FALSE
(äîìèíàíòà)
Q1 BOO áóëåâñêîå ñîñòîÿíèå â ïàìÿòè
Îïèñàíèå:
Ñáðàñûâàåò äîìèíàíòó. Ñì. Òàáëèöó:
Set | Reset1 | Q1 | result Q1 | ||||
0 | 0 | 0 | 0 | ||||
0 | 0 | 1 | 1 | ||||
0 | 1 | 0 | 0 | ||||
0 | 1 | 1 | 0 | ||||
1 | 0 | 0 | 1 | ||||
1 | 0 | 1 | 1 | ||||
1 | 1 | 0 | 0 | ||||
1 | 1 | 1 | 0 |
(*FBD ïðèìåð áëîêîâ RS*)
(* ST Ýêâèâàëåíò: Ìû ïðåäïîëàãàåì, ÷òî RS1 - ýòî ýêçåìïëÿð áëîêà RS *)
RS1(start_cmd, (stop_cmd OR alarm));
command := RS1.Q1;
(* IL Ýêâèâàëåíò: *)
LD start_cmd
ST RS1.set
LD stop_cmd
OR alarm
ST RS1.reset1
CAL RS1
LD RS1.Q1
ST command