Page 4
Danger! Dangerous electrical voltage! Before commencing the installation • Disconnect the power supply of the device. • Wherever faults in the automation system may cause damage to persons or property, external measures must • Ensure that devices cannot be accidentally retriggered. be implemented to ensure a safe operating state in the event of a fault or malfunction (for example, by means of •...
XControl added to all sections ✓ 0.3 Additional documentation Please follow the safety instructions in the "Eaton Product Secure Configura- tion Guidelines XC-104-…, XC-204-…" and "Secure Configuration Guidelines XC-303-…" documents and observe the "EULA XC-104-…, XC-204-…" and "EULA XC-303-…" end-user license agreements.
– especially if the XControl modular PLCs is commissioned and maintained by unqualified personnel and/or the XControl modular PLCs is used improperly. Eaton assumes no liability for any damages resulting from cases such as these.
For the latest information on the I/O system XN300, please visit our product pages: www.eaton.eu/xn300 and use the Eaton Online Catalog for information on the avail- able range of products: http://www.eaton.eu/ecat Enter "XN300" into the search box and the catalog will take you directly to the corresponding product group.
Figure 1: System overview XControl The PLC consists of the: • PLC with PSU and local inputs/outputs → Page 14 • I/O system XN300 → Separate "XN300 slice modules" manual. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
(in the sense of personal and machine protection). Observe the labels on the modular PLC housing and the corresponding approval specifications and technical data. Any other use must be discussed and agreed upon with the manufacturer in advance. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 08/23 MN050005EN Eaton.com...
Page 18
(EMC). DANGER POSED BY AUTOMATIC STARTING Powering up the XControl must not result in any hazards being posed by controlled devices, e.g., motors starting unforeseeably or voltages being unexpectedly applied. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
01 5081 915682 Eaton.com/recycling EU: Eaton Industries Gmbh, Hein-Moeller-Str. 7-11, 53115 Bonn, Germany ⚠ UK: Eaton Electric Ltd, POBox554, Abbey ParkSouthampton Road, Titchfield, PO144QA, United kingdom Eaton.com/documentation Figure 7: Device side with printed device version number a MAC address QR code...
Only one USB storage device can be used at a time. This applies even if using a USB hub would make it possible to use multiple USB storage devices, for example. The output voltage is protected from overloads. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 27
The SD LED shows a green light to indicate that a MicroSD is inserted. → We recommend using a MicroSD memory card that is suitable for industrial data storage, such as item 191087, MicroSD memory card 2 GB with adapter. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 28
Every Ethernet interface must have a correct network configuration. • If a device has multiple Ethernet interfaces, they must use different net- work addresses, i.e., one of the first three octets must be used to differ- entiate between them. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 29
The Ethernet interfaces are delivered with the following IP addresses by default: Interface XC-303-… XC-204-… XC-104-… ETH0 192.168.119.248 192.168.119.204 192.168.119.104 ETH1 192.168.137.248 DHCP – ETH2 192.168.138.248 – – Subnet mask: 255.255.255.0 Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 30
Screened twisted-pair cables must be used. Adjustable baud rates Maximum possible cable length [bauds] 1200 1200 m 2400 4800 9600 19200 38400 576000 115200 Configuration: X3 plug connector, 3-pin, spring-loaded plug-in terminal block Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 31
220 Ω TRSa RS485 a 390 Ω Figure 10: Activating the bus termination resistors for the RS-485 interface RS485 cable • Use the specified connection cable assembled by electrically qualified personnel only. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 32
CAN bus. A bus termination resistor with a resistance of 120 Ω can be acti- vated with DIP switches for this purpose. To activate the bus termination resistors for CAN 1, switch the following DIP switch on S1 to the ON position: • XC-303-…: TC1 Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 33
Maximum possible cable length [kbauds] 1000 m ²,³ ² Starting from a cable length of 200 m, we recom- mend using optocouplers in the CAN stations 600 m ² 500 m ² Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 34
CAN bus. → Section “3.6 LED indicators”, page 63. See also: • Functionality → Page 18 • Device Interface → Page 21 • Technical data → Page 172 Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Keep a minimum clearance of 50 mm from passive components. If the adja- cent components are active elements (e.g., power supplies, transformers), keep a minimum clearance of 75 mm instead. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
The whole system block needs to be mounted on the DIN-rail and then secured in place by closing the locking elements. → Detailed instructions on how to install the XN300 slice modules can be found in the "XN300 slice modules" manual. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 38
To do this, follow the steps below: ▶ The Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… must be the first element on the left in the system block. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 39
XN300 slice module so that the modules lock solidly into place with each other. Figure 18: Locking the system block in place ▶ Repeat these steps until all the XN300 slice modules form a system block together with the PLC. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 40
To do this, push the locking elements at the back of the Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… and all XN300 slice modules down. You can use a screwdriver to do this. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
You can use a screwdriver to do this. Figure 22: Releasing the system block locking elements ▶ Tilt the system block forward, then pull the block, from its bottom edge, away from the DIN-rail. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 42
204-…, XC-303-… is non-detachable and cannot be removed. Figure 24: Disengaging the front cover ▶ Once the locking tabs have been disengaged, you can separate the mod- ules from each other. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Routing all analog input and field bus cables in a way that meets EMC requirements • Measures designed to reduce potential differences • the correct installation of the field bus system (cable, connection of the bus connectors, etc.), • Using shielding Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 46
Field bus shielded by using a shield Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… feature a protec- tive earth connection point at the back. ① Figure 30: Page preview XControl a Functional earth Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Fit signal cables with overvoltage protection, such as varistors or other surge arresters. Implement these measures ideally where the cable enters the building and at least at the control panel. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Connecting the XC-104-…, XC-204-… power supply The Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… power the system bus. XC-303-… 5 VDC/1.6A and 24 VDC/1.6 A XC-204-… 5 VDC/0.8A and 24 VDC/0.8A XC-104-… 5 VDC/0.4A and 24 VDC/0.4A Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 50
Some XN300 slice modules require an external 24 VDC power supply. → For more information, please refer to "XN300 slice modules". Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Connecting the power supply for outputs Q1 to Q4 The cross-sectional area of the +24 V cables used to supply power to the inputs/outputs must be sized for the maximum total current drawn by all the outputs. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Inputs I1 to I4 can be parameterized as interrupt inputs. Connect the inputs with a shielded connection cable with a maximum length of 30 m. An LED is assigned to each input in order to indicate the input's current state. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
24 V Figure 38: Interrupt input connections Figure 39: Switching thresholds for inputs in conformity with EN 61131-2 See also: • Timing requirements for the interrupt inputs: Technical data → Page 172 Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Make sure to use the ETH0 port on the device only! ▶ RJ45 RJ45 RJ45 3.4 m (11.15 ft) Figure 40: Connecting the PC to the XControl ETH0 port with a standard Ethernet patch cable Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 59
Open a web browser on your PC (preferably Chrome). → Please note that Internet Explorer is not supported. ▶ Enter the device's default IP address into the address bar; https://192.168.119.204:8375 The login screen will appear. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 60
Maximal power fail time (ms) Enable USB Enable USB autostart Enable USB factory reset Reset changes Apply ▶ In the USB section, click on the "Enable USB" toggle switch. ▶ Click on "Apply." Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
(OS) can be updated with the MicroSD memory card or USB Host. The device will be restarted and will start with the updated operating system and, if applicable, a stored boot application. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 62
XControl network settings networkconfig file Apply USB Host settings to XControl network settings Start of PLC Figure 42: Startup sequence for XControl with MicroSD memory card and USB Host Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
You can stop the program in one of two ways: • In online operation, issue the STOP command. • Switch the STOP DIP switch to the ON position. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
1) After "Full reset," the program must be loaded onto the XControl again. In online operation, the “Start” command can now be issued. → For more information, please refer to the XSOFT-CODESYS-3 Online Help using "RETAIN" as a keyword. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
CAN1 connected LED (green/ red), flashes during data transfers (Rx + Tx) o CAN2 connected LED (green/ red), flashes during data transfers (Rx + Tx) p V+ 24 VDC detected LED (green) q USB controller accessing storage device LED Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 69
1) Flashes: The flashing frequency can vary depending on the transfer rate on the bus. When there are large volumes of data, the flashing will look like a solid green light on the LED. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
When there are large volumes of data, the flashing will look like a solid green light on the LED. 3.7 Operating states when the XControl starts PLC and PRG are used to indicate the operating states. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
▶ Select "Application" in the browser. ▶ Select the "Properties" option in the context menu. ▶ Open the "Boot Application" tab. ▶ Enable the "Implicitly generate boot application during download" option. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
<application_name>.app will be active in the XSOFT- CODESYS-3 software. Deleting a boot application from the MicroSD Click on the "Device → PLC Shell" folder and enter the remprojfromsd com- mand for the XControl. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
→ Chapter 5 “Connection set-up PC – Modular PLCs XControl: XC-104- …, XC-204-…, XC-303-…”, page 89. ▶ Go to the "Device" screen in XSOFT-CODESYS-3 and open the "Firm- ware" tab. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 74
Enter the PLC's IP address and click on "Next." ▶ Select the "XC303" device type and click on "Next." ▶ Select the components you want to install: • For XC-303-… devices: "PLC operating system". Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 75
If you want to use the device's USB port, make sure that you have acti- vated it – please refer to → Section “3.2 USB interface activation for XC-104-… and XC-204-… devices”, page 53. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
"Enable USB factory reset" switch will be disabled, i.e., switched to the left- hand switch position. All Ethernet ports will be reset to their default settings. If a password has been set, it will be deleted. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
The Online Help function provides a detailed description of how to use XN300-Assist. In order to open it, click on the "?" icon on the XN300-Assist menu bar or press the <F1> key. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
In the program “Basic_prog” an event is programmed which invokes the “Param” task. The following steps are necessary in order to create a task: • Add a task • Define the program call • Create the program Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Open the editor for the "Basic_prog" POU by double-clicking on it. ▶ You can now enter a program. In the program example the variable “bCount” is incremented. If the count = 20, global tag a will be set to TRUE. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
"GVL" folder in the "Input assistance" dialog box, selecting tag "a", and confirming with "OK". ▶ Enter the program call "Event_prog". Figure 51: Creating an event controlled task Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Check required Figure 53: Assigning the function to a system event ▶ Double-click on the function name to open the editor and program the actions that should be taken after the start. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
QX6.0, while the second task could reset the output based on a changed input image table. → Do not access the same input or output from different tasks. Examples The examples are based on the following configuration: Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 83
In the second task “Prog2” the input IX4.1 of input module 1 is programmed in the program “progtes(2)”. The input of this input module is updated before the 2nd task ("Prog2") starts. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
The processing time of a task can be monitored in terms of time required using a watchdog. The following applies for defining the monitoring time: Processing time < Interval time of the task < Watchdog(time) Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 85
If the processing time is longer than the watchdog time (sensitivity = 1) – e.g. with a continuous loop in a program – the watchdog becomes active. If the processing cycle is shorter than the watchdog time, the watchdog is not activated. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 86
The cycle time of a task is not monitored when the watchdog is deactivated. The task will be terminated once it has been completed and will not be started again until the next interval starts. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 87
Multiple tasks with the same priority You can assign several tasks with the same priority. The tasks are split according to the “Time Slice” principle and are practically executed simulta- neously as part intervals (Round Robin). Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Example: Figure 59: Device (XC-303) memory segment size The maximum segment size for inputs, outputs, and markers is 1,280 bytes. The maximum size for retentive tags is 98 KBytes. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
(e.g., IB11), the PLC configu- rator will automatically show the next word address after the preceding tag (e.g., IW12). Figure 61: Addressing by data type Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
▶ Open XSOFT-CODESYS-3 to access the device online. ▶ In the configuration tree, select the "Device (XC-303)" device and "XN300_Master". ▶ Double-click on "XN300_Master" and open the "XN300Master Parame- ters" tab. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 91
Shell commands for diagnosing I/O system XN300 modules used ▶ In Explorer, double-click on the device (e.g., "Device (XC-303)") and select "PLC Shell" under the "Device" tab. ▶ Enter the "?" command into the command line. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
You will then have to wait 20 minutes. ▶ Restart the device. Figure 63: Web Config Tool start page The device has now been reset to its factory settings. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
5.1 Network search with automatic PLC detection The PC will attempt to connect to the PLC and will indicate a successful con- nection with green circles. Figure 64: Successful connection between PC and XControl PLC Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
▶ Click on "File", "New Project", "Standard Project" and enter a project name (e.g., "Test"). ▶ In the next screen, select a device (e.g., "XC-303 (Eaton Automation)") and the programming language you want to use (e.g., "structured text" [ST]). ▶...
Make sure that the EA_Network library has been added in the library man- ager. Use the function in your program (in "PLC_PRG", for example). ▶ To do this, open the input assistance function with <F2>. ▶ Select "Function block call" under "Categories." Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 97
▶ Insert the MicroSD memory card into the XControl. ▶ Reboot the XControl and then delete the file from the MicroSD memory card/USB device. Figure 66: networkconfig.templ file on the XControl Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Double-clicking on a cell in the "Value" column will show a drop-down menu that you can use to define the node as an input, output, or inter- rupt input. Figure 67: Configuration of the inputs/outputs Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
– be integrated into the library manager of the XSOFT-CODESYS-3, see → Section “16.2 Installing additional system libraries”, page 153. DisableInterrupt With this function, you disable (deactivate) a parameterized physical interrupt by accessing it from the user program. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 100
A “Basic” task contains a POU “PLC_PRG”. A further POU “Fastprog” should be processed if an L → H rising edge on the input I0.4 generates an interrupt. ▶ Create the POUs „FAST_PRG“ as shown in Figure 70. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 101
"Interrupt - rising edge" from the drop-down menu. Figure 71: allocation I0.5 → interrupt source ▶ Change over to the Task configuration and open the "System events" folder. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 102
▶ Select the "FAST_PRG" POU and confirm with "OK". ▶ Save the project. You can now test it. The "FAST_PRG" program will be called with every rising edge at input 4. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
# Set to 1 to enable SFTP Server. (Secure connection, needs a valid certificate.) # SSH must be activated to use SFTP! ENABLE_SFTP=1 # Set to 0 to prevent ping response send by the plc. ENABLE_PING_RESPONSE=1 Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 105
# Reset network configuration by booting the plc with a config File located on /home/disk_usb/XC303/update/networkconfig NW_UPDATE_FROM_USB=1 # Reset network configuration by booting the plc with a config File located on /home/disk_sd/XC303/update/networkconfig NW_UPDATE_FROM_SD=1 Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
See also → Section “3.3 Startup behavior XC-104-…, XC-204-…, XControl”, page 56. For all checks in general after the Modular PLCs XControl: XC-104-…, XC- 204-…, XC-303-… start, the MicroSD slot will be checked first and then the USB Host! Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
For the latest information on the I/O system XN300, please visit our product pages: www.eaton.eu/xn300 and use the Eaton Online Catalog for information on the avail- able range of products: http://www.eaton.eu/ecat Enter "XN300" into the search box and the catalog will take you directly to the corresponding product group.
Select the XN300 slice modules in the same order that they are physi- cally connected to the XControl. The device tree will now show all the devices. Figure 74: Device tree with XN300 slice modules Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
The following communication protocols are supported by the corresponding interfaces as follows:”, page 12 The following sections describe the individual fieldbus interfaces. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
The distance between the modular PLCs and an XN300 gateway can be up to 1000 m. The actual value depends on the baud rate used – please refer to → Section “Table 6 Max. cable lengths CAN”, page 28. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Save the configuration for the I/O system XN300 connected to the CAN- Gateway XN-312-GW-CAN in the "config check" on the gateway. ▶ Open your project in XSOFT-CODESYS-3 or create a new one → Section “5.2 Creating a new project”, page 90. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Select the "CANopen Manager" under "Field buses" in the "Add device" dialog box. The CANopen Manager will appear in the configuration tree. EDS files for Eaton field bus modules will be installed automatically. Figure 78: CANopen parameters for CANopen manager Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
▶ The EDS files for the field bus modules from other manufacturers must be additionally installed in XSOFT-CODESYS-3 – please refer to → Section “9.1.5.2 Installing the EDS file”, page 115. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Then click on the <Add device...> option. The "Add device" dialog box will appear if it is not open already. The dialog box will show a list with all the XN300 slice modules that can be configured. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 119
Regulate the bus load on the CAN field bus The following procedure is recommended in order to prevent the XN- 312-GW-CAN gateway from generating a heavy load on the CAN field bus: Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Click on the <Install...> button. ▶ Use Explorer to select the EDS file you want. ▶ Confirm with click on <Open>. ▶ Click on "OK" on the "The device has been successfully installed" prompt. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Bus activity OK (CAN), FLASHES with every frame – Bus error Flashes Flashes Warning 1) Flashes: The flashing frequency can vary depending on the transfer rate on the bus. Every successfully transmitted/received CAN frame triggers the LED. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Select "EtherCAT | Master | EtherCAT Master" under "Field buses" in the "Add device" dialog box. ▶ Confirm by clicking on the "Add Device" button. The EtherCAT master will appear in the configuration tree. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Select the "Select network by name" setting in the "General" tab. This will make the PLC connect by name (e.g., "ETH2") independently of the MAC address. ▶ Enable the "Automatic slave restart" option so that communication with the modules will start automatically. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
The devices will be shown in the PLC configuration's device tree. SmartWire- DT modules that are already connected to the EtherCAT gateway will also be shown in the device tree automatically (e.g., EU5E_SWD_8DX). Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Select the EtherCAT module you want, such as "EU5C-SWD-ETHERCAT" in the "Hilscher..." directory. ▶ Click on <Add device> in the "Add device" dialog box. The EtherCAT module will be added to the device tree. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
For more information on all other gateway settings and on map- ping, please refer to the "EU5C-SWD-ETHERCAT Gateway" manual – please refer to → Page 117 and the XSOFT-CODE- SYS-3 Online Help. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
By default, all the libraries required for EtherCAT communication will be auto- matically added after the EtherCAT master is added and the project is com- piled for the first time. • IODrvEtherCAT Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Select "Modbus TCP Master" in the device tree. ▶ Right-click on it to open the context menu and select the <Add device...> option. ▶ Select "Modbus TCP Slave". ▶ Then click on the <Add device...> option Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 131
The Modbus TCP device will be added to the configuration tree. A maximum of 32 Modbus TCP masters can be added. Figure 93: Modbus TCP master parameters Figure 94: Modbus TCP slave parameters Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
By default, all the libraries required for ModbusTCP communication will be automatically added after the EtherCAT master is added and the project is compiled for the first time. • IODrvModbusTCP • IODrvEthernet Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Adding a Modbus device ▶ Select the corresponding Modbus device, e.g., "Modbus Serial Device." ▶ Click on the <Add device> button. The selected Modbus device will be added to the configuration tree. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
By default, all the libraries required for Modbus communication will be auto- matically added after the EtherCAT master is added and the project is com- piled for the first time. • IODrvModbus Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 135
11 Modbus 11.8 Adding libraries for Modbus RTU communication Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
12 Remotely accessing the PLC Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… XControl devices cannot be remotely accessed with XSOFT-CODESYS-3 Version 3.5.17. There are plans to add this function in a later version. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
The web server for XSOFT-CODESYS-3 projects can be accessed either with the HTTP or HTTPS protocol. The 3S CODESYSControl.cfg file specifies which of the protocols should be available. This file can be found on the device, in the "\home\PlcRts" directory. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 139
0: Only HTTP connections allowed 1: Only HTTPS connections allowed 2: HTTP and HTTPS connections allowed 3: HTTP and HTTPS connections allowed, but access via HTTP will automati- cally be redirected to HTTPS. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
The default language will be English. → This means that the first person who logs in will be the person creating the password. By default, there is no password. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 141
After creating the password, you will be automatically authenticated. Authentication and session Once you create a password, the login screen will be shown every time you access the Web Config Tool afterwards. → Passwords are created during initial commissioning. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
When this happens, the login screen will be shown with a message saying that your session expired. 14.2 Navigation After logging in, the following page will appear: Figure 101: Web Config Tool start page Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Web Config Tool. As of this writing, German and English are available as languages. English will be selected by default. Figure 103: English and German language selection options Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
14.4.2 Changing / setting up passwords If you reset the device to its factory settings, the Web Config Tool will ask you to create a password when you access the device. The following screen will appear: Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
If USB Autostart is enabled, the system will search for shell scripts named "etn-startup.sh" in the root directory of the partitions on a plugged-in USB drive and run them with a GNU Bash interpreter. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Figure 109: System configuration – Factory reset section All Ethernet ports will be reset to their default settings. If a password has been set, it will be deleted. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
The number of "Network interfaces" sections that you can use to set up the IP configuration for each interface will depend on the specific number of net- work interfaces on the device. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 149
You can change the hostname in the "General settings" section. This name will be used for specific multicast DNS services. This type of service, which you can use to find the device without knowing the corresponding IP address, is provided with XSOFT-CODESYS-3. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
You can follow the corresponding progress on the first progress bar, as shown below. You can follow the corresponding progress on the first progress bar, as shown below. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 151
▶ To do this, click on the "Restart" button shown after the update is com- pleted. → Please note that you can only apply one update after each restart. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
The NTP service will then be used to correct the time and the system time every minute. This can also help counteract RTC drift if the device runs for multiple years or decades. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
→ Make sure to disable VNC after you no longer need it and the device is in a production environment. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
On the "Logs" configuration page, you can download various log files gener- ated on the device. To download the log file, double-click on the "Download" button. Figure 116: Stored log files Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 155
14 Web Config Tool for XC-104-… and XC-204-… 14.10 Logs configuration page Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
The symbol configuration editor will appear. You can use this editor to define all the tags that should be transferred. The symbol configuration will be updated with the next download or online change. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
EA_CAN types (when using Eaton CAN devices) • EA_CAN library with function blocks for CAN • EA_XC303Events library for interrupt processing → Examples of libraries available to users: • EA_CANopen , • IODrvModbus, • SysCom, • SysFileAsync... Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
▶1. Make sure that the library you want to install is found on a folder on your ▶2. In the configuration tree, double-click on "Library manager." Click on the "Add library" menu option. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 159
▶5. Confirm with click on <Open>. The new window will show the libraries available, depending on the target system. ▶6. Select "Add library." Figure 119: Search for a library in the library repository Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Add other settings to the command if necessary, e.g. baud rate with- setcomconfig. ▶ Press the Return button. The result will be displayed. Figure 121: PLC Shell tab with results for the "?" browser command Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Used internally to display all available commands. getdhcpstate Returns the status of the Ethernet interface(s) in regard to whether DHCP is enabled Example: eth0 : DHCP Enabled = NO gethwinfo Show hardware information Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 164
<address> [<size]> Shows the free memory on disk_sys. Print Hexdump of specified memory region ntpsetpolltime <arg> NTP polltime <arg> = Can be used to set to preferred (0=normal,1=preferred) minpoll maxpoll Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 165
<arg> Enable encryption. SSH enabled: <arg>=1; SSH disabled: <arg>=0 sshdisable Disable encryption sshenable Enable encryption. sshstate Shows the configured state for the encryption Example: SSH = disabled startprg Start user program Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 166
1) You can access help with extended information for this PLC shell command in CODESYS. Enter a question mark followed by a space before the command e.g.: ? plcload in the command line of the PLC browser 2) Available for devices with runtime system version 3.5.17 or higher Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
The canload PLC shell command shows the CAN bus load. caninfo shows the CAN buses' baud rates and states. You can also get information regarding the CAN bus with the CAN_GetBusLoad and CAN_GetBusState functions in the EA_CAN library. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
• The attempt to load the boot project failed. CODESYS and read the log file • An exception occurred in the application. Additional information can be found in the LOG file, which can be read with XSOFT CODESYS. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Carefully clean the device with a clean, soft, damp cloth. If there are any spots that are proving difficult to get off, spray a little dishwashing liquid on the damp cloth first. 19.2 Repairs For repairs, please contact your vendor or Eaton's Technical Support. CAUTION DESTRUCTION The device should only be opened by the manufacturer or by an authorized repair center.
The device should only be transported in its original packaging after being packed properly. 19.4 Disposal CAUTION Installation requires qualified electrician IMPORTANT! Dispose of recyclables as required by your local recycling regula- tions. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 172
19 Maintenance 19.4 Disposal Devices no longer being used must be professionally disposed of as per local regulations or returned to the manufacturer or the relevant sales office. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Space units (SU) width 4 SU Weight 0.66 Mounting DIN-rail IEC EN 60715, 35 mm Mounting position Vertical, upright 80.3 mm (3.16") 72 mm (2.83") 51 mm (2.01") Figure 122: Dimensions XC-303-… Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 175
Space units (SU) width 2 SU Weight 0.11 0.24 Mounting DIN-rail IEC EN 60715, 35 mm Mounting position Vertical, upright 23 mm (0.91") 25 mm (0.98") Figure 123: Dimensions XC-104-…, XC-204-… Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Approvals and declarations cULus (pending; expected file No.: E205091) The devices in the XControl series of products comply with all applicable European Union (EU) Directives and feature the CE marking. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 178
5 V DC (-5% +10%) 5 V DC (-5% +10%) max. current 500 mA 500 mA 100 mA Galvanic separation from System bus supply voltage I/Q1…I/Q4 – RS485 – CAN1 – Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 179
(EN61131-2, Level 1), criteria B ETH0 to 2/CAN/RS-485, balanced Local inputs/outputs, – – balanced Cable dependant interference, 10 V 10 V 10 V induced by high frequency fields EN61131-2 1) If provided Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
XN300 slice modules BP_5 Output rated voltage 5 V DC 5 V DC 5 V DC Output current 0.3 A 0.8A 1.6A Short-circuit rating Galvanic separation from POW 1) If provided Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Protection against polarity reversal – Input current I max. 1 A max. 2 A Galvanic separation U System bus RS485 CAN1 CAN2 – Local inputs Local outputs ETH0…ETH2 Flag Display none LED, single-colored, green Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
I1…I4 Galvanic separation from From each other Local outputs System bus RS485 CAN1 CAN2 – ETH0…ETH2 Flag Display LED, single-colored, green LED, single-colored, green Cable length (unscreened) < 30m < 30m Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
From each other from the inputs System bus RS485 CAN1 CAN2 – ETH0…ETH2 Flag Display LED, two-colored, green, red LED, single-colored, green Cable length (unscreened) < 30m < 30m 1) without capacitive load Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Local inputs Local outputs ETH0…ETH2 Galvanic separation from CAN2 to Supply voltage U – System bus – supply voltage I/Q1…I/Q4 – RS485 – CAN1 – Local inputs – Local outputs – Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 185
A shielded cable must be used for the interface. The used for the interface. The shielding must be termi- shielding must be terminated nated on both sides exter- on both sides externally. nally. Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
A shielded cable must be used for the interface. The face. The shielding must be terminated on shielding must be terminated on both sides exter- both sides externally. nally. 1) If provided Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
MicroSD Micro Secure Digital Card Task Process, task for operating system Forcing Setting by force, initializing changeable operands/tags with a fixed value RunTimeSystem Program Programmable logic controller RemoteControl IL Reference Listing Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com...
Page 192
Eaton is an intelligent power management company dedicated to improving the quality of life and protecting the environment for people everywhere. We are guided by our commitment to do business right, to operate sustainably and to help our customers manage power – today and well into the future.
Need help?
Do you have a question about the XC-104 Series and is the answer not in the manual?
Questions and answers