As a colleague of AndroidZz, I am currently testing the set-up with a CtrlX and RS485 card from Beckhoff (EL6021). The EL6021 is connected to the CtrlX over EtherCat. Wiring is OK, test with Beckhoff-PLC works well. Basis for testing on CtrlX is "ModbusRTUtest.zip" as posted by TheCodeCaptain a few posts above. - CXA_ModbusRTU.CXA_S20.IH_S20ComConfiguration works flawlessly. "bInOperation_ComConfig" immediately becomes TRUE. - when calling "IH_S20MBRTUMaster" I get an error ACCESS_ERROR with ErrorIdent of CXA_TABLE-16#0C0F0000-16#0C850031. Some questions: - where can I find information regarding 16#0C850031 - how do I determine the slot number of the RS485 card? In the example uiSlot is := 3... my RS485 card is as 3rd module after the EtherCat slave station...? Kind regards,
... View more