SR block

Short summary

Name

SR

→POU type

→function block

Category

IEC-block, Bistable

Conform to →IEC-standard

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/check.svg no restrictions

Graphical interface

images/download/thumbnails/414780688/SR-version-1-modificationdate-1534859737899-api-v2.png

Available since

version 1.18.0 (for logi.CAD 3)

Functionality

The block serves for short-term or lasting storage of logical states. Hence it is the equivalent to the seal-in circuit known in the contactor technique .

→Turning input S1 on triggers output Q1 to return value TRUE (or an equivalent). Turning input R on triggers output Q1 to return value FALSE (or an equivalent). The identification S1 indicates that this input is dominant.

In-/outputs


Identifier

→Data type

Description

Inputs:

S1

BOOL

set (dominant)

R

BOOL

reset

Outputs:

Q1

BOOL


Input EN and output ENO are available when →calling the block. See "Execution control: EN, ENO" for information on input EN and output ENO.

See:

Example for usage within ST-editor

PROGRAM Test
VAR
DB_On : SR;
Out : BOOL;
TriggerS1 : BOOL;
TriggerR : BOOL;
END_VAR
DB_On(S1 := TriggerS1, R := TriggerR, Q1 => Out);
(* Instance of block 'SR' is called. *)
(* Input 'S1' gets value from 'TriggerS1' variable. Input 'R' gets value from 'TriggerR' variable.*)
(* Output 'Q' returns TRUE, if 'TriggerS1' is TRUE. Output 'Q' returns FALSE, if 'TriggerR' is TRUE and 'TriggerS1' is FALSE. *)
(* Variable 'Out' accesses the output 'Q1'. *)
END_PROGRAM

When creating your application within the ST-editor, enter a call of a block by typing the text as requested by the syntax or use Content Assist.