-

RS / RS_S

Type Function block

Available as standard (non-safety-related) and safety-related type (*_S). For the safety-related type, the safety-related data types (SAFE*) are expected at the formal parameters.
Description The RS function block realizes a latching relay with resetting priority over setting. A latching relay remains in its last state when power is switched off.

The Q1 output is set with a transition from FALSE to TRUE at the SET input. Q1 remains TRUE until the RESET1 input switches from FALSE to TRUE. If SET and RESET1 are TRUE, the RESET1 input has priority.

If the function block is called for the first time, Q1 is FALSE.
Notes
  • All parameters can be negated.

    Note: The negation of formal parameters is not supported in safety-related code (SNOLD).

  • Function blocks have to be instantiated. The instance name of the function block has to be declared in the 'Variables' table of the POU where the FB is going to be used. The instance name must be unique within the POU.
Parameters Inputs

SET

RESET1

Output

Q1
Timing diagram RS timing diagram