![Beckhoff KL85 Series Скачать руководство пользователя страница 49](http://html1.mh-extra.com/html/beckhoff/kl85-series/kl85-series_documentation_2719270049.webp)
Programming in TwinCAT
KL85xx und KL9309
49
Version: 2.1.0
4.2.4
KL8548
Function blocks
Description
Function block for configuration of the KL8548, for reading out the digital signals and
for setting the outputs/LEDs.
4.2.4.1
FB_KL8548
Fig. 29: Function block FB_KL8548
Application
This function block is used to configure the
, to read out the digital signals and to set the
outputs/LEDs.
The function block must be called once per cycle.
The parameters are transferred to the terminal with a positive edge on
bExecCfg
.
of the LEDs cannot be deactivated.
VAR_INPUT
bEn : BOOL;
bExecCfg : BOOL;
bDisWatchdog : BOOL;
bEnEcoMode : BOOL;
bEnPwrOnVal : BOOL;
wPwrOnVal : WORD;
wOut : WORD;
dwOpt : DWORD;
bEn:
The function block is enabled by setting
bEn
to TRUE in the PLC program. With
bEn
= FALSE the
execution of the function block will be stopped and all outputs reset.
bExecCfg:
The configurations
bDisWatchdog
,
bEnEcoMode
,
bEnPwrOnVal
and
wPwrOnVal
are written to
the terminals when a positive edge is encountered.
bBusy
goes TRUE. Note that the inputs are not updated
during this time.
bDisWatchdog:
Configuration: If False the last value of
wStaOut
remains unchanged in the event of a K-bus
error (the value is set to 0 if the PLC stops). If TRUE and
bEnPwrOnVal
= FALSE, the output goes to 0 in the
event of a K-bus error (or PLC stopped). If TRUE and
bEnPwrOnVal
= TRUE, the output adopts the value of
wPwrOnVal
in the event of a K-bus error (or PLC stopped).
bEnEcoMode:
Configuration:
Scale Mode.
bEnPwrOnVal:
Configuration: TRUE: In the event of a K-bus error (or PLC stopped), the analog output is
set to the value of
wPowerOnValue
if
bDisWatchdog
= TRUE.
wPwrOnVal:
Configuration: Value that the output is to adopt in the event of a K-bus error (or PLC stopped).
wOut:
Value of the analog output signal, provided that the switch is set to "auto". 0 V = 0000
hex
= 0
dec
, 10 V =
7FFF
hex
= 32767
dec
. If the switch is set to "man" the value of the potentiometer is output.
Содержание KL85 Series
Страница 2: ......