Programming
TX1200
26
Version: 1.1
VAR_INPUT
KL6771_IN : ARRAY [0..11] OF BYTE;
KL6771_IN:
Is linked with the input process image of the MP-Bus master terminal.
VAR_OUTPUT
KL6771_OUT : ARRAY [0..11] OF BYTE;
strDataKL6771 : DataKL6771;
bError : BOOL;
ErrorCode : MP_Error;
BusLoad : INT := -1;
KL6771_OUT:
is linked with the MP-Bus master terminal's output process image.
strDataKL6771:
data structure, which is linked with the different MP-Bus function blocks and includes the
communication with the KL6771 function block (see
).
bError:
the output becomes TRUE as soon as an error occurs. This error is described via the
ErrorCode
variable.
ErrorCode:
this output outputs an error code in the event of an error (see
).
bError
goes
TRUE at the same time.
BusLoad:
MP-Bus load in percent.
6.2.2
MP_Addressing
This function block allows an MP-Bus slave to be addressed. It is also possible to use this function block to
read the serial number of the slave.
The slave address that the slave is to receive when addressed, or of the bus device whose serial number is
to be read, is passed in
MP_Address
. The serial number is read out on a rising edge of
bReadAddr
. It is
output through
MP_Serial_Numer_Out
. A rising edge of
bAddrAuto
addresses a slave whose address is
MP_Address
. The block waits for the time set in
TMOUT
for the transmission of the slave with its serial
number. Transmission of the serial number is initiated differently from one slave to another. Please see the
documentation for the MP-Bus device for how the serial number can be sent (in most cases there is a switch
on the drive which will trigger this action when pressed). No telegrams are sent to the slaves during the time
specified by
TMOUT
.
A rising edge at
bAddrManual
initiates manual addressing. This requires the serial number of the drive to be
stored in
MP_Serial_Number_In
. The serial number of the slave can be found on an adhesive label on the
drive.
Example: 00234-00016-002-031 The following must be entered in the
MP_Serial_Numer_IN
variable:
YearAndWeek = 234
DayAndNumber = 16
DeviceFamily = 2
TestStation = 31
FamilySuffix = is not evaluated, and should therefore be ignored.
Содержание TwinCAT 2 TX1200
Страница 1: ...Manual EN TX1200 TwinCAT 2 PLC Library TcMPBus 2022 06 02 Version 1 1...
Страница 2: ......
Страница 79: ......