PLCNut (Customer) asked a question.
I have spent quite a bit of time working out the details of writing to the IO-Link using ISDU for setting up the 59840 Analog Input Hub.
I would like to post my findings so that hopefully it will be a help top someone else in the same situation.
I have a BRX PLC with two Murr 54631 Masters.
Getting the data from them is pretty simple using the Ethernet/IP Scanner in the BRX.
You will need to enter the Vendor Id and the Device ID in the scanner configuration.
Once the devices can talk, then you can use an EIPMSG instruction to setup the Analog hub.
The Murr IO-Link Manual gives the ISDU Indexes and Subindexes, but I could not find any good information on how to send the data.
Here is how I set up my EIPMSG instructions:
Device: (SELECT the Device you used in the Ethernet IP scanner).
Class: 0x83 (This is the class from 12.1.2 Vendor Specifics Objects in the manual).
Instance: 0x03 (This is the port of the Master that the IO-Link Hub is connected to).
Use Attribute: FALSE (The attribute is not used)
Generic Service: 0x4C (There are two service codes: 0x4B is Read_ISDU, and 0x4C is Write_ISDU).
Use Request Service Data Buffer: TRUE (This is where you will enter the ISDU parameters).
Req is Numeric Data Block:
Req Start: D52:B0 (This is where the ISDU Index and subindexes as well as any write data will be entered).
REQ Number of BYTEs: 4 (4 bytes are required for writes, and 3 bytes are required for reads).
The Request Data Block information.
Byte 0 is where the hex value of the ISDU Index is stored (0x77 for setting the Analog type and range of the 59840 Hub).
Byte 1 is always 0x00.
Byte 2 is where the ISDU Subindex is placed in hex. (0x01 for Port 1 of the 59840 analog Hub)
This is all you need to be able to do a read.
Byte 4 is the value that you are sending to the hub (0x06 to set a hub to 4-20ma).
I hope that this information will be a help top anyone who is trying to figure this out.
~Jason.
I also found a very useful tool for sending Ethernet/IP messages from your PC to test your devices:
https://hilscher.atlassian.net/wiki/spaces/EIS2V7/pages/123994946/Hilscher+EtherNet+IP+Tool