EditPoti (FB)

FUNCTION_BLOCK EditPoti

Short Description

Setpoint generator with edge-controlled increase / decrease of the setpoint.
The increment and the absolute minimum/maximum limit values are adjustable.
Typical use: Individual adjustment of a base temperature.

Portrayal

../_images/EditPoti_FB.png

Interfaces

Outputs

Name

Datatype

Range

Init-Value

Function

rOut REAL    

Analog - output

Setpoints / Parameters

Name

Datatype

Range

Init-Value

Function

xButtonUp BOOL   FALSE

Increase the setpoint

xButtonDown BOOL   FALSE

Decrease the setpoint

rJumpValue REAL > 0 0.2

Increment

rSetPointMin REAL   -3.0

Absolute minimum value

rSetPointMax REAL   3.0

Absolute maximum value

Functional Description

General

This function block is used to generate a setpoint value at the output rOut.
Each rising edge at the setpoint / parameter xButtonUp increases the output rOut by the increment rJumpValue.
Each rising edge at the setpoint / parameter xButtonDown reduces the output rOut by the increment rJumpValue.
The output rOut is limited to the range between absolute minimum value rSetPointMin and the absolute maximum value rSetPointMax.

Adjustment of the increment rJumpValue

The increment rJumpValue may only have values greater than 0.
Values smaller than 0 are automatically reset to 0.

Einstellung des Wertebreichs rSetPointMin und rSetPointMax

Es gilt: rSetPointMin <= rSetPointMax
Es gilt: rSetPointMin = rSetPointMax = rOut
Wird eine Eingabe gemacht, bei der obere Regeln nicht beachtet werden, so wird automatisch rSetPointMin = rSetPointMax gesetzt.

Visualization




Information

Element

Authors

Datum Version

Notes

Function

Adam Bartod 09.2016 1.0

Initial version

Programming

Adam Bartod 09.2016 1.0

Initial version

Test Jochen Reu 10.2017 1.0

Initial version

Documentation

Jochen Reu 10.2017 1.0

Initial version

Documentation

Lukas Pfänder 11.2017 0.1.3.0 Revision

Codesys

InOut:
Scope Name Type Initial Comment
Input rSetPointMax REAL 3.0

Absolute maximum value

rSetPointMin REAL -3.0

Absolute minimum value

rJumpValue REAL 0.2

Increment

xButtonDown BOOL FALSE

Decrease the setpoint

xButtonUp BOOL FALSE

Increase the setpoint

Output rOut REAL  

Analog - output