Class ILimit
Version 1.0
Modified 08-MAR-2026 11:05:32.00
Code rt_plc_arithm.c
 Integer limiter.

 Minimum and maximum limiter for integer value.


RtBody attributes pwr_sClass_ILimit
Int32 Max Max Specifies the current value of the high limit.
Int32 In In Specifies the current value of the input signal.
Int32 Min Min Specifies the current value of the low limit.
Int32 ActVal Val if In < Min and Min < Max ActVal = Min
if In > Max ActVal = Max
else ActVal = In
Boolean High hl Specifies if a limitation upwards has taken place or
not. FALSE means no limitation upwards at the moment;
TRUE means that the output signal has been limited
upwards to the value of Max.
Boolean Low ll Specifies if a limitation downwards has taken place or
not. FALSE means no limitation downwards at the moment;
TRUE means that the output signal has been limited
downwards to the value of Min.

DevBody attributes 
PlcNode PlcNode  


GraphPlcNode
object_type 11
parameters[0] 3
parameters[1] 0
parameters[2] 3
parameters[3] 0
subwindows 0
graphmethod 0 (standard, individual attributes)
graphindex 0
default_mask[0] 7
default_mask[1] 1
segname_annotation 1
compmethod 4
compindex 0
tracemethod 0
traceindex 0
executeordermethod 2
objname ILimit
graphname ILimit
debugpar


Attributes detail


Max Input
Class Input
Type Int32
Flags REDUTRANSFER
GraphName Max
Body RtBody
 Specifies the current value of the high limit.

In Input
Class Input
Type Int32
Flags REDUTRANSFER
GraphName In
Body RtBody
 Specifies the current value of the input signal.

Min Input
Class Input
Type Int32
Flags REDUTRANSFER
GraphName Min
Body RtBody
 Specifies the current value of the low limit.

ActVal Output
Class Output
Type Int32
Flags STATE | NOEDIT | REDUTRANSFER
GraphName Val
Body RtBody
  if In < Min and Min < Max   ActVal = Min
  if In > Max                 ActVal = Max
  else                        ActVal = In

High Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName hl
Body RtBody
 Specifies if a limitation upwards has taken place or
 not. FALSE means no limitation upwards at the moment;
 TRUE means that the output signal has been limited
 upwards to the value of Max.

Low Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName ll
Body RtBody
 Specifies if a limitation downwards has taken place or
 not. FALSE means no limitation downwards at the moment;
 TRUE means that the output signal has been limited
 downwards to the value of Min.

PlcNode Buffer
Class Buffer
Type PlcNode
Flags INVISIBLE
Body DevBody