For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Button1

Button1 (FB)

FUNCTION_BLOCK Button1

Short description

Switching element with time program and button.

Representation

Interfaces

Inputs

Name
Data type
Value range
Initial value
Function

xClockchannel

BOOL

Input time program

xButton

BOOL

Input operating button

Outputs

Name
Data type
Value range
Initial value
Function

xQ

BOOL

Enable output

xQET

BOOL

Display operating time extension is active

tET

TIME

Remaining runtime of operating time extension

tTime

TIME

Scaled display from udiTime

udiMinVisu

UDINT

Display of tMinTime for the visualization

udiMaxVisu

UDINT

Display of tMaxTime for the visualization

Setpoints / Parameters

Name
Data type
Value range
Initial value
Function

eManModeB

eMANBIN

eMANBIN.Auto, eMANBIN.ManOff, eMANBIN.ManOn

eMANBIN.Auto

Operating mode of the manual override for the digital output xQ

xButtonVisu

BOOL

FALSE

Function like xButton

xEnClockButton

BOOL

FALSE

Option ‘Enable operating button when time program input is active’

xEnToggle

BOOL

TRUE

Option ‘Blocking change of operating mode’

udiTime

UDINT

120

Time input (absolute limits: 0..7 days) depending on scaling

eTimeScale

eTime

eTime.Minute

Definition of the scaling of the time input (seconds, minutes, hours)

tMinTime

TIME

T#0m

Lower limit for the time input udiTime

tMaxTime

TIME

T#120m

Upper limit for the time input udiTime

Functional description

General

The function block is fundamentally used to set the operating modes night operation (xQ = FALSE) and day operation (xQ = TRUE) depending on the states at the inputs time program (xClockchannel) and operating button (xButton and/or xButtonVisu). The operating behavior is influenced by a total of two configurable options. In the basic configuration (see below for setting the options), the basic functions are available.

Enable output xQ

The enable output xQ always displays the current state of the switching element depending on the inputs and the two options.

Operating time extension display xQET

The display output xQET always displays the active state of the operating time extension.

Remaining runtime of operating time extension tET

The display output tET always displays the current remaining runtime of an active operating time extension. Directly after the first download and before the timer is started for the first time, the value T#0s is always displayed.

Option tEnClockButton

With this option, the button is locked or enabled during the active time program. If the setpoint/parameter tEnClockButton TRUE, then with the buttons (xButton and/or xButtonVisu) when the input is active xClockchannel, the output xQ can be switched off and on.

Option tEnToggle

If the setpoint / parameter tEnToggle TRUE, then in night operation with the buttons (xButton and/or xButtonVisu) the operating time extension can be switched on and off. Otherwise, only starting the operating time extension is possible.

Scaling / display of the time duration udiTime

The display output tTime continuously displays the current value of the setpoint / parameter udiTime in scaled form (eTimeScale) and absolutely limited by tMinTime or tMaxTime to.

Display of the lower time limit udiMinVisu

The display output udiMinVisu continuously displays the current value of the setpoint / parameter tMinTime in scaled form (eTimeScale) and absolutely limited by tMinTime or tMaxTime to.

Display of the lower time limit udiMaxVisu

The display output udiMaxVisu continuously displays the current value of the setpoint / parameter tMaxTime in scaled form (eTimeScale) and absolutely limited by tMinTime or tMaxTime to. CODESYS

InOut:

Scope
Name
Type
Initial

Input

xClockchannel

BOOL

Input

xButton

BOOL

Output

xQ

BOOL

Output

xQET

BOOL

Output

tET

TIME

Output

tTime

TIME

Output

udiMinVisu

UDINT

Output

udiMaxVisu

UDINT

Input Const

tMaxTime

TIME

TIME#120m0s0ms

Input Const

tMinTime

TIME

TIME#0ms

Input Const

eTimeScale

eTime

eTime.Minute

Input Const

udiTime

UDINT

120

Input Const

xEnToggle

BOOL

TRUE

Input Const

xEnClockButton

BOOL

FALSE

Input Const

xButtonVisu

BOOL

FALSE

Input Const

eManModeB

eManBin

eMANBIN.Auto

Last updated