RS block

Short summary

Name

RS

→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/414780682/RS-version-2-modificationdate-1534859701396-api-v2.png

Available since

version 1.0.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 S on triggers output Q1 to return value TRUE (or an equivalent) . Turning input R1 on triggers output Q1 to return value FALSE (or an equivalent). The identification R1 indicates that this input is dominant.

In-/outputs


Identifier

→Data type

Description

Inputs:

S

BOOL

set

R1

BOOL

reset (dominant)

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.

Example for usage within ST-editor

PROGRAM Test
VAR
DB_On : RS;
Out : BOOL;
TriggerS : BOOL;
TriggerR1 : BOOL;
END_VAR
DB_On(S := TriggerS, R1 := TriggerR1, Q1 => Out);
(* Instance of block 'RS' is called. *)
(* Input 'S' gets value from 'TriggerS' variable. Input 'R1' gets value from 'TriggerR1' variable.*)
(* Output 'Q' returns TRUE, if 'TriggerS' is TRUE and 'TriggerR1' is FALSE. Output 'Q' returns FALSE, if 'TriggerR1' is TRUE. *)
(* 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.