RS

PLCopen motion icon

 Function BlockClosed A function block groups an algorithm and a set of private data. It has inputs and outputs. - ResetClosed New start of the microprocessor. dominant bistable.

Inputs

Input

Data Type

Range

Unit

Default

Description

SET

BOOL

 

 

 

Condition for forcing to TRUE.

RESET1

BOOL

 

 

 

Condition for forcing to FALSE.

Highest priority command.

Outputs

Output

Data Type

Range

Unit

Description

Q

BOOL

 

 

Output to be forced.

Remarks

  • The output is unchanged when both inputs are FALSE.
  • When both inputs are TRUE, the output is forced to FALSE. (reset dominant)

Truth Table

SET

RESET1

Q1 prev

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 Language Example

FFLD Language Example

IL Language Example

(* MyRS is declared as an instance of RS functionClosed A function calculates a result according to the current value of its inputs. 
A function has no internal data and is not linked to declared instances. block *)
Op1: CAL MyRS (SET, RESET1)
     FFLD  MyRS.Q1
     ST  Q1

ST Language Example

(* MyRS is declared as an instance of RS function block *)
MyRS (SET, RESET1);
Q1 := MyRS.Q1;

See Also