IO-Link master with EtherCAT interface DataLine 4 ports IP 65 / IP 66 / IP 67
52
Solution:
The IODD of the DV2500 shows the structure of the IO-Link process value (
→ e.g. LED
activity). The buzzer will be switched using bit 40 of the process value (OFF = 0, ON = 1).
To switch the buzzer:
1. Read the current process value (
→
Example: Read IO-Link process data (operating mode
"IO-Link")
(
2. Set bit 40 of the read value to 1.
3. Write the process value to the IO-Link device.
Example:
Read process value:
0x0000 0000 004D = 0b0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0100 1101
New process value:
0b0000 000
1
0000 0000 0000 0000 0000 0000 0000 0000 0100 1101 = 0x0100 0000 004D
•
Request:
{
"code":"request",
"cid":10,
"adr":"iolinkmaster/port[2]/iolinkdevice/pdout/setdata",
"data":{"newvalue":"01000000004D"}
}
•
Response:
{
"cid":10,
"code":200
}
>
Example: Writing digital output (operating mode "DO")
59803
Task:
Set the output value of the IO-Link devices at IO-Link Port X1 to "ON". The operating mode of
the IO-Link port is "Digital Output (DO)".
Solution:
Write the value 1 to data point pdout. The value has to be written as hexadecimal value with
a length of 1 byte (OFF = "00", ON = "01").
•
Request:
{
"code":"request",
"cid":10,
"adr":"iolinkmaster/port[1]/iolinkdevice/pdout/setdata",
"data":{"newvalue":"01"}
}
•
Response:
{
"cid":10,
"code":200
}
>
Example: Reading digital input (operating mode "DI")
59802
Task:
Read the current input value of the IO-Link device at IO-Link port X5. The operating mode of the
IO-Link port is "Digital Intput (DI)".
Solution:
Read the value of data point pdin. The value will be returned as hexadecimal value with a
length of 1 byte (OFF = "00", ON = "01"').