EIB_8BIT_SIGN_SEND_EX

EIB_8BIT_SIGN_SEND_EX 1:

This function block sends a 8-bit EIB value to the set group address. An IEC61131-3 INT value is available as input value. Scaling_Mode can be used to scale the input data value. The data can be sent in Manual, Polling or OnChange mode (iMode).

EIB_8BIT_SIGN_SEND_EX 2: Inputs

VAR_INPUT
  bStart         : BOOL;
  iMode          : INT;
  CyclePolling   : TIME := t#500ms;
  iData          : INT;
  Scaling_Mode   : INT;
  MinSendTime    : TIME := t#1s;
  Group_Address  : EIB_GROUP_ADDR;
  str_Rec        : EIB_REC;
  bEnableReadReq : BOOL;
END_VAR

Name

Type

Description

bStart

BOOL

The function block is activated by a positive edge at this input.

iMode

INT

0 - With a positive edge at bStart, an EIB telegram is sent. If the output bBusy is FALSE again, the command is processed.
1 - Polling mode: If bStart is TRUE, EIB telegrams are sent at intervals of CyclePolling.
2 - OnChange mode: If bStart is TRUE, an EIB telegram is automatically sent when the data changes. MinSendTime can be used to parameterize the minimum interval between two EIB messages, in order to avoid excessive EIB network load.
3 - OnChangePolling mode: If bStart is TRUE, EIB telegrams are sent at intervals of CyclePolling or automatically when the data changes. The minimum interval between two EIB messages is set with MinSendTime.

CyclePolling

TIME

Polling time for iMode = 1 (polling mode). The minimum time is 200 ms.

iData

INT

Data to be sent. Value range depending on Scaling_Mode.

Scaling_Mode

INT

0 - 0...100 [%]
1 - 0...360 [°]
2 - 0...255

MinSendTime

TIME

Minimum interval time, which has to elapse before a telegram is sent in OnChange mode. The minimum time is 200 ms.

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.

bEnableReadReq

BOOL

Enables the execution of read commands.

EIB_8BIT_SIGN_SEND_EX 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.

OnChange mode:

EIB_8BIT_SIGN_SEND_EX 4:

Requirements

Development environment

PLC library to include

TwinCAT from v3.1.4020.14

Tc2_EIB from 3.3.4.0