Programming
TX1200
27
Version: 1.1
bBusy
is set for as long as the block is active. An error is indicated through
bError
, while the error number
can be read with
iErrorId
.
VAR_INPUT
MP_Address : USINT := 1;
bAddrAuto : BOOL;
bReadAddr : BOOL;
bAddrManual : BOOL;
MP_Serial_Number_IN : MP_Serial_Number;
TMOUT : TIME := t#30s;
strDataKL6771 : DataKL6771;
MP_Address:
the MP address that is to be used for the addressing or for reading the serial number. Valid
values (1...8).
bAddrAuto:
a positive edge starts the function block. The function block halts other MP-Bus communication,
and waits until the time set through
TMOUT
has elapsed for an MP-Bus slave has transmitted its serial
number, for instance in response to pressing a switch. The MP-Bus address that has been configured in the
MP_Address
variable is then transmitted to the slave.
bReadAddr:
a positive edge starts the function block. The function block reads the serial number of the MP-
Bus slave whose address is
MP_Address
.
bAddrManual:
a positive edge starts the function block. The function block addresses the slave that has
serial number
MP_Serial_Number_IN
. The slave's addresses configured with
MP_Address
.
MP_Serial_Number_IN:
serial number of the device (see
).
TMOUT:
time after which automatic addressing is canceled.
strDataKL6771:
the data structure with which the
function block must be linked (see
).
VAR_OUTPUT
bBusy : BOOL;
bError : BOOL;
iErrorId : MP_Error;
MP_Serial_Number_OUT : MP_Serial_Number;
bBusy:
This bit is set for as long as the block is active.
bError:
The output becomes TRUE as soon as an error occurs. The error is described via the variable
iErrorId
.
iErrorId:
The output issues an error code when an error occurs (see
). Simultaneously
bError
is TRUE.
MP_Serial_Number_OUT:
The serial number of the slave that is addressed or interrogated (see
).
Содержание TwinCAT 2 TX1200
Страница 1: ...Manual EN TX1200 TwinCAT 2 PLC Library TcMPBus 2022 06 02 Version 1 1...
Страница 2: ......
Страница 79: ......