
XN-312-GW-EC gateway 07/20 MN050010-EN Eaton.com 3
11.2 Configuring the system with XSOFT-CODESYS-3 ....................... 68
11.2.1 Starting XSOFT-CODESYS-3 and creating a new project............. 68
11.2.2 Configuring the EtherCAT master ................................................ 69
11.2.3 Configuring EtherCAT devices ..................................................... 71
11.2.4 Configuring the XN312 gateway .................................................. 72
11.2.4.1 Configuring XN-322 slice modules......................................................... 73
11.2.4.2 Automatic mapping................................................................................ 75
11.2.5 Configuring device initialization parameters................................. 76
11.2.6 Adding EtherCAT
communication libraries ............................................................... 77
12 Sample project ........................................................................... 79
12.1 Establishing communications with the PLC................................. 79
12.2 Updating the operating system for the XC303 PLC ..................... 81
12.3 Configuring parameters................................................................ 81
12.4 Monitor IEC objects ..................................................................... 83
12.5 Going online and loading the program onto the PLC ................... 84
12.6 Diagnostics messages ................................................................. 85
12.7 What will be transferred............................................................... 87
12.7.1 Implementing the start parameter PDOs and SDOs.................... 87
12.7.2 Start parameters for XN-312-GW-EC gateway............................. 87
12.7.3 Process data XN-312-GW-EC gateway ........................................ 90
12.7.4 ONLINE CoE XN-312-GW-EC gateway ........................................ 90
12.8 Finding XN300 slice module PDOs and SDOs ............................. 92
12.8.1 XN-322-8DI-PD ............................................................................. 92
12.8.2 XN-322-16DO-P05........................................................................ 93
12.8.3 XN-322-4AI-PTNI .......................................................................... 96
12.8.4 XN-322-8AIO-U2........................................................................... 97
13 Appendix..................................................................................... 99
13.1 Approvals ..................................................................................... 99
13.2 Dimensions .................................................................................. 100
13.3 Technical data .............................................................................. 101
13.4 XN300 slice module objects......................................................... 104
13.4.1 Data types .................................................................................... 104
13.4.2 Digital input .................................................................................. 105
13.4.3 Digital output................................................................................ 106
13.4.4 Digital input/output....................................................................... 107
13.4.5 Analog input ................................................................................. 109
13.4.6 Analog output............................................................................... 111
13.4.7 Analog input/output...................................................................... 112
13.4.8 Function module XN-322-2SSI ..................................................... 114
13.4.9 Function module XN-322-2DMS-WM .......................................... 115
13.4.10 Function module XN-322-1DCD-B35............................................ 116
13.5 Examples showing how to configure the EtherCAT master
in XSOFT-CODESYS-3.................................................................. 118