IMDHMIControls LibraryShop main store

How-to

Run a PROFINET controller beside an EtherCAT master on ctrlX CORE

Industrial networks Published 6 min read

Short answer

Yes. The CODESYS Fieldbus Communication add-on is hardware independent, so the PROFINET controller runs on any standard Ethernet port other than the one bound to the EtherCAT master. Install and license the controller role, import the camera's GSDML, and put controller interface and camera on one subnet; no hardware change is needed.

On this page
  1. One port per master
  2. Controller role and license
  3. What the camera must bring
  4. Bring-up sequence
  5. Worked example: camera online beside the EtherCAT master on the COREX-M-X5-21.01
  6. When both masters run
  7. If discovery fails
  8. Questions asked

Yes, without hardware change. The CODESYS Fieldbus Communication add-on that carries the PROFINET controller role is hardware independent: any standard Ethernet port on the ctrlX CORE can carry the camera connection, and the port already serving the EtherCAT master stays exactly as it is. Three things decide whether the link comes up: the PROFINET controller role must be installed and licensed in the ctrlX PLC runtime, the camera must be a PROFINET device with a GSDML from its manufacturer, and the controller interface and the camera must sit on one subnet. This article walks the port decision, the license check and the bring-up, with the addressing arithmetic worked out for a camera added beside a running EtherCAT master.

One port per master #

The EtherCAT master in your project is bound to one Ethernet interface and one cable segment; leave that assignment untouched. The PROFINET controller gets a different standard Ethernet port — that is the whole interface decision. Hardware independence means the add-on does not care which standard port you give it; it does not mean two masters can share one port.

Identify three interfaces before touching the configuration:

  • The EtherCAT master interface: trace it along the cable to the EtherCAT devices.
  • The camera port: a standard Ethernet port with link up toward the camera's segment.
  • The engineering interface: the one you program through; keep PROFINET I/O off it.

To keep engineering traffic off the camera port, disable that adapter for CODESYS communication in the runtime's interface settings, so discovery and cyclic telegrams are the only traffic it carries. The EtherCAT side of projects like this — for example adding an IO-Link master to a ctrlX CORE over EtherCAT — is its own task; here you only leave it alone.

Controller role and license #

PROFINET splits the relationship into controller and device: the controller initiates the configured I/O relationship, and your camera answers as a device. The CODESYS PROFINET Controller SL, article no. 2303000015, is the component that gives a CODESYS-based runtime such as the ctrlX PLC that controller role. CODESYS also sells a PROFINET Device SL; it makes the PLC a device in someone else's network and does nothing for your camera link — the same role split behind why a PROFINET IO-device gateway cannot be a controller.

The runtime architecture expects both bus systems in one project: the CODESYS IO-Link SL description integrates IO-Link devices into ctrlX PLC projects with EtherCAT and PROFINET bus systems, so an EtherCAT master plus a PROFINET controller in one ctrlX PLC project is a supported combination, not a workaround. Confirm the license is accepted on the target before the first download; an unlicensed controller component stops the camera link before any network diagnosis is worth reading.

What the camera must bring #

No controller-side license turns a product into a PROFINET device. The camera's documentation must state PROFINET operation and list its I/O modules; take the GSDML file and the permitted update-time settings from the camera manufacturer or its distributor, never from a third-party copy. If the camera offers only other protocols, this path ends there: connect it through its documented protocol instead.

The configured identity must match the real device:

Setting Where both values are read Effect of a mismatch
Device name Camera documentation and online readback Device stays unavailable although discovery succeeds
IP address Camera and controller interface Configuration and diagnostic access fail
GSDML version Installed description vs the camera's supported one Unsuitable modules or parameters offered
I/O layout Camera's supported modules I/O relationship fails with configuration diagnostics
Update time Camera's permitted range Missed deadlines or rejected parameterization

Bring-up sequence #

  1. Trace the EtherCAT master interface and write down its name; do not change it.
  2. Cable the camera to a different standard Ethernet port, directly or through one switch on a single local segment.
  3. Reserve that port: disable the adapter for CODESYS engineering communication in the runtime interface settings.
  4. Confirm the PROFINET controller component is installed and its license, article no. 2303000015, is accepted on the target.
  5. Address the controller interface and the camera on one subnet — the arithmetic is in the worked example below.
  6. Import the camera's GSDML, add the device, then set the device name, the I/O modules and an update time inside the camera's permitted range.
  7. Download with the machine in a safe stop, because the download restarts the runtime and with it the running bus connections.
  8. Once cyclic data flows on both buses, read EtherCAT status, PROFINET status and task execution measurements together before releasing the machine.

Worked example: camera online beside the EtherCAT master on the COREX-M-X5-21.01 #

Inputs:

  • Controller: COREX-M-X5-21-BNNN-21.01-VSRS-NN-NN, one interface bound to the working EtherCAT master (machine documentation and project record).
  • Second bus component: CODESYS PROFINET Controller SL, article no. 2303000015, accepted on the target.
  • Camera: PROFINET device per its data sheet, manufacturer GSDML imported, cabled to a second standard Ethernet port.
  • Example addresses for this walk-through, chosen here as illustration; your real ones come from your interface configuration: controller interface 192.168.30.10 with mask 255.255.255.0, camera 192.168.30.42 with mask 255.255.255.0.

Rule in words: a PROFINET controller and its device must sit on one IPv4 subnet and one local segment, because PROFINET discovery and naming are link-local; no router or VLAN boundary may stand between them.

Arithmetic:

  • 192.168.30.10 AND 255.255.255.0 = 192.168.30.0
  • 192.168.30.42 AND 255.255.255.0 = 192.168.30.0
  • 192.168.30.0 = 192.168.30.0, so both endpoints are in 192.168.30.0/24 and the path is local.

Result: discovery on the camera port lists the device, the project's device name is assigned, and the camera enters cyclic I/O while the EtherCAT master keeps its own segment.

Decision: equal network results pass, unequal results stop the bring-up at discovery — and the fix is addressing, not licensing or GSDML work. A camera left on a delivery default from another subnet reports exactly this way.

When both masters run #

Two masters are two protocol relationships sharing one CPU and one runtime. A cable pull on the camera segment cannot load the EtherCAT segment; that separation is the point of the second physical network. What is shared is processor time: if one bus drops only while both run cyclic, read task execution times against the configured intervals and the communication-loss counters before replacing any hardware. When margins tighten, lengthen the camera's update time within its permitted range first and leave the EtherCAT cycle alone.

If discovery fails #

  • Discovery run from the engineering laptop proves the laptop's path only. The runtime discovers on the interface its PROFINET controller is bound to; compare the two before anything else.
  • Read link status at the controller port, the camera and any switch in between; a down link is repaired before any protocol diagnosis.
  • A successful discovery followed by an unavailable device is a name mismatch: compare the configured device name with the one the camera actually reports.
  • Two controllers holding one address on the segment produce a duplicate-address fault; fixing the CODESYS duplicate controller IP error in ctrlX PROFINET starts with clearing that conflict.

Questions asked

Can the PROFINET controller port carry more than one device?

Several. A PROFINET controller exchanges cyclic data with each configured device on its segment, addressed individually by device name and IP, so further PROFINET devices can join the camera on that switch. Each addition costs runtime and network load, so re-read the task execution measurements after the segment grows.

Which CODESYS article covers the PROFINET controller license?

CODESYS PROFINET Controller SL, article no. 2303000015, is the component that gives a CODESYS-based runtime the PROFINET controller role. Confirm the entitlement is accepted on the target before the first download, and buy it only through the manufacturer's store or its distributors.

My engineering laptop discovers the camera but the runtime does not. Why?

Discovery run from the laptop proves only the laptop's network path. The runtime's controller discovers exclusively on the interface it is bound to, so compare the laptop's adapter with the runtime's interface selection, and cable the laptop into the camera's segment when both need to see the device.

Does adding the second master slow the EtherCAT cycle?

Not through the network: the two buses are physically separate, so camera traffic never touches the EtherCAT segment. What they share is the CPU. After both run cyclic, read task execution times against the configured intervals; if margins tighten, lengthen the camera's update time inside its permitted range and leave the EtherCAT cycle alone.

The camera has only EtherNet/IP and TCP interfaces. Can the license still connect it?

No. The controller-side license only equips the ctrlX PLC to initiate PROFINET I/O; the camera itself must document PROFINET device operation and supply a GSDML. A camera with other interfaces stays on its documented protocol, or you replace it with a PROFINET-capable model.

Keep reading

  • Troubleshooting

    Fix ctrlX CORE PROFINET device not found with XF10 connected

    This is not a Siemens fault: DCP discovery runs at the Ethernet layer, so XF10 and XF51 answer in one broadcast domain through the same unmanaged switch whatever their IP subnets. Put the engineering port on its own switch or VLAN and confirm the device name on XF51, and the startup dependency disappears.

    Industrial networks

  • Selection guide

    How to select a CODESYS fieldbus master for industrial Ethernet

    Select the master around the device, not the connector: the 750-340 is a PROFINET IO coupler, and a PROFIBUS station needs a different coupler. Confirm three matches — device protocol, runtime master package, supported network adapter — then size the bus cycle from the process budget; the worked example clears a 10 ms sensor-to-actuator budget at a 2 ms cycle and fails it at 4 ms. Bench-test a laptop NIC only if the runtime documents it.

    Industrial networks

  • Troubleshooting

    Fix PROFINET connect errors between a controller and an S7-1200

    Separate the engineering port and the PROFINET port onto different IP layers on different physical ports, connect the controller to the S7-1200 directly or through a PROFINET-capable switch, make the device name and address match the project, and run the PROFINET IO task at priority 1 or 0. A scan that finds the S7-1200 proves discovery only; the connect stage is where DB814006 appears.

    Industrial networks