![Beckhoff KL85 Series Скачать руководство пользователя страница 40](http://html1.mh-extra.com/html/beckhoff/kl85-series/kl85-series_documentation_2719270040.webp)
Programming in TwinCAT
KL85xx und KL9309
40
Version: 2.1.0
bExecCfg:
The configurations
wDisCh
,
wSetCol
,
wInv
,
wBiCol
and
eKBusOff
are written to the terminals
when a positive edge is detected.
bBusy
goes TRUE. Note that the inputs are not updated during this time.
wDisCh:
Configuration: Disablement of the
of the LEDs. The LEDs can be set by
the PLC. Bit 0 = LED 1, ... , bit 15 = LED 16. 65535
dec
(FFFF
hex
) deactivates the
all LEDs. These can then be set from the PLC via
wLEDGn
or
wLEDRd
.
wSetCol:
Configuration: Using this variable you can define the color for the status LEDs of the individual
channels (0=green or 1=red). With 65535
dec
(FFFF
hex
) all LEDs turn red if the input is occupied.
wInv:
Configuration: Using this variable you can invert the display of the status LEDs of the individual
channels. The process data (input signals) transmitted to the PLC are not affected by this.
wBiCol:
Configuration: Using this variable you can switch the display of the status LEDs of the individual
channels between two colors. Input unoccupied - LED is red, input occupied - LED is green, or vice versa if
wInv
is active.
eKBusOff:
Configuration: In the event of a K-bus error all LEDs that are set via the PLC turn off, unless this
contains a value other than 00
bin
disabled with
wDisCh
.
dwOpt:
For future options.
wLEDGn:
Bit 0 = TRUE,..., bit 15 =TRUE sets the green LEDs, provided that the
the LED has been disabled with
wDisCh
. All green LEDs are set with 65535
dec
(FFFF
hex
). The
function block is available for preparing the signals for the graphic
programming languages.
wLEDRd:
Bit 0 = TRUE,..., bit 15 =TRUE sets the red LEDs, provided that the
of
the LED has been disabled with
wDisCh
. All red LEDs are set with 65535
dec
(FFFF
hex
). The
function block is available for preparing the signals for the graphic
programming languages.
VAR_OUTPUT
bBusy : BOOL;
wStaIn : WORD;
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.
wStaIn:
Status of the digital input signals. Bit 0 = input 1,…, bit 15 = input 16. The
function block is available for preparing the signals for the graphic programming languages.
bErr:
The
bErr
or output goes TRUE as soon as an error occurs. This error is described via the
udiErrID
variable.
udiErrID:
In the event of an error the output issues an error code (see
).
bError
goes
TRUE at the same time.
VAR_IN_OUT
stInData : ST_KL8519InData;
stOutData : ST_KL8519OutData;
stInData:
Process image of the inputs (see
stOutData:
Process image of the outputs (see
Содержание KL85 Series
Страница 2: ......