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 |
|
| 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
Specifies the current value of the high limit.
Specifies the current value of the input signal.
Specifies the current value of the low limit.
if In < Min and Min < Max ActVal = Min
if In > Max ActVal =Max
else ActVal = In
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.
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.
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.
The minimum and maximum allowed value of Max at changes
made by an operator.
The minimum and maximum allowed value of Min at changes
made by an operator.