EditUDINT

EditUDINT (FB)

FUNCTION_BLOCK EditUDINT

Short description

Input of a numeric value Typical application: Input of a target temperature

Representation

Interfaces

Outputs

Name
Data type
Value range
Initial value
Function

udiOut

UDINT

Numeric output value

Setpoints / parameters

Name
Data type
Value range
Initial value
Function

rSetPoint

UDINT

0

Numeric input value

Function description

General

This function block is used to pass a numeric input value udiSetPoint and to directly transfer it to the numeric output value udiOut.

circle-exclamation

Visualization

Matching visualization element from the HVACV Visu Library: EditUdint

Representation

Interfaces Visu-Element

Name
Data type
Type
Initial value
Function

udiValue

UDINT

VAR_IN_OUT

Enter numeric input value here e.g. EditReal.rSetPoint

sUnit

STRING

VAR_INPUT

Enter unit as a string format e.g. '°C' or '%'

rMinInputVisu

UDINT

VAR_INPUT

0

Min input that appears on the numpad and lights up red when value is undercut. Input is then not possible.

rMaxInputVisu

UDINT

VAR_INPUT

1000

Max input that appears on the numpad and lights up red when value is exceeded. Input is then not possible.

sDialogTitle

STRING

VAR_INPUT

Enter title as a string format e.g.: 'Enter room temperature' - appears on the numpad during input.

iFieldSizeL

INT

VAR_INPUT

0

Field enlarges by the number of entered pixels to the left. Needed to display long numbers or units.

iFieldSizeR

INT

VAR_INPUT

0

Field enlarges by the number of entered pixels to the right. Needed to display long numbers or units.

circle-info

Note: VAR_IN_OUT interfaces must be assigned, VAR_INPUT are optional.

CODESYS

InOut:

Scope
Name
Type
Initial

Input Const

udiSetPoint

UDINT

0

Output

udiOut

UDINT

Last updated