KL6771

KL6771 1:

This function block takes care of communication with the KL6771 MP-Bus master terminal. The KL6771 is configured with this function block, and data exchange with the MP network is started.

KL6771 2:

Restrictions

  • Only one call per instance
  • Call must be made once per PLC cycle
  • Instance must be called in the same PLC task as the send and receive blocks assigned to it

KL6771 3: Inputs

VAR_INPUT
  KL6771_IN : ARRAY [0..11] OF BYTE;
END_VAR

Name

Type

Description

KL6771_IN

ARRAY OF BYTE

Is linked with the MP-Bus master terminal's input process image.

KL6771 4: Outputs

VAR_OUTPUT
  KL6771_OUT    : ARRAY [0..11] OF BYTE;
  strDataKL6771 : DataKL6771;
  bError        : BOOL;
  ErrorCode     : MP_Error;
  BusLoad       : INT := -1;
END_VAR

Name

Type

Description

KL6771_OUT

ARRAY OF BYTE

Is linked with the MP-Bus master terminal's output process image.

strDataKL6771

DataKL6771

A data structure that is linked with the various MP-Bus function blocks, and which contains communication with the KL6771 function block.

bError

BOOL

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

ErrorCode

MP_ERROR

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

BusLoad

INT

MP-Bus load in percent.

Requirements

Development environment

required TC3 PLC library

TwinCAT from v3.1.4020.14

Tc2_MPBus from 3.3.5.0