
Drive PLC Developer Studio
IEC 61131-3 Standard functions
14-10
l
DDS EN 2.3
14.4 Bistable function blocks
14.4.1 SR
Bistable function block (dominant set)
• Q1, SET1 and RESET are of type BOOL.
• Q1 = SR (SET1, RESET) means: Q1 = (NOT RESET AND Q1) OR SET1
Examples
Declaration:
SRInst : SR;
IL FBD
CAL SRInst(SET1:=VarBOOL1, RESET:=VarBOOL2)
LD SRInst.Q1
ST VarBOOL3
ST
SRInst(SET1:=VarBOOL1, RESET:=VarBOOL2);
VarBOOL3:=SRInst.Q1;
14.4.2 RS
Bistable function block (dominant reset)
• Q1, SET and RESET1 are of type BOOL.
• Q1 = RS (SET, RESET1) means: Q1 = NOT RESET1 AND (Q1 OR SET)
Examples
Declaration:
RSInst : RS;
IL FBD
CAL RSInst(SET:=VarBOOL1, RESET1:=VarBOOL2)
LD RSInst.Q1
ST VarBOOL3
ST
RSInst(SET:=VarBOOL1, RESET1:=VarBOOL2);
VarBOOL3:=RSInst.Q1;
Komentarze do niniejszej Instrukcji