Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

B&R Network Architecture and Device Enumeration

Overview

B&R X20 systems use a multi-layer network architecture: ETHERNET Powerlink (EPL) for real-time control communication, standard Ethernet/TCP-IP for IT-level traffic, X2X for local IO bus expansion, and optional CAN bus. Understanding this architecture is essential when you inherit an undocumented machine — you need to map out what devices exist, how they’re connected, and what data flows between them.

Network Topology Types

POWERLINK supports any combination of the following topologies without manual configuration:

TopologyDescriptionWhen Used
StarAll devices connect to a central hub/switchClean installations, easy isolation
Daisy ChainDevices connected in series using built-in 2-port switchesMost common — minimizes cabling
TreeHierarchical branching from central hubLarge machines with multiple sections
RingDaisy chain with last device connected back to firstRedundancy — automatic failover on cable break

B&R POWERLINK hubs (e.g., X20HB8880) support all these topologies. The Compact Link Selector enables ring redundancy for critical applications.

X2X Bus Topologies

The X2X bus (backplane bus connecting X20 IO modules) is always a daisy chain:

CPU/BC → [Module 1] → [Module 2] → [Module 3] → [Terminal Module]

Each module has an X2X in and X2X out connector. The terminal module provides termination.

Typical Machine Network Layout

                          Standard Ethernet (TCP/IP)
                          ┌──────────────────────┐
                          │  Engineering PC      │
                          │  HMI / SCADA          │
                          │  SDM (web browser)    │
                          └──────────┬───────────┘
                                     │
                              ┌──────┴──────┐
                              │  Ethernet   │
                              │  Switch     │
                              └──────┬──────┘
                                     │
┌────────────┐   POWERLINK    ┌──────┴──────┐   POWERLINK    ┌────────────┐
│  ACOPOS    │◄──────────────►│  CP1584      │◄──────────────►│  ACOPOS    │
│  Drive 1   │               │  (MN node)   │               │  Drive 2   │
└────────────┘               └──────┬──────┘               └────────────┘
                                     │ X2X Bus
                              ┌──────┴──────┐
                              │  X20 IO     │
                              │  Modules    │
                              └──────┬──────┘
                                     │ X2X Bus
                              ┌──────┴──────┐
                              │  X20 IO     │
                              │  Modules    │
                              └─────────────┘

Device Discovery on an Unknown Network

Method 1: Automation Studio Browse

  1. Open Automation Studio
  2. Go to Online → Settings
  3. Toggle Browse ON
  4. Automation Studio broadcasts on the local subnet and discovers all B&R devices
  5. Devices appear with: IP address, device name, model number, serial number

Method 2: Standard Network Scan

Since B&R devices respond to standard Ethernet protocols:

## ARP scan - finds all devices on the local subnet
arp -a

## Nmap scan - detailed device discovery
nmap -sn 192.168.1.0/24

## Ping sweep
for i in {1..254}; do ping -c 1 -W 1 192.168.1.$i | grep "bytes from" & done; wait

## DNS reverse lookup (some B&R devices register their name)
nmap -sL 192.168.1.0/24

Method 3: B&R Community Tools

ToolDescriptionSource
brsnmpSNMP commands for B&R PLCs — list/search PLCs, change IPawesome-B-R GitHub
ListAllBurPLCsLists all B&R PLCs on the networkawesome-B-R GitHub
brwatchService tool — watch variables, change IPawesome-B-R GitHub
  1. Install Wireshark with the POWERLINK plugin
  2. Connect your PC to the same network segment
  3. Start capture on the Ethernet interface
  4. Filter: epl for POWERLINK frames
  5. The Managing Node (MN) — your CP1584 — will be visible in SoC (Start of Cycle) frames
  6. All Controlled Nodes (CNs) respond with their node addresses

The POWERLINK MN node is typically node 240 (0xF0). CNs are assigned sequentially.

See powerlink-internals.md for detailed POWERLINK protocol analysis.

Method 5: SDM Web Interface

  1. Open a browser to the PLC’s IP address (default often 192.168.1.10)
  2. The SDM shows all connected POWERLINK nodes, their status, and firmware versions
  3. Navigate to System → Network for full device enumeration

Method 6: Finding a PLC with Unknown IP

If you don’t know the PLC’s IP address:

  1. Connect directly with an Ethernet cable (no switch)
  2. Set your PC to DHCP
  3. B&R PLCs often have DHCP enabled by default, or respond to ARP from any IP
  4. In Wireshark, look for ARP packets from the PLC’s MAC address (B&R OUI prefix)
  5. In Automation Studio, enable Browse — it discovers devices via UDP broadcast
  6. Reset to factory IP: hold the MODE button during power-on for 5 seconds (resets IP to 192.168.1.10)

Network Addressing

IP Address Configuration

B&R devices have IP addresses configured via:

  1. Automation Studio — set in the CPU’s Ethernet configuration
  2. SDM web interface — accessible via browser
  3. SNMP — using brsnmp tool
  4. Hardware reset — MODE button during power-on (factory default: 192.168.1.10)

POWERLINK uses node IDs (1-239 for CNs, 240 for MN):

  • MN (Managing Node): Always node 240 — this is the CP1584
  • CN (Controlled Node): Assigned sequentially 1, 2, 3… by the MN
  • Node addresses are automatically assigned during POWERLINK startup (SoC phase)
  • No manual IP configuration needed for POWERLINK communication — it uses MAC-based addressing

X2X Station Addressing

X2X stations are addressed by their position in the daisy chain:

  • Station 0: The bus controller (BC module on the CPU)
  • Station 1: First IO module after the BC
  • Station 2: Second IO module, etc.

Addresses are automatic — the bus controller enumerates stations during initialization.

Network Diagnostic Tools

Built-in Diagnostics

ToolAccess MethodWhat It Shows
SDMWeb browser → PLC IPAll devices, faults, firmware, network stats
Automation Studio OnlineAS → Online → LoginVariable values, task status, IO mapping
PLC LoggerAS → Tools → LoggerSystem events, warnings, errors with timestamps

External Network Tools

ToolUseNotes
Wireshark + EPL pluginCapture POWERLINK trafficFilter by node, analyze cycle timing
nmapNetwork discovery and port scanningStandard TCP/IP layer
pingBasic connectivity testCheck if PLC responds
ARPFind devices on local subnetQuick scan without tools
brsnmpB&R-specific SNMP commandsChange IP, list PLCs
brwatchReal-time variable monitoringCommand-line, lightweight

Common Network Issues

Symptoms: Drives/IO modules show as offline, red LEDs on modules

Diagnosis:

  1. Check SDM — which nodes are missing?
  2. Verify POWERLINK cable connections (daisy chain: each module has IN and OUT)
  3. Check termination — the last device in the chain needs a terminator or the bus controller must have termination enabled
  4. Verify the bus controller (BC) module is correctly configured in the project
  5. Check cable continuity with a cable tester
  6. Look for the POWERLINK activity LEDs on the bus controller and hub modules

Ethernet Connectivity Problems

Symptoms: Can’t reach PLC from PC, HMI disconnected

Diagnosis:

  1. Verify IP address is correct and on the same subnet
  2. Check physical Ethernet cable and link LEDs on the PLC and switch
  3. Ping the PLC — if no response, check cabling and IP configuration
  4. Verify subnet mask and gateway settings
  5. Check if the PLC’s Ethernet interface is enabled in the hardware configuration

IP Address Conflicts

Symptoms: Intermittent connectivity, PLC appears and disappears from network

Diagnosis:

  1. Check for duplicate IPs using arp -a — look for the same IP with different MAC addresses
  2. Ensure no other device is using the PLC’s IP
  3. Change the PLC’s IP if needed (via SDM, brsnmp, or Automation Studio)

Network Performance Degradation

Symptoms: POWERLINK cycle time violations, intermittent timeouts

Diagnosis:

  1. Check POWERLINK cycle time configuration — is it too fast for the number of nodes?
  2. Verify cable quality — damaged cables cause retransmissions
  3. Check for excessive non-real-time traffic on the same Ethernet segment
  4. Separate real-time (POWERLINK) and IT (TCP/IP) traffic onto different VLANs or physical networks if possible
  5. Monitor POWERLINK timing in Wireshark — look for cycle time jitter

Documenting an Unknown Network

When you inherit an undocumented machine, systematically document the network:

Step 1: Physical Inspection

  1. Follow every cable from the PLC to each device
  2. Note cable types (Ethernet, X2X flat cable, motor power, encoder)
  3. Label every cable at both ends
  4. Photograph the cabinet layout

Step 2: Software Discovery

  1. Connect to the PLC’s SDM web interface
  2. Use Automation Studio Browse to find all B&R devices
  3. Run a network scan (nmap or arp) to find non-B&R devices (switches, HMIs)
  4. Capture POWERLINK traffic in Wireshark to see all active nodes

Step 3: Create a Network Map

Document:

  • Device model, serial number, firmware version
  • IP address / POWERLINK node address / X2X station address
  • Cable connections (what port connects to what)
  • Network configuration (subnet, gateway, cycle time)

Step 4: Record Network Configuration

DeviceModelIP AddressPLK NodeX2X StationFirmwareStatus
CPUX20CP1584192.168.1.10240 (MN)V4.10OK
Bus ControllerX20BC00830V2.xOK
IO Module 1X20DI93711V1.xOK
IO Module 2X20DO93212V1.xOK
Drive 18V1016.00-21 (CN)V3.xOK
Drive 28V1016.00-22 (CN)V3.xOK
HMI4PPC70…192.168.1.11V3.xOK

Ethernet Switching Requirements for POWERLINK

Why Switches Matter

POWERLINK is a time-sliced protocol that requires deterministic Ethernet frame delivery. Standard managed switches can interfere with POWERLINK timing. Understanding this is critical for network design.

RuleDetails
Dedicated segment recommendedPOWERLINK should have its own physical Ethernet segment when possible
No IGMP snooping neededPOWERLINK uses directed frames (not multicast in the traditional sense)
Managed switchesCan be used but must not introduce latency spikes. Avoid spanning tree, QoS reshaping, or storm control
B&R POWERLINK hubsX20HB8880 hubs are purpose-built — 2-port, non-blocking, no processing delay
Standard switches (daisy chain)Each switch adds ~1-5 µs latency; acceptable for cycle times > 1 ms
Full-duplex switchesAcceptable for POWERLINK V2 with some implementations; not for V1 real-time domain

Network Segregation Strategies

GOOD: Separate physical networks
┌──────────────┐     ┌──────────────┐
│  IT Network  │     │ POWERLINK    │
│  (Switch)    │     │ (Hub chain)  │
│  HMI/SCADA   │     │ Drives/IO    │
└──────┬───────┘     └──────┬───────┘
       │                    │
       └────────┬───────────┘
                │
         ┌──────┴──────┐
         │   CP1584     │
         │ IF2=Ethernet │
         │ IF3=POWERLINK│
         └─────────────┘

ACCEPTABLE: Same switch with VLANs
┌──────────────────────┐
│  Managed Switch      │
│  VLAN 10: IT traffic │
│  VLAN 20: POWERLINK  │
└──────────┬───────────┘
           │
    ┌──────┴──────┐
    │   CP1584     │
    └─────────────┘

Important: When POWERLINK and TCP/IP share IF3 (same physical port), they are time-multiplexed. The POWERLINK real-time phase has absolute priority. Non-real-time traffic fills the remaining time slots. If the cycle time is very tight, TCP/IP performance on IF3 will be severely degraded. Use IF2 (dedicated Ethernet) for IT traffic.

OPC UA Network Integration

Port and Protocol

ParameterDefault
OPC UA endpointopc.tcp://<PLC_IP>:4840
Discovery URLopc.tcp://<PLC_IP>:4840
SecurityNone (default), Basic128Rsa15, Basic256, Basic256Sha256
Max sessions50 (configurable)

OPC UA on the Network

  • OPC UA runs on IF2 (Ethernet), not IF3 (POWERLINK)
  • If IF2 is on the same subnet as POWERLINK address range (192.168.100.x), there may be routing issues
  • OPC UA traffic is standard TCP — works through routers, VPNs, and firewalls
  • See opcua.md for detailed configuration and client access

Network Security Considerations

B&R systems from defunct OEMs often have minimal security:

RiskMitigation
No authentication on OPC UAAdd firewall rules; restrict port 4840 to trusted IPs
FTP access with default/no passwordDisable FTP service if not needed; restrict via firewall
SDM web interface open to allRestrict port 80/443; use VPN for remote access
SNMP community strings default (“public”)Change SNMP community in AR configuration
Telnet/SSH accessDisable if not needed; check AR configuration for remote shell

Remote Access Options

For monitoring machines remotely:

MethodProsCons
VPN tunnel to plant networkSecure, full accessRequires IT infrastructure
OPC UA via port forwardingStandard protocol, works through NATSecurity risk if not secured
MQTT bridge (via OPC UA→MQTT gateway)Lightweight, IoT-friendlyRequires additional hardware/software
SDM via HTTPSNo extra software neededLimited to SDM capabilities

See iiot-retrofit.md for detailed remote monitoring setup.

Compact Link Selector (Ring Redundancy)

B&R POWERLINK supports automatic ring redundancy via the Compact Link Selector:

  • Connect the last node in the daisy chain back to the first (forming a ring)
  • If any cable in the ring breaks, communication continues via the alternate path
  • Failover is automatic and typically completes within 1-2 POWERLINK cycles
  • Requires compatible B&R hubs (X20HB8880 with Compact Link support)
  • Configured in Automation Studio’s POWERLINK network configuration

When to Use Ring Redundancy

  • High-availability applications (continuous processes)
  • Long cable runs where damage risk is elevated
  • Multi-machine lines where one cable break would stop the entire plant
  • Not typically needed for standalone machines

Subnet Design Guidelines

Default Address Ranges

InterfaceTypical DefaultNotes
IF2 (Ethernet)192.168.1.xConfigurable via AS or SDM
IF3 (POWERLINK)192.168.100.xReserved for POWERLINK; do not overlap with IF2

Best Practices

  1. Keep POWERLINK on its own subnet (192.168.100.x)
  2. IT traffic on a separate subnet (192.168.1.x)
  3. Use a dedicated VLAN if sharing physical switches
  4. Document all IP addresses — use the network map template above
  5. Reserve IP ranges for future expansion (spare PLCs, new drives)

DHCP and IP Configuration

MethodDescription
Static (default)IP set in AS project or SDM; persistent across reboots
DHCPCan be enabled; PLC requests IP from DHCP server at boot
BOOTPLegacy protocol; some older configurations use this
INA2000 formulaIP = 192.168.1.<hex_switch_value> (when INA mode is active)

For an undocumented machine: check if DHCP is enabled by connecting a PC to the same switch and running a DHCP discovery. If the PLC responds, you’ll find its IP. Otherwise, use ANSL discovery (nmap port 11169/11160) or factory reset (hold MODE button during power-up).

DNS Configuration

Why DNS Matters in B&R Automation

DNS is required for several B&R system services, even on isolated plant networks:

ServiceDNS DependencyNotes
NTP time synchronizationNTP servers resolved by hostname (e.g., pool.ntp.org)Without DNS, NTP sync fails and PLC clocks drift
OPC-UA endpoint discoveryServer certificates may reference DNS namesClient certificate validation can fail without proper DNS
PLC hostname resolutionOther devices reference PLCs by hostnameCross-device communication may break
Software updatesB&R update servers resolved by hostnameNot relevant for isolated networks, but DNS is still configured
ANSL discoveryUses UDP broadcasts, not DNSWorks without DNS

DNS Configuration in Automation Runtime

DNS servers are set in the CPU properties under Ethernet Interface → TCP/IP → DNS:

ParameterDescriptionExample
Primary DNS ServerFirst DNS server queried8.8.8.8 or plant DNS (e.g., 10.0.0.2)
Secondary DNS ServerFallback if primary is unreachable8.8.4.4 or secondary plant DNS
DNS DomainAppended to unqualified hostnamesplant.local or company.com
Get DNS from DHCPAutomatically receive DNS settings via DHCPEnabled or disabled

DNS Servers for Industrial Use

ServerAddressUse Case
Plant DNS serverPlant-specific (e.g., 10.0.0.2)Preferred — resolves internal hostnames
Google Public DNS8.8.8.8 (primary), 8.8.4.4 (secondary)Internet-connected networks, reliable fallback
Cloudflare DNS1.1.1.1Alternative public DNS
B&R defaultNone configuredMust be set manually for NTP

On isolated plant networks without internet access, configure DNS to point at the plant’s internal DNS server. If no internal DNS exists and NTP is required, either use IP addresses directly for NTP or set up a local DNS resolver.

“Get DNS from DHCP” Option

When enabled, the PLC obtains DNS server addresses from the DHCP response alongside the IP address. This is convenient but has caveats:

  • Only works on interfaces configured for DHCP (typically IF2)
  • DNS settings are lost if the DHCP server is unreachable at boot
  • The PLC may boot with stale DNS if the DHCP lease expires during a network outage
  • For critical systems, use static DNS configuration for reliability

DNS Troubleshooting for B&R Networks

SymptomDiagnosisFix
NTP sync failsDNS cannot resolve NTP server hostnameCheck DNS server reachability from PLC; try IP address for NTP server
OPC-UA certificate errorsCertificate CN does not match resolved IPConfigure proper DNS or use IP-based endpoint URLs
PLC hostname not resolvingDNS not configured or hostname not registered in DNSAdd PLC to plant DNS or use hosts file on client machines
Slow network operationsDNS timeout before fallbackConfigure reachable DNS servers or disable DNS if unused

For detailed NTP and DNS interdependencies, see time-sync.md.

Ethernet Interface Configuration

IF2 vs IF3 on X20CP1584

The X20CP1584 has two independent Ethernet interfaces, each serving a different purpose:

InterfaceNamePurposeConnector
IF2ETHx (Ethernet)Standard TCP/IP — OPC UA, SDM, FTP, SNMP, NTPRJ45
IF3ETHx+1 (POWERLINK)POWERLINK real-time bus + multiplexed TCP/IPRJ45

Critical distinction: IF3 can carry both POWERLINK real-time frames and non-real-time TCP/IP traffic in a time-division multiplexed manner. The POWERLINK cycle owns the isochronous phase; TCP/IP traffic fills the remaining asynchronous phase slots. If the POWERLINK cycle time is tight (e.g., 200 µs), very little bandwidth remains for TCP/IP on IF3. For heavy IT traffic, use IF2 exclusively.

Interface Configuration in CPU Properties

Each interface is configured independently in Automation Studio under the CPU’s hardware configuration:

SettingIF2 (Ethernet)IF3 (POWERLINK)
IP AddressStatic or DHCPStatic (POWERLINK uses MAC-based addressing)
Subnet MaskConfigurable255.255.255.0 typical
Default GatewayConfigurableRarely set (used for multiplexed TCP/IP)
DNS ServersConfigurableInherited or separate
MAC AddressHardware-fixedHardware-fixed
Speed/DuplexAuto-negotiate or forcedAuto-negotiate or forced

Speed and Duplex Settings

SettingOptionsRecommendation
Speed10 Mbps, 100 Mbps, AutoAuto-negotiate for standard installations; force 100 Mbps Full if auto-negotiation fails
DuplexHalf, Full, AutoAlways Full Duplex — Half Duplex causes collisions and retransmissions
Auto-NegotiationEnabled/DisabledLeave enabled unless troubleshooting duplex mismatches

Forcing speed/duplex on one end without matching the other causes a duplex mismatch, leading to late collisions, CRC errors, and severe performance degradation. If forcing is necessary, both the PLC port and the switch port must match exactly.

MAC Address Format (B&R OUI)

B&R Automation assigns MAC addresses from their registered OUI (Organizationally Unique Identifier):

PrefixOUI OwnerExample MAC
00:07:6CB&R Industrial Automation00:07:6C:XX:XX:XX
08:00:06B&R (legacy assignment)08:00:06:XX:XX:XX

When scanning a network, filtering by B&R OUI prefixes identifies B&R devices among all network endpoints:

# Find all B&R devices by MAC prefix in ARP table
arp -a | grep -i "00:07:6c"

The X20CP1584 does not support IEEE 802.3ad link aggregation (LACP) natively. However, multi-homing — using both IF2 and IF3 simultaneously on different subnets — is fully supported and is the standard operating mode:

  • IF2: Connected to the IT/SCADA network (192.168.1.x)
  • IF3: Connected to the POWERLINK real-time bus (192.168.100.x)

Each interface routes independently. The PLC maintains separate routing tables per interface. Traffic for the POWERLINK subnet goes out IF3; traffic for the IT subnet goes out IF2. If both subnets overlap, ambiguous routing occurs and connectivity becomes unpredictable.

Interface LED Indicators

LEDStateMeaning
Link/ACT (Green)OnPhysical link established
Link/ACT (Green)BlinkingData transmission active
Link/ACT (Green)OffNo physical link — check cable
Speed (Amber/Yellow)On100 Mbps connection
Speed (Amber/Yellow)Off10 Mbps connection
Error (Red)OnCRC error, duplex mismatch, or collision detected

On POWERLINK hubs (X20HB8880), additional LEDs indicate POWERLINK bus activity and ring redundancy status. See cp1584-hardware-ref.md for complete LED reference.

Latency and Performance Analysis

A single POWERLINK cycle is divided into phases, each contributing to overall latency:

PhaseDuration (typical)Contribution
SoC (Start of Cycle)Broadcast from MN to all CNs~10-20 µs
PReq (Poll Request)MN polls each CN sequentially~2-5 µs per CN
PRes (Poll Response)CN responds to MN~2-5 µs per CN
Async PhaseNon-real-time data exchangeRemaining time
SoA (Start of Async)Signals async phase beginning~2 µs

Total cycle time = sum of all phases. For a system with 5 CNs at 200 µs cycle time, the isochronous portion consumes approximately 50-75 µs, leaving the remainder for asynchronous traffic.

Ethernet Switch Latency

Each switching element in the POWERLINK path adds latency:

DevicePer-Hop LatencyNotes
B&R POWERLINK hub (X20HB8880)< 1 µsStore-and-forward at wire speed; essentially transparent
Unmanaged switch1-5 µsFast switching, minimal overhead
Managed switch (no features)2-10 µsDepends on switching ASIC
Managed switch (IGMP/STP)5-50 µsProcessing features add jitter; avoid on POWERLINK
Router50-500 µsNever route POWERLINK traffic; use bridges only

X2X Bus Latency Contribution

The X2X backplane bus adds latency for IO data to reach the CPU:

ParameterValueNotes
X2X bus cycle time200-500 µsConfigurable in Automation Studio
Per-module propagation~1-2 µsDaisy chain delay accumulates
Typical 10-module chain~20-30 µs totalIncluding bus controller processing
Bus controller processing~10-15 µsCPU reads/writes IO image

X2X latency is independent of POWERLINK cycle time. The CPU updates the IO image at the X2X rate and maps it into the POWERLINK cycle. If X2X cycle time exceeds POWERLINK cycle time, IO data may be stale by one cycle.

End-to-End Latency Budget Calculation

For a signal traveling from a digital input to a drive command output:

StageLatency
Input module debounce + X2X transport~300 µs (X2X cycle)
CPU program scan (logic processing)~100-500 µs (depends on program)
POWERLINK cycle (MN sends command to drive)~200 µs (one cycle)
Drive processing and motor response~500 µs - 2 ms (drive-dependent)
Total (typical)~1.1 - 3.0 ms
Total (best case)~0.6 ms

This budget explains why cycle time configuration is critical — reducing POWERLINK cycle time from 1 ms to 200 µs saves 800 µs per cycle in the command path.

Measuring Latency with Wireshark

To measure actual POWERLINK latency from captures:

  1. Capture POWERLINK traffic on the MN’s interface
  2. Apply filter: epl && epl.soc
  3. Calculate time delta between consecutive SoC frames — this is the actual cycle time
  4. Apply filter: epl && epl.preq && epl.node == 1
  5. Measure time from PReq to matching PRes — this is the round-trip to CN 1
  6. Compare actual cycle times against configured cycle time to detect jitter

Wireshark column setup for latency analysis:

ColumnDisplay Filter FieldPurpose
Frame Deltaframe.time_deltaCycle-to-cycle timing
EPL Serviceepl.serviceIdentify SoC, PReq, PRes
EPL Nodeepl.nodeIdentify which CN
Frame Lengthframe.lenDetect oversized frames

Acceptable Latency Thresholds

ApplicationAcceptable E2E LatencyPOWERLINK Cycle Time
Simple on/off control< 50 ms10 ms (not latency-critical)
Conveyor synchronization< 10 ms2-5 ms
Motion coordination (multi-axis)< 5 ms1-2 ms
High-dynamic servo control< 2 ms200-400 µs
Registration/cutting applications< 1 ms100-200 µs
Electronic camming< 0.5 ms100 µs

When the application requires cycle times below 200 µs, the number of nodes in the POWERLINK chain must be carefully managed — each additional CN consumes time in the isochronous phase.

Network Troubleshooting Deep Dive

Packet loss in POWERLINK manifests as drives going to fault state, IO modules showing communication errors, or cycle time violations. Use Wireshark to diagnose:

## Wireshark capture filter for POWERLINK traffic
## Capture on the interface connected to the POWERLINK segment

## Display filter: show only Poll Requests to detect missing responses
epl && epl.preq

## Display filter: show only Start of Cycle to check cycle consistency
epl && epl.soc

## Display filter: show errors
epl && epl.error

## Display filter: isolate a specific node
epl && epl.node == 3

Steps to diagnose packet loss:

  1. Start Wireshark capture on the POWERLINK segment
  2. Apply epl && epl.soc — verify SoC frames arrive at the configured interval
  3. Apply epl && epl.preq — for each PReq, confirm a matching PRes follows within the timeout window
  4. Missing PRes frames indicate the CN is not responding — check cabling and power to that node
  5. Late PRes frames (arriving outside the isochronous window) indicate switch latency or cable issues
  6. Count total frames over 60 seconds; compare expected vs. actual to calculate loss percentage

Cycle Timing Violation Analysis

When the PLC logs POWERLINK cycle time violations, the actual cycle exceeded the configured maximum. Diagnose by:

  1. Capture a 10-second Wireshark trace with filter epl
  2. Export to CSV and calculate the time delta between consecutive SoC frames
  3. Plot the cycle times — look for outliers and patterns
  4. Common causes:
    • Too many CNs for the configured cycle time
    • Async phase overflow — too much TCP/IP traffic on IF3
    • Switch latency spikes from managed switch features
    • Cable integrity issues causing retransmissions
    • Competing traffic from a misconfigured VLAN

Duplex Mismatch Detection

Duplex mismatch causes late collisions, FCS errors, and severe throughput degradation (often 40-60% packet loss):

SymptomDiagnostic
High FCS/CRC error count on switch portCheck port statistics on managed switch
Late collisions (after 64 bytes)Duplex mismatch almost certain
Intermittent POWERLINK node dropsMismatch causes frame loss at line rate
Works at 10 Mbps, fails at 100 MbpsOne end forcing speed without matching duplex

Fix: configure both ends to the same speed/duplex, or ensure both are set to auto-negotiate. Never mix auto-negotiate on one end with forced settings on the other.

Cable Quality Testing

MethodToolWhat It Tests
Continuity testBasic cable testerPin-to-pin connectivity
Cable certificationFluke DSX or equivalentCat5e/Cat6 compliance, NEXT, return loss, length
TDR (Time Domain Reflectometry)Cable certifier or network switchCable length, impedance mismatches, open/short locations
Bit Error Rate TestManaged switch port statisticsBER over extended test period

For POWERLINK networks, use Cat5e minimum (Cat6 preferred). Maximum cable run: 100 meters per segment. Longer runs require repeaters or fiber media converters. B&R fiber optic POWERLINK modules (X20ET001) are available for runs up to 2 km.

Network Storm Detection and Prevention

A network storm occurs when broadcast or multicast traffic floods the segment, blocking POWERLINK frames:

Storm TypeCauseDetection
Broadcast stormSpanning tree loop, misconfigured mirror portSwitch port statistics show >1000 broadcasts/sec
Multicast stormIGMP misconfiguration, POWERLINK floodingWireshark shows excessive POWERLINK SoC frames
ARP stormDuplicate IP, rogue DHCP serverWireshark filter arp shows continuous ARP requests

Prevention: enable broadcast storm control on managed switches (~100 pps threshold), disable unused ports, avoid creating loops without spanning tree, and use B&R POWERLINK hubs which do not propagate broadcasts.

Spanning Tree Issues with Managed Switches

Spanning Tree Protocol (STP/RSTP/MSTP) can disrupt POWERLINK:

ProblemImpactFix
STP blocking portPOWERLINK nodes behind blocked port unreachableConfigure port as edge/portfast
STP reconvergence30-50 second outage during topology changeDisable STP on POWERLINK ports
RSTP rapid reconvergence1-3 second outageStill disruptive for real-time; disable on POWERLINK ports
BPDU guard violationPort shuts downConfigure BPDU guard appropriately

For POWERLINK segments, disable spanning tree on the relevant ports or use “edge port” / “portfast” designation to skip the listening/learning phases.

Auto-Negotiation Failures

Auto-negotiation can fail between B&R devices and certain switches, resulting in:

Failure ModeSymptomFix
Speed mismatchNo link or 10 Mbps instead of 100 MbpsForce both ends to 100 Mbps Full
Duplex mismatchLink up but high CRC errorsForce both ends to same duplex
Link not establishedNo LED activityForce speed/duplex; try different cable
Intermittent linkLink drops under loadReplace cable; check connector seating

B&R Ethernet interfaces generally implement IEEE 802.3ab auto-negotiation correctly. Issues typically arise with older switches or non-standard Ethernet implementations. When auto-negotiation fails, forcing 100 Mbps Full Duplex on both the PLC and the switch port resolves the issue.

Firewall and Security Configuration

Ports Used by B&R Systems

PortProtocolServiceDirectionNotes
4840TCPOPC UAInboundDefault OPC UA endpoint port
80TCPSDM (HTTP)InboundSystem Diagnostics Manager web interface
443TCPSDM (HTTPS)InboundEncrypted SDM access
11169TCP/UDPANSLInboundAutomation NET Service Layer — device discovery
11160UDPANSL DiscoveryInboundBroadcast discovery protocol
20-21TCPFTPInboundFile transfer — transfer projects, firmware
161UDPSNMPInboundSimple Network Management Protocol
162UDPSNMP TrapOutboundSNMP trap notifications
22TCPSSHInboundSecure shell access (if enabled)
23TCPTelnetInboundUnencrypted remote access (disable if unused)
123UDPNTPOutboundTime synchronization (client)
502TCPModbus TCPInboundIf Modbus gateway configured

Firewall Rule Recommendations for B&R PLC Isolation

A minimum-viable firewall configuration for a B&R PLC:

RuleSourceDestinationPortActionPurpose
1SCADA ServerPLC4840AllowOPC UA access
2Engineering PCPLC80, 443AllowSDM web interface
3Engineering PCPLC20-21AllowFTP for project transfer
4Engineering PCPLC11169AllowANSL device discovery
5NTP ServerPLC123AllowTime synchronization
6SNMP ManagerPLC161AllowSNMP monitoring
7AnyPLCAnyDenyDefault deny all other traffic

For outbound traffic from the PLC, allow: NTP to NTP Server (123/UDP), Syslog to Log Server (514/UDP), and default deny all other outbound.

Network Segmentation for Security

Deploy B&R PLCs in a dedicated automation zone separated from the corporate IT network:

Corporate IT ──► Firewall (rules above) ──► Automation Zone (VLAN)
                                              ├── PLC 1 (192.168.1.10)
                                              ├── PLC 2 (192.168.1.11)
                                              ├── HMI (192.168.1.20)
                                              ├── SCADA Server (192.168.1.30)
                                              └── Engineering PC (192.168.1.100)

Key segmentation principles:

  • All traffic between IT and automation traverses a firewall
  • The automation zone has no direct internet access
  • Engineering PCs are dual-homed or access the automation zone via VPN
  • SNMP community strings are unique per device and not “public”
  • OPC UA uses certificate-based security (not “None” mode)

PLC-to-PLC Firewall Rules

When PLCs communicate directly (PLC-to-PLC, see plc-to-plc.md):

RuleSourceDestinationPortAction
1PLC 1PLC 211169Allow (ANSL)
2PLC 1PLC 24840Allow (OPC UA)
3PLC 1PLC 211160Allow (ANSL Discovery)

Restrict PLC-to-PLC communication to only the required ports. If PLCs only use POWERLINK for inter-communication (via shared bus), no TCP/IP firewall rules between them are needed.

SCADA/IT Network Demilitarized Zone (DMZ)

For plants requiring SCADA connectivity to both the automation zone and the corporate network, place SCADA servers in a DMZ between two firewalls: Corporate IT -> Firewall A -> DMZ (SCADA Server, Historian, OPC UA Gateway) -> Firewall B -> Automation Zone.

  • The SCADA server sits in the DMZ with two network interfaces
  • Firewall A allows SCADA-specific ports from corporate IT to the DMZ
  • Firewall B allows only SCADA-to-PLC ports from DMZ to automation zone
  • OPC UA gateways in the DMZ can bridge protocols (OPC UA to MQTT, OPC UA to REST)
  • The DMZ provides a buffer — if the corporate network is compromised, the attacker cannot directly reach PLCs

Multicast and Broadcast Handling

POWERLINK uses destination addresses that appear as multicast or broadcast on the wire:

Frame TypeDestination MACPurpose
SoC (Start of Cycle)01:EF:00:00:00:01 (POWERLINK multicast)MN signals start of new cycle to all CNs
PReq (Poll Request)Target CN’s unicast MACMN polls individual CN
PRes (Poll Response)MN’s unicast MACCN responds to MN
SoA (Start of Async)01:EF:00:00:00:01 (POWERLINK multicast)Signals async phase

POWERLINK SoC and SoA frames use a reserved multicast MAC address (01:EF:00:00:00:01) to simultaneously reach all CNs. This is not standard IPv4 multicast — it is an Ethernet-level multicast specific to POWERLINK.

IGMP Snooping Interaction

IGMP snooping on managed switches can interfere with POWERLINK:

ScenarioBehavior
IGMP snooping OFFPOWERLINK multicast floods all ports — works correctly for POWERLINK
IGMP snooping ON (no IGMP queries)Switch may block POWERLINK multicast after aging timeout — nodes go offline
IGMP snooping ON with queriesPLC does not respond to IGMP queries (not IP multicast) — multicast gets pruned

Recommendation: Disable IGMP snooping on all POWERLINK ports. If the switch requires IGMP snooping for other VLANs, place POWERLINK on a separate VLAN with snooping disabled, or use B&R POWERLINK hubs.

Broadcast Domain Sizing

The POWERLINK segment should be sized appropriately:

ParameterRecommended LimitMaximum
Nodes per MN10-20 CNs239 CNs (theoretical)
Nodes per hub chain4-8 devicesLimited by cable length and hub ports
Cable length (total chain)< 100 m per segment100 m per segment (Cat5e/6)
Cycle time with many nodesScale cycle time with node countEach CN adds ~5 µs to isochronous phase

Large POWERLINK networks (>50 nodes) require careful planning: use tree or star topology to reduce cable length per chain, increase cycle time proportionally to node count, consider multiple MNs for very large installations, and use ring topology for redundancy on critical paths.

ANSL Discovery Broadcast

ANSL (Automation NET Service Layer) uses broadcast for device discovery:

ProtocolPortDirectionPurpose
ANSL DiscoveryUDP 11160BroadcastLocates B&R devices on the subnet
ANSL ServiceTCP 11169UnicastDevice information retrieval

ANSL discovery broadcasts from Automation Studio (engineering PC) and from SDM. These broadcasts are limited to the local broadcast domain and do not traverse routers. If the engineering PC and PLC are on different subnets, ANSL discovery will not work — use direct IP connection or configure a DHCP relay. For network scanning:

# Scan for B&R devices using ANSL discovery
nmap -sU -p 11160 192.168.1.0/24 --open

# Check ANSL service on a known PLC
nmap -sT -p 11169 192.168.1.10

Key Findings (Updated)

  1. POWERLINK topology is auto-configuring — star, daisy chain, tree, ring, any combination works without manual setup. The MN (CP1584) automatically discovers and addresses all CNs.

  2. SDM is your first stop for network discovery — the web interface shows every device, its status, firmware version, and connection topology without needing any tools or software.

  3. B&R community tools are invaluable — brsnmp, ListAllBurPLCs, and brwatch give you command-line access to discover and manage B&R devices without Automation Studio.

  4. Physical cable tracing is essential — no software tool can tell you where cables actually run. Get your hands on the cabinet and follow every cable.

  5. POWERLINK and TCP/IP can share the same physical network, but separating them improves performance for critical applications.

  6. Node addressing is automatic for both POWERLINK and X2X — you don’t need to configure addresses manually (unless using specific addressing modes).

  7. POWERLINK requires deterministic switching — avoid standard managed switches with spanning tree or storm control. B&R POWERLINK hubs (X20HB8880) are purpose-built for zero-delay frame forwarding.

  8. Always keep POWERLINK on its own subnet (192.168.100.x) separate from Ethernet/IT traffic (192.168.1.x) to prevent routing conflicts and performance degradation.

  9. Default PLC IP is often 192.168.1.10 — if you can’t find the PLC, try this address. Factory reset restores it.


Cross-References