P_KL8528

IO template for parameterizing a KL8528: 8-channel digital output module. 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_KL8528.

Interface

P_KL8528 1:

VAR_INPUT

bOut01 .. bOut08                     : BOOL;
bLEDOutGreen01 .. bLEDOutGreen08     : BOOL;
bLEDOutYellow01 .. bLEDOutYellow08   : BOOL;

bOut01 .. bOut04: Control outputs channel 1 to 8.

bLEDOutGreen01 .. bLEDOutGreen08: Control of the green LEDs channels 1 to 8, if switching of the LED from the PLC via the respective parameter bLEDModePLC01 to bLEDModePLC08 is enabled.

bLEDOutYellow01 .. bLEDOutYellow08: Control of the yellow LEDs channels 1 to 8, if switching of the LED from the PLC via the respective parameter bLEDModePLC01 to bLEDModePLC08 is enabled.

VAR_OUTPUT

bAutoManualChannel01 .. bAutoManualChannel04 : BOOL;
bOnOffChannel01 .. bOnOffChannel04           : BOOL;
udiErrorId                                   : UDINT;

bAutoManualChannel01 .. bAutoManualChannel04: Status auto/manual selector switch channel 1 to 8: FALSE: Switch not set to "auto", TRUE: Switch is set to "auto".

bOnOffChannel01 .. bOnOffChannel08: Status auto/manual selector switch channel 1 to 8: FALSE: Switch not set to "on", TRUE: Switch set to "on".

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

Parameter

bLEDModePLC01 .. bLEDModePLC08                 : BOOL;
bKBusOffModeChannel01 .. bKBusOffModeChannel08 : BOOL;

bLEDModePLC01 .. bLEDModePLC08: If one of these parameters is set to TRUE, the standard function for the respective LED is deselected. That is, it is no longer influenced by the respective signal stage, but directly via the inputs bLEDOutGreen01 to bLEDOutGreen08 for the green colour scheme and bLEDOutYellow01 to bLEDOutYellow08 for the yellow colour scheme. It is possible to set both colours simultaneously. If the parameter is FALSE, the following applies: step not active = yellow, step active = green.

bKBusOffModeChannel01 .. bKBusOffModeChannel08: Output behaviour on K-bus error. FALSE: Output not set, TRUE: Output set, if switch set = "auto".

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