The procedure to use a CANOpen module in Codesys 2 is:
– Obtain a .eds file from CANOpen module manufacturer. This file describe it about its CANOpen features.
– Inside Codesys-Extras-AddConfigurationFile menù, select the .eds file.
– Inside Codesys-PlcConfiguration, right click on ElsistSlimLine_CO_M item and select AppendSubElement selecting the CANOpen module name.
– If ElsistSlimLine_CO_M is not present, add it right clicking on ElsistSlimLine-AppendSubElement
– Right now you must configure the added CANOpen module setting its ID and communications parameters
Screenshot of CANOpen I/O BeckHoff module added to Slimline PLC Configuration. We have set a mnemonic OutCan for its digital output and InpCan for its digital inputs, so inside program for example you can use OutCan.0 to set the first digital output of Beckhoff module or OutCan.7 to set the seventh digital output.