SR_FUN

Set/reset

This is a user-defined function from a system function block. SR_FUN (set/reset) allows you to both set and reset an output.

Parameters

Input

Set (BOOL)

Set

The output Q1 is set for each rising edge at Set

Reset (BOOL)

Reset

The output Q1 is reset for each rising edge detected at Reset, except when S1 is set (see time chart)

Input/output

dutInstance (SR_FUN_INSTANCE_DUT)

Internal memory containing the internal values and states, which corresponds to the instance memory of the associated FB.

Output

Q1 (BOOL)

Set or reset depending on inputs

  • set if a rising edge is detected at Set

  • reset if a rising edge is detected at Reset if Set is not set.

  • set if a rising edge is detected at both inputs (Set and Reset).

  • Upon initialising, Q1 always has the status zero (reset).

Time chart

Related topics:

Modified on: 2021-03-30Feedback on this pagePanasonic hotline