I am trying to get the following IO-Link master from Beckhoff to work with a Codesys controller.
Everything is working fine i have added the latest xml description file from the Beckhoff website and the ethercat master and IO-Link master are not reporting any errors.
The problem is when i add io-link devices the process data is not showing.
I have contacted Beckhoff but they say it should work with Twincat and they cannot help me with Codesys.
After some troubleshooting and testing i found out that the Process data is shifted 32bits.
(see attached screenshots)
When the IO-Link Gateway IEC Object variable m_wInOffset is changed from 0 to 32 everything is working fine and all process data is updated at the right adress.
So i thought problem solved, but...
How can to make this change permanent?
I can not write this variable from the program, if i try i get an error that the variable is no input of EP6228_0042_Gateway...
Does anyone have an idea how to make this change in process data offset permanent?
which version exactly are you using?
this is 188.8.131.52, also tried with 184.108.40.206 and raspberrypi based controller, same problem occurs.
I would use 220.127.116.11 and latest Ethercat Package ( updated by the CODESYS Installer) - check if 4.x.x.x Ethercat package is in your project.
After updating the codesys ethercat package to 18.104.22.168 the process data is working again without having to set any offset!
Thanks a lot for pointing to this solution!
Log in to post a comment.