For the complete documentation index, see llms.txt. This page is also available as Markdown.

EditWORD

EditWORD (FB)

FUNCTION_BLOCK EditWORD

Short description

Input of a numeric value Typical application: input of a setpoint temperature

Representation

Interfaces

Outputs

Name
Data type
Value range
Initial value
Function

wOut

WORD

Numerical output value

Setpoints / Parameters

Name
Data type
Value range
Initial value
Function

wSetPoint

WORD

0

Numerical input value

Functional description

General

This function block is used to transfer a numerical input value wSetPoint and directly transfer it to the numerical output value wOut.

Visualization

Suitable visualization element from the HVACV Visu Library: EditWord

Representation

Interfaces visualization element

Name
Data type
Type
Initial value
Function

wValue

WORD

VAR_IN_OUT

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

sUnit

STRING

VAR_INPUT

Enter the unit in string format, e.g. ‘°C’ or ‘%’

wMinInputVisu

WORD

VAR_INPUT

0

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

wMaxInputVisu

WORD

VAR_INPUT

1000

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

sDialogTitle

STRING

VAR_INPUT

Enter the title in string format e.g.: ‘Input room temperature’ - appears in the numpad during input.

iFieldSizeL

INT

VAR_INPUT

0

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

iFieldSizeR

INT

VAR_INPUT

0

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

Note: VAR_IN_OUT interfaces must be assigned; VAR_INPUT is optional.

CODESYS

InOut:

Scope
Name
Type
Initial

Input Const

wSetPoint

WORD

0

Output

wOut

WORD

Last updated