Read Pdi Data As Record Data - Leuze electronic MD 748i Connecting And Operating Instructions

Profinet io-link master
Table of Contents

Advertisement

Figure 54: Monitor and Modify IO Data via Variable Table
IB 0-3 were input data from IO-Link Status module (Slot 9). IB 0 was IO-Link Active, IB 1 was PDI Valid,
IB 2 was Auxiliary Input, and IB 3 was IO-Link Error. According to the current value of IB 0, Ports 1-4
were active. IB 1 showed the PDI data of Ports 1-3 were valid. Port 4 was an output module therefore;
the PDI valid bit was zero. IB 2 showed that the auxiliary input pins of Port 1-4 were high. No errors were
detected so IB 3 was zero.
The PDI data of Port 1 was 0x090E (IW 5). The PDI data of Port 2 was 0x03F6 (IW 7).
In this example, we used wires to connect the C/Q pin and auxiliary input pin of Port 3 and Port 4 together,
creating a testing loopback. Then we changed QB 3 to 0x01, which set the C/Q Pin of Port 4 and both
auxiliary input pins of Port 3 and 4 to high. IB 9 showed the status of the C/Q pin of Port 3 was high
(0x01). The high status of auxiliary input pins of Ports 3 and 4 was reflected in IB 2.
To test digital I/O ports, we created testing loopbacks by connecting DIO 1 to 2, and DIO 3 to 4 with
wires. Then we changed QB 0 to 2#0000_1010, which set the DIO 2 and DIO 4 to high. IB 4 showed the
input status of DIO 1-4 were high (2#0000_1111).
Slot 5-8 (Port 5-8) and Slot 11 were open. They could be used by another IO controller via a second
application relationship.
12.2

Read PDI Data as Record Data

For IO modules that have input data, the Port Qualifier and PDI data can also be read by using the
SFB52 RDREC (read record). The following table shows the available record read indexes for the IO-
Link Master.
Available Record Read Index for MD 748I-11-42/L5-2222
100..131
200..231
300..331
400..431
500
600
Leuze electronic
Index
1-32 byte of PDI data from an IO-Link Port module in Slot 1
1-32 byte of PDI data from an IO-Link Port module in Slot 2
1-32 byte of PDI data from an IO-Link Port module in Slot 3
1-32 byte of PDI data from an IO-Link Port module in Slot 4
1-4 byte of PDI data from a Port Status module in Slot 11
1-4 byte of PDI data from a Port Status module in Slot 12
Description
MD 748i / MD 248i
12 PROFINET IO Reference Information
83

Advertisement

Table of Contents
loading

This manual is also suitable for:

Md 248i

Table of Contents