Class Limit
Version 1.0
Modified 08-MAR-2026 11:05:32.00
Code rt_plc_arithm.c
 Limits an analog signal up/downwards and signals if a
 limitation has taken place.

 The limits Max and Min may be external signals or
 adjustable parameters.
 The input signal may be fixed while one or both limits
 are variable.
 If one of the limits is not wanted the input signal may
 also be connected to that limit.

RtBody attributes pwr_sClass_limit
Float32 Max MAX Specifies the current value of the high limit.
Float32 In IN Specifies the current value of the input signal.
Float32 Min MIN Specifies the current value of the low limit.
Float32 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.
Int32 AccMax AccMax The operator's authorities to change Max respectively
Min. There is no meaning in changing the attributes
manual, if it is also updated by an external signal.
0 -- Changes not allowed.
!= 0 -- Changes allowed.
Int32 AccMin AccMin
Float32 MinmaxC MinmaxC The minimum and maximum allowed value of Max at changes
made by an operator.
Float32 MaxmaxC MaxmaxC
Float32 MinminC MinminC The minimum and maximum allowed value of Min at changes
made by an operator.
Float32 MaxMinC MaxminC

DevBody attributes 
PlcNode PlcNode  


GraphPlcNode
object_type 122
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 Limit
graphname Limit
debugpar


Attributes detail


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

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

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

ActVal Output
Class Output
Type Float32
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
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
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.

AccMax Intern
Class Intern
Type Int32
Flags
GraphName AccMax
Body RtBody
 The operator's authorities to change Max respectively
 Min. There is no meaning in changing the attributes
 manual, if it is also updated by an external signal.
 0   -- Changes not allowed.
 != 0 -- Changes allowed.

AccMin Intern
Class Intern
Type Int32
Flags
GraphName AccMin
Body RtBody

MinmaxC Intern
Class Intern
Type Float32
Flags
GraphName MinmaxC
Body RtBody
 The minimum and maximum allowed value of Max at changes
 made by an operator.

MaxmaxC Intern
Class Intern
Type Float32
Flags
GraphName MaxmaxC
Body RtBody

MinminC Intern
Class Intern
Type Float32
Flags
GraphName MinminC
Body RtBody
 The minimum and maximum allowed value of Min at changes
 made by an operator.

MaxMinC Intern
Class Intern
Type Float32
Flags
GraphName MaxminC
Body RtBody

PlcNode Buffer
Class Buffer
Type PlcNode
Flags INVISIBLE
Body DevBody