P_KL8548

IO template for parameterizing a KL8548: 8-channel analog output module 0…10 V. On PLC restart this template configures the terminal with the parameters entered in the Project Builder and then switches to process data mode. This template is based on the function block FB_KL8548. This function block configures only one channel of the KL8548. The corresponding number of function blocks is automatically declared via the Project Builder.

Interface

P_KL8548 1:

VAR_INPUT

iDataOut      : INT;

iDataOut: Analog output value.

VAR_OUTPUT

bAutoManual   : BOOL;
iDataIn       : INT;
udiErrorId    : UDINT;

bAutoManual: Switch position: FALSE = "man". TRUE = "auto".

iDataIn: Position of the control potentiometer.

udiErrorId: contains the command-specific error code of the most recently executed command. See Error codes.

Parameter

bBarGraphEcoMode  : BOOL;
iKBusOffMode      : INT;
iKBusOffValue     : INT;

bBarGraphEcoMode: Bar chart display mode: FALSE: full-scale mode (solid bar), TRUE: ECO mode (only one point).

iKBusOffMode: Behaviour of the terminal output on K-Bus error: 0: Output becomes 0, 1: Output retains the last value, when the PLC stops it changes to 0, 2: Output assumes the value iKBusOffValue, if switch position = "auto". All other inputs are interpreted as "0".

iKBusOffValue: Value, which the output is to assume in the event of a K-Bus error (or PLC stopped) in mode 2.

Development information

Development environment

BACnet Revision

Target system

required supplement

TwinCAT 2.11 R3/x64 from build 2254

n/a

PC/CX

TS8040 | TwinCAT Building Automation from V1.1.0

Version history

Version number

Comments

1.0.0.0

First release