840
24 BISTABLE FUNCTION BLOCKS
24.1 Bistable Function Blocks (Set Priority)
24 BISTABLE FUNCTION BLOCKS
24.1 Bistable Function Blocks (Set Priority)
SR(_E)
These function blocks judge two input values and output 1 (TRUE) or 0 (FALSE).
â– Descriptions, types, and data types
â– Operation processing
• When (s1) turns ON, (d) is set. If (s2) is turned ON when (s1) is OFF, (d) is reset.
• If (s2) is turned ON when (s1) is ON, (d) is not reset.
â– Operation result
1. Function block without EN/ENO
The operation processing is executed. The operation output value is output from (d).
• Timing chart
Ladder diagram Structured text
[Without EN/ENO] [With EN/ENO] [Without EN/ENO]
SR_1(S1:=s1,R:=s2,Q1:=d);
[With EN/ENO]
SR_E_1(EN:=EN,ENO:=ENO S1:=s1,R:=s2,Q1:=d);
Argument Description Type Data type
EN Execution condition (TRUE: Execution, FALSE: Stop) Input variable BOOL
s1 Set instruction Input variable BOOL
s2 Reset instruction Input variable BOOL
ENO Output status (TRUE: Normal, FALSE: Abnormal) Output variable BOOL
d Output Output variable BOOL
OFF OFF
ON
OFF OFF OFF
ON ON ON ON ON
(s1)
OFF
OFF OFF
ON
OFF OFF OFF
ON ON ON ON ON
OFF
OFF
ON ON ON ON ON
(s2)
(d)
When (s1) is on,
(d) is on.
When (s1) is off and (s2) is on,
(d) is off.