Programming in TwinCAT
KL85xx und KL9309
50
Version: 2.1.0
dwOpt:
For future options.
VAR_OUTPUT
bBusy : BOOL;
bStaSwiAuto : BOOL;
wStaPoti : WORD;
wStaOut : 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.
bStaSwiAuto:
Status of the switch. TRUE = "auto" FALSE = "man".
wStaPoti:
Status of the potentiometer. CCW stop = 0000
hex
= 0
dec
= 0 V, CW stop = 7FFF
hex
= 32767
dec
=
10 V.
wStaOut:
Status of the analog output signal. CCW stop = 0000
hex
= 0
dec
= 0 V, CW stop = 7FFF
hex
= 32767
dec
= 10 V.
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_KL8548InData;
stOutData : ST_KL8548OutData;
stInData:
Process image of the inputs (see
stOutData:
Process image of the outputs (see
4.2.4.2
FB_KL8548Ex
Fig. 30: Function block FB_KL8548Ex
Application
This function block is used to configure the KL8548, 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
.
The standard function of the LEDs cannot be deactivated.
Содержание KL85 Series
Страница 2: ......