EIB_ALL_DATA_TYPES_SEND

EIB_ALL_DATA_TYPES_SEND 1:

This function block sends a freely selectable EIB value to the set group address. An IEC61131-3 byte ARRAY variable is available as input value. The data are sent depending on the set mode.

EIB_ALL_DATA_TYPES_SEND 2: Inputs

VAR_INPUT
  bStart        : BOOL;
  iMode         : INT;
  CyclePolling  : TIME := t#100ms;
  DATA          : ARRAY [1..14] OF BYTE;
  EIB_Data_Len  : USINT := 1;
  PRIORITY      : EIB_PRIORITY := EIB_PRIORITY_LOW;
  MinSendTime   : TIME := t#1s;
  Group_Address : EIB_GROUP_ADDR;
  str_Rec       : EIB_REC;
  bReadCommand  : BOOL;
END_VAR

Name

Type

Description

bStart

BOOL

If the mode is set to 0, an EIB telegram with positive edge is sent to bStart.

iMode

INT

0 - Manual (Fig. 1)
1 - Polling (Fig. 2)
2 - OnChange (Fig. 3)

CyclePolling

TIME

If mode 1 is selected, an EIB telegram is sent at the set time, even if the data values have not changed.

DATA

ARRAY OF BYTE

EIB data values.

EIB_Data_Len

USINT

Length of EIB data,
EIB values >=) 1 byte calculate the length +1,
EIB values < 1 byte set length equal to 1

PRIORITY

EIB_PRIORITY

EIB priority, Low, High, Alarm.

MinSendTime

TIME

If mode 2 is selected, data are only transferred in the event of a change. MinSendTime defines the minimum time between two EIB telegrams.

Group_Address

EIB_GROUP_ADDR

Group address to which the data are sent. This group address must be entered in the filters!

str_Rec

EIB_REC

The data structure with which the function block KL6301() must be linked.

bReadCommand

BOOL

A response can be sent to an EIB READ COMMAND.

EIB_ALL_DATA_TYPES_SEND 3: Outputs

VAR_OUTPUT
  bBusy    : BOOL;
  bError   : BOOL;
  iErrorID : EIB_ERROR_CODE;
END_VAR

Name

Type

Description

bBusy

BOOL

The function block is active. Wait for new functions, until bBusy is FALSE again.

bError

BOOL

This output goes TRUE as soon as an error occurs. This error is described via the iErrorID variable.

iErrorID

EIB_ERROR_CODE

This output outputs an error code in the event of an error. bError goes TRUE at the same time.

Transfer mode

Mode 0 manual

EIB_ALL_DATA_TYPES_SEND 4:

Figure 1

Mode 1 Polling

EIB_ALL_DATA_TYPES_SEND 5:

Figure 2

Mode 2 OnChange

EIB_ALL_DATA_TYPES_SEND 6:

Abbildung 3

Requirements

Development environment

required TC3 PLC library

TwinCAT from v3.1.4020.14

Tc2_EIB from 3.3.4.0