5 Connecting the PLC to the gateway using CODESYS5.3 Configuring the system with XSOFT-CODESYS-3Gateway XN-312-GW-CAN06/16 MN050003-ENwww.eaton.eu655.3.4.1 Configuring XN-322 slice modules▶To configure the system block, right-click on the CANopen device, e.g.,"XN_312_GW_CAN (XN-312-GW-CAN)" in the "Devices" configurationstructure.▶Then click on the option.The "Add Device" dialog box will appear if it is not open already. The dialogbox will show a list with all the XN300 slice modules that can be configured.toFigure 44:"Add Device" dialog box for selecting CAN modules for the CANopen device(XN-312-GW-CAN in this case)▶Select the I/O slice module you want, e.g., "XN-322-20DI-PCNT."▶Then click on the button.The I/O slice module will be added to the "Devices" configuration structure.A maximum of 32 I/O slice modules can be added to the CANopen device..Figure 45:"Devices" configuration structure→You can change the order of the I/O slice modules in the config-uration structure by dragging and dropping them accordingly.