![Beckhoff KL85 Series Documentation Download Page 42](http://html1.mh-extra.com/html/beckhoff/kl85-series/kl85-series_documentation_2719270042.webp)
Programming in TwinCAT
KL85xx und KL9309
42
Version: 2.1.0
byDisCh:
Configuration: Disablement of the
of the LEDs. The LEDs can be set by
the PLC. Bit 0 = LED 1, ... , bit 7 = LED 8. 255
dec
(FF
hex
of all LEDs.
These can then be set from the PLC via
byLEDGn
or
byLEDYe
.
byKBusOff:
Configuration: Reaction of the outputs in the event of a K-bus error. The respective output is set
with bit 0 = output 1,…, bit 7 =output 8 in the event of a K-bus error (or PLC stopped) provided that the
switch is set to "auto". Note: 2 outputs are assigned to a channel and only one output may be activated per
channel. If the value 255
dec
(FF
hex
) is transferred, for example, no output is set when the PLC stops.
byOutMode:
Configuration: The outputs assigned to a channel can be set in 2 variants. Bit 0 = FALSE =
channel 1 output mode 1, bit 0 = TRUE = channel 1 output mode 2,…, bit 3 = FALSE = channel 4 output
mode 1, bit 3 = TRUE = channel 4 output mode 2.
Output mode 1: Output 1 is switched if the three-step switch is in position 1; output 2 is switched if the three-
step switch is in position 2
Output mode 2: Output 1 is switched if the three-step switch is in position 1 or position 2; output 2 is switched
if the three-step switch is in position 2, following a delay which can be set with
byTurnOnDelayChx.
byTurnOnDelayCh1:
Configuration: Switching time for channel 1 output mode 2. 1 bit = 10 ms -> with
default 255
dec
, FF
hex
the second output is switched on after 2550 ms if the three-step switch is in position 2.
byTurnOnDelayCh2:
Configuration: Switching time for channel 2 output mode 2. 1 bit = 10 ms -> with
default 255
dec
, FF
hex
the second output is switched on after 2550 ms if the three-step switch is in position 2.
byTurnOnDelayCh3:
Configuration: Switching time for channel 3 output mode 2. 1 bit = 10 ms -> with
default 255
dec
, FF
hex
the second output is switched on after 2550 ms if the three-step switch is in position 2.
byTurnOnDelayCh4:
Configuration: Switching time for channel 4 output mode 2. 1 bit = 10 ms -> with
default 255
dec
, FF
hex
the second output is switched on after 2550 ms if the three-step switch is in position 2.
byOut:
Bit 0 = TRUE, ... , Bit 7 = TRUE sets the respective output, provided the switch is set to "auto". All
outputs are set with 255
dec
(FF
hex
function block is available for preparing
the signals for the graphic programming languages.
byLEDGn:
Bit 0 = TRUE,..., bit 7 = TRUE sets the green LEDs, provided that the
of the LEDs has been disabled with
byDisCh
. All green LEDs are set with 255
dec
(FF
hex
). The
function block is available for preparing the signals for the graphic programming
languages.
byLEDYe:
Bit 0 = TRUE,..., bit 7 = TRUE sets the yellow LEDs, provided that the
of the LEDs has been disabled with
byDisCh
. All yellow LEDs are set with 255
dec
(FF
hex
). The
function block is available for preparing the signals for the graphic programming
languages.
dwOpt:
For future options.
VAR_OUTPUT
bBusy : BOOL;
byStatSwiAuto : BYTE;
byStatSwi : BYTE;
byStatOut : BYTE;
bErr : BOOL;
udiErrID : UDINT;
bBusy:
bBusy
is TRUE as long as the configuration is being written (start with
bExecCfg
). Note that the
inputs are not updated during this time.
byStatSwiAuto:
Status of the "auto" switch. Bit 0 = channel 1, ... , bit 3 = channel 4. The
function block is available for preparing the signals for the graphic programming
languages.
byStatSwi:
Status of the three-step switch. Bit 0 = channel 1 position 1, bit 1 = channel 1 position 2 ... , bit 7
= channel 4 position 2. The
function block is available for preparing the signals
for the graphic programming languages.
Summary of Contents for KL85 Series
Page 2: ......