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

ClockSlave32

ClockSlave32 (FB)

FUNCTION_BLOCK ClockSlave32 EXTENDS Uhr_Base IMPLEMENTS IUhr

Short description

Slave function block for a clock system with 32 weekly clocks, 30 holidays, 10 vacation periods, and 5 special switching times.

Representation

Functional description

General

This function block serves as a slave function block for a clock system with 32 weekly clocks, 30 holidays, 10 vacation periods, and 5 special switching times. It allows the individual activation / deactivation of the 32 weekly clock channels, the holiday channel, the vacation channel, and the special switching times channel (FALSE = deactivation, TRUE = activation). The connection between the master function block and the slave function blocks is established via the output itfToClockSlave32 or the inputs itfFromClockMaster32 is established. The inputs sTitle or sLine1 allow the designation of the title or line 1 in the visualization.

State of the slave channel xActive

The output xActive (FALSE = not active, TRUE = active) is determined by the current states of the assigned weekly clock channels (xClockCH_01 to xClockCH_32 = TRUE) of the assigned holiday channel (xPublicHoliday = TRUE), the assigned vacation channel (xHoliday = TRUE) or the assigned special switching times channel (xSwitchTimeS = TRUE) as follows (Note: channels that are not assigned automatically assume the state FALSE):

Weekly clock channels

Holiday channel

Vacation channel

Special switching times channel

Central activation (Master)

Central deactivation (Master)

xActive

Notes

FALSE

FALSE

FALSE

FALSE

FALSE

FALSE

FALSE

Normal operation - Off

TRUE

FALSE

FALSE

FALSE

FALSE

FALSE

TRUE

Normal operation - On

X

TRUE

FALSE

FALSE

FALSE

FALSE

FALSE

Holiday operation - On

X

FALSE

TRUE

FALSE

FALSE

FALSE

FALSE

Vacation operation - On

X

X

X

TRUE

FALSE

FALSE

TRUE

Special switching times operation - On

X

X

X

X

TRUE

FALSE

TRUE

Central activation ( Master )

X

X

X

X

X

TRUE

FALSE

Central deactivation ( Master )

Legend: X = any

Central cancellation of all assignments xResetAssignment

This setpoint / parameter is used to centrally cancel all assignments made in the slave function block.

Visualization

Representation

Interfaces visualization element

Name
Data type
Type
Initial value
Function

FB_ClockSlave32

ClockSlave32

VAR_IN_OUT

Enter FB ClockSlave32 here, e.g. PRG.ClockSlave32

FB_ClockMaster32

ClockMaster32

VAR_IN_OUT

Enter the corresponding(!) FB ClockMaster32 here, e.g. PRG.ClockMaster32

BMS_Active

BOOL

VAR_INPUT

BMS (Building Management System) GLT (building management technology). If BMS_Active = TRUE, input / editing of the clocks is disabled, since they can then only be set via the BMS. Time values can then only be viewed.

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

CODESYS

InOut:

Scope
Name
Type
Initial
Inherited from

Input

itfFromClockMaster32

IUhrProtocol

Clock_Base

Input

sTitle

STRING

Input

sLine1

STRING

Input

sLine2

STRING

Input Const

ClockSlvPara

stSlvClockData

Input Const

xSwitchTimeS

BOOL

Input Const

xPublicHoliday

BOOL

Input Const

xHoliday

BOOL

Input Const

xClockCH_32

BOOL

Input Const

xClockCH_31

BOOL

Input Const

xClockCH_30

BOOL

Input Const

xClockCH_29

BOOL

Input Const

xClockCH_28

BOOL

Input Const

xClockCH_27

BOOL

Input Const

xClockCH_26

BOOL

Input Const

xClockCH_25

BOOL

Input Const

xClockCH_24

BOOL

Input Const

xClockCH_23

BOOL

Input Const

xClockCH_22

BOOL

Input Const

xClockCH_21

BOOL

Input Const

xClockCH_20

BOOL

Input Const

xClockCH_19

BOOL

Input Const

xClockCH_18

BOOL

Input Const

xClockCH_17

BOOL

Input Const

xClockCH_16

BOOL

Input Const

xClockCH_15

BOOL

Input Const

xClockCH_14

BOOL

Input Const

xClockCH_13

BOOL

Input Const

xClockCH_12

BOOL

Input Const

xClockCH_11

BOOL

Input Const

xClockCH_10

BOOL

Input Const

xClockCH_09

BOOL

Input Const

xClockCH_08

BOOL

Input Const

xClockCH_07

BOOL

Input Const

xClockCH_06

BOOL

Input Const

xClockCH_05

BOOL

Input Const

xClockCH_04

BOOL

Input Const

xClockCH_03

BOOL

Input Const

xClockCH_02

BOOL

Input Const

xClockCH_01

BOOL

Input Const

xResetAssignment

BOOL

FALSE

Output

xClockActive

BOOL

Output

todTodayTON

TOD

Output

todTodayTOF

TOD

Last updated