Class SR_S
Version 1.0
Modified 08-MAR-2026 11:05:32.00
Code rt_plc_macro_logic.h
 Set Reset flip-flop.

 The SR flip-flops hold on a leading edge on the
 set-signal and reset on a leading edge on the
 res(et)-signal.

 If both the set and reset signals are TRUE at the same
 time the state of the flip-flops is undefined. At this
 condition is a
  - SR_S flip_flop TRUE ( = Set)
  - SR_R flip_flop FALSE ( = Reset)

 See also



RtBody attributes pwr_sClass_sr_s
Boolean set set Input connected to the set-signal.
Boolean reset res Input connected to the reset-signal.
Boolean Status sts Specifies the current status of the object.
Int32 Acc Acc The operator's authorities to change Status.

0 -- Changes not allowed.
!= 0 -- Changes allowed.

DevBody attributes 
PlcNode PlcNode  


GraphPlcNode
object_type 94
parameters[0] 2
parameters[1] 0
parameters[2] 1
parameters[3] 0
subwindows 0
graphmethod 0 (standard, individual attributes)
graphindex 0
default_mask[0] 3
default_mask[1] 1
segname_annotation 1
compmethod 5
compindex 0
tracemethod 3
traceindex 1
executeordermethod 2
objname SR_S
graphname SR_S
debugpar Status


Attributes detail


set Input
Class Input
Type Boolean
Flags STATE | RTVIRTUAL | NOEDIT | NOREMOVE
GraphName set
Body RtBody
 Input connected to the set-signal.

reset Input
Class Input
Type Boolean
Flags STATE | RTVIRTUAL | NOEDIT | NOREMOVE
GraphName res
Body RtBody
 Input connected to the reset-signal.

Status Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName sts
Body RtBody
 Specifies the current status of the object.

Acc Intern
Class Intern
Type Int32
Flags STATE | NOEDIT
GraphName Acc
Body RtBody
 The operator's authorities to change Status.

   0   -- Changes not allowed.
   != 0 -- Changes allowed.

PlcNode Buffer
Class Buffer
Type PlcNode
Flags INVISIBLE
Body DevBody