Programming

Content

General information

KL6581 - Linking to the System Manager

KL6021-0023 - Linking to the System Manager

KL6581

POUs

Description

FB_KL6581

Main block for the communication with the EnOcean master terminal KL6581

Function

POUs

Description

F_Byte_to_Temp

Converts a byte into a REAL value.

F_Byte_to_TurnSwitch

Converts a hand switch, for example for ventilation (AUTO, 0, I, II, III), into a BOOL array.

Other

POUs

Description

FB_EnOcean_Search

Block recognizes all EnOcean devices within its range and displays them.

FB_Rec_Teach_In

This block indicates if the LRN bit in an EnOcean telegram is set, independent of its EnOcean ID.

FB_Rec_Teach_In_Ex

This block indicates if the LRN bit in an EnOcean telegram is set, independent of its EnOcean ID.

Read

POUs

Description

FB_Rec_1BS

Receives data with ORG telegram 6.Typical EnOcean device: Window contact.

FB_Rec_Generic

Receives all types of EnOcean telegrams.

FB_Rec_RPS_Switch

Receives data with ORG telegram 5. Typical EnOcean device: Buttons.

FB_Rec_RPS_Window_Handle

Receives data with ORG telegram 5.Typical EnOcean device: Window handle.

Send

POUs

Description

FB_Send_Generic

All kinds of EnOcean data telegrams can be sent with this block.

FB_Send_4BS

Sends EnOcean telegrams in the 4BS format.

FB_Send_RPS_Switch

Sends EnOcean telegrams in the format of a button.

FB_Send_RPS_SwitchAuto

This function block sends data such as those from a switch.

Enums

Data types

Description

E_EnOcean_Org

Type of EnOcean telegram.

E_KL6581_Err

Error massage.

Structs

Data types

Description

KL6581_Input

Process image of the inputs.

KL6581_Output

Process image of the outputs.

AR_EnOceanWindow

State of the window.

STR_EnOceanSwitch

State of the buttons.

STR_KL6581

Internal structure.

STR_Teach

Data structure - manufacturer ID, type and function.

STR_Teach_In

Data structure - manufacturer ID, type and profile.

STREnOceanTurnSwitch

State of the rotary-switch on the transmitting-module.

KL6021-0023

POUs

Description

FB_EnOceanReceive

Communication with EnOcean bus terminal KL6021-0023

Read

POUs

Description

FB_EnOceanPTM100

Receives the signals of a PTM100 module.

FB_EnOceanPTM200

Receives the signals of a PTM200 module.

FB_EnOceanSTM100

Receives the signals of a STM100 module (obsolete).

FB_EnOceanSTM100Generic

Receives the signals of a STM100 module.

FB_EnOceanSTM250

Receives the signals of a STM250 module.

Enums

Data types

Description

E_EnOceanRotarySwitch

State of the rotary-switch on the transmitting-module.

E_EnOceanSensorType

Sensor type.

Structs

Data types

Description

ST_EnOceanInData

Process image of the inputs.

ST_EnOceanOutData

Process image of the outputs.

ST_EnOceanReceivedData

Internal structure.