IO-Link master with EtherCAT interface DataLine 4 ports IP 65 / IP 66 / IP 67
51
>
9.2.10
IO-Link ports: Configuring data transfer to LR AGENT or LR
SMARTOBSERVER
59795
Substructure:
iolinkmaster/port[n]
(n = 1...4).
Available data points:
Name
Description
Access
../senddatatosmob
Process data to LR AGENT or LR SMARTOBSERVER
rw
rw ... read and write
>
9.2.11
IO-Link ports: Reading / writing process data
61156
Substructure:
iolinkmaster/port[n]
(n = 1...4)
Available data points:
Name
Description
Access
../pin2in
Value of the digital input on pin 2 of the IO-Link port
r
../iolinkdevice/pdin
Value of the IO-Link input on pin 4 of the IO-Link port
r
../iolinkdevice/pdout
Value of the IO-Link output on pin 4 of the IO-Link port
rw*
r ... read only
rw ... read and write
*... can only be changed if the fieldbus PLC is not in RUNNING state
>
Example: Read IO-Link process data (operating mode "IO-Link")
33842
Task
: Read the current measured value of the ifm temperature sensor TN2531 at IO-Link port X02
Solution:
Read the data point for the process input data with the
getdata
service.
•
Request:
{
"code":"request",
"cid":4711,
"adr":"/iolinkmaster/port[2]/iolinkdevice/pdin/getdata"
}
•
Response:
{
"cid":4711,
"data":{"value": "03C9"},
"code":200
}
The return value is given in hexadecimal format. Besides the temperature value the return value
comprises additional information (
→ IO Device Description (IODD) of the sensor). The temperature
value is shown in bits 2 to 15.
0x03C9 = 0b
11110010
01
Temperature value: 0b11110010 = 242
Therefore: The current temperature value is 24.2 °C.
>
Example: Writing IO-Link value (operating mode "IO-Link")
59804
Task:
Switch on the buzzer of DV2500 at IO-Link Port X2. The DV2500 operates in On/Off mode.