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

Building a Diagnostic Workstation for B&R PLC Systems

A properly equipped diagnostic workstation is the foundation for maintaining, troubleshooting, and reverse-engineering B&R CP1584 machines that have zero OEM documentation. This document specifies a complete hardware and software setup — including protocol analyzers, logic analyzers, oscilloscopes, CAN sniffers, POWERLINK sniffers, and software tools — along with a systematic diagnostic workflow checklist. The goal is to enable a single automation engineer to diagnose any problem on a legacy B&R system. Cross-references: physical-layer-sniffing.md for oscilloscope/logic analyzer techniques, cp1584-forensics.md for information extraction without project files, and first-60-minutes.md for the emergency recovery playbook.

1. Overview

1.1 The Diagnostic Workstation Concept

A diagnostic workstation is a self-contained hardware and software platform purpose-built for interrogating, monitoring, and troubleshooting B&R Automation CP1584 PLC systems that were deployed by OEMs no longer in business. Unlike ad-hoc troubleshooting where you scramble for cables, adapters, and software each time a machine goes down, a prepared workstation lets you walk up to any unknown CP1584 panel, connect in under five minutes, and begin systematic data extraction.

The core idea is separation of concerns: your diagnostic workstation is isolated from production networks, carries every adapter and tool you might need, and stores a library of captured configurations, firmware images, and protocol traces that accumulate value over time. Each new machine you diagnose adds to the knowledge base. Without a workstation, each engagement starts from zero.

1.2 Why Dedicated Tools Beat Ad-Hoc Troubleshooting

ProblemAd-Hoc ApproachWorkstation Approach
Network discoveryGuess IPs, unplug production devicesDedicated NIC, preconfigured subnet scanner
Protocol captureInstall Wireshark, find plugins, configurePOWERLINK profile loaded, capture filters ready
CAN diagnosticsBorrow adapter from another projectPCAN-USB in bag, PCAN-View configured
CF card workPull card, find reader, find imaging softwareCF slot or USB reader, dd/win32diskimager ready
Serial consoleHunt for RS232 adapter, find terminal appFDI cable in case, PuTTY profile saved
DocumentationHandwritten notes, lost in weeksStructured templates, version-controlled in repo

1.3 Cost Justification for a One-Man Automation Team

A fully equipped diagnostic workstation costs between $3,500 and $8,000 depending on how many optional items you include. Compare this to a single service call for an unknown machine: 8 hours at $150/hour is $1,200, and without the right tools you may need two or three visits. The workstation pays for itself after 3-4 unknown-machine engagements. Beyond payback, the accumulated protocol traces and configuration backups become an irreplaceable asset that no amount of on-site time can recreate.

Budget tiers:

TierCost RangeCoverage
Minimal$1,500-2,500Laptop + Ethernet + Wireshark + AS eval + serial adapter + multimeter
Standard$3,000-5,000Above + oscilloscope + CAN adapter + logic analyzer + PVI tools
Full$6,000-8,000Above + all optional items + portable case + spares

2. Workstation Hardware – Essential Equipment

2.1 Laptop/PC Requirements

Automation Studio (AS) is the primary constraint. AS runs exclusively on Windows (no Linux, no macOS native). B&R officially supports Windows 10 and Windows 11; Windows 7 reached end-of-support in AS 4.5+. Virtual machines work but add latency and complicate driver installation for network adapters and CAN hardware.

Minimum Specifications

ComponentMinimumRationale
CPUIntel Core i5-8250U or equivalentAS compiles, downloads, and cross-references large projects
RAM8 GBAS alone consumes 2-3 GB; add Wireshark + browser and you are at 6 GB
Storage50 GB free on SSDAS installation is 15-20 GB; CF card images are 2-8 GB each
OSWindows 10 64-bit (21H2+)AS 4.5+ requires 64-bit OS
Ethernet1x Gigabit RJ45PLC connection; must be separate from Wireshark capture NIC if possible
USB3x USB 3.0 portsCAN adapter, logic analyzer, serial adapter simultaneously
Display1920x1080 minimumAS UI requires horizontal space for multiple panels
ComponentRecommendedRationale
CPUIntel Core i7-11800H or i7-1370PFaster compile times; handles VM + AS simultaneously
RAM16 GBComfortable headroom for AS + Wireshark + OPC-UA client + browser
Storage512 GB NVMe SSDFast CF card imaging; room for 50+ card images and protocol captures
Ethernet2x Gigabit RJ45 (Intel I210 or I225)One port for PLC connection, one for Wireshark capture
USB1x USB-C with PD + 3x USB-AFlexibility for modern adapters
Display15.6“ 1920x1080 IPS or 17.3“Larger screen reduces window management overhead
ModelApprox. CostNotes
Lenovo ThinkPad T14 Gen 4 (i7, 16GB, 512GB)$1,200-1,600Intel I219-V NIC, excellent Linux compatibility for dual-boot
Dell Latitude 5540 (i7, 16GB, 512GB)$1,100-1,500Good port selection, Intel I225-V NIC
Panasonic Toughbook 55 (semi-rugged)$2,500-3,500For harsh environments; costs more but survives drops

These models were current as of mid-2026. For newer purchases, prioritize: Intel I210 or I225-V NIC, minimum 16 GB RAM, Windows 11 64-bit, and at least two USB 3.0 ports.

Automation Studio Version Strategy

B&R ties Automation Studio versions to Automation Runtime (AR) versions. A CP1584 may run AR 4.x. You need AS compatibility:

Target AR VersionRequired AS VersionNotes
AR 4.10-4.14AS 4.10+Current generation
AR 4.70-4.90AS 4.7-4.9Common on CP1584 units from 2018-2022
AR 4.50-4.66AS 4.5-4.6Older CP1584 deployments
AR 4.10-4.40AS 4.1-4.4Legacy; may need older AS installation

Strategy: Install the newest AS version you can license. It has backward compatibility to open older projects. If you encounter a project that requires an older AS version, install that version in a VM. Maintain at least two AS versions on the workstation.

Virtual Machine Considerations

If you need to run an older AS version or want a Linux side for Wireshark/Sigrok/SocketCAN:

  • VMware Workstation Player (free for non-commercial) or VirtualBox (free)
  • Allocate 4 CPU cores, 8 GB RAM, 80 GB disk to the VM
  • Pass through USB devices (CAN adapter, logic analyzer) to the VM
  • Network bridging for PLC access from VM
  • Snapshot the VM after AS installation so you can revert cleanly

Hard Drive Imaging Strategy for CF Card Work

CF cards in B&R systems use a custom partition layout. You will need to:

  • Read CF cards with industrial-grade readers (not cheap camera readers)
  • Create full binary images with dd, Win32 Disk Imager, or Clonezilla
  • Store images with metadata: machine ID, date, firmware version, AR version
  • Maintain a library of known-good images for common configurations
  • Write images back to replacement CF cards for recovery

Recommended CF card reader: Transcend TS-RDF8K (USB 3.0, supports CF, SD, microSD) or a dedicated PCMCIA/CF adapter for direct slot access.


2.2 Network Tools

Dedicated Ethernet NIC for PLC Connection

The Intel I210 and I225-V are the gold standard for industrial Ethernet work. They have reliable driver support, work with Wireshark in promiscuous mode, and handle the precise timing required for POWERLINK analysis.

AdapterInterfaceCostNotes
Intel I219-V (integrated on most business laptops)RJ45IncludedAdequate for basic PLC connection
StarTech USB3.0 to Gigabit Ethernet (ST3300GU3)USB 3.0$35Good backup; uses ASIX or Realtek chipset
Intel I210-T1 (PCIe or USB3 enclosure)RJ45$40-70Best choice for Wireshark capture NIC
TP-Link USB 3.0 to Gigabit Ethernet (UE300)USB 3.0$20Budget option; Realtek RTL8153 chipset

For POWERLINK sniffing, you need a NIC that supports promiscuous mode reliably. Intel chipsets are the safest bet. Realtek chipsets sometimes drop packets under high POWERLINK traffic loads.

Network Switch Requirements

FeatureRequirementReason
Speed100 Mbps minimumPOWERLINK operates at 100 Mbps; Gigabit switches must auto-negotiate correctly
Ports5-8 ports unmanaged or 8-16 managedEnough for PLC, workstation, and tap points
MirroringPort mirroring (managed switch)Essential for Wireshark POWERLINK capture without inline tap
PowerPoE optionalNot needed for PLC connection but useful for IP cameras

Recommended switch: Netgear GS105E (5-port, managed, $45) or Cisco SG250-08 (8-port, fully managed, $150). The managed switch with port mirroring is strongly recommended for POWERLINK diagnostics.

Ethernet Cables and Adapters

ItemSpecCostQty
Cat5e patch cables (assorted lengths)1m, 3m, 5m, 10m$3-8 each8
Cat5e crossover cableMDI-X crossover$52
RJ45 coupler (female-female)Cat5e rated$24
USB-C to Ethernet adapterGigabit$15-251
Ethernet loopback plugRJ45$51

2.3 Oscilloscope

Why an Oscilloscope for PLC Diagnostics

An oscilloscope is indispensable for diagnosing analog signal problems (0-10V, 4-20mA sensors), verifying encoder signals (A/B quadrature), checking POWERLINK physical layer integrity, analyzing CAN bus signal quality, and debugging X2X bus timing issues. Without one, you are guessing at electrical problems.

ModelChannelsBandwidthSample RateCostNotes
Rigol DS1054Z4100 MHz1 GSa/s$400-600Best value; hackable to DS1104Z; LAN + USB
Siglent SDS1104X-E4100 MHz1 GSa/s$450-650Similar to Rigol; 16 digital channels optional
Rigol DS1054Z Plus4100 MHz1 GSa/s$500-700Newer firmware; better UI
Keysight DSOX1102G2100 MHz1 GSa/s$650-9002-channel; Keysight quality; LAN
Rigol DS1204Z-E4200 MHz1 GSa/s$700-900Higher bandwidth for fast edge analysis

The Rigol DS1054Z is the consensus recommendation for automation diagnostics. Four channels let you monitor two differential signals simultaneously (e.g., CAN-H and CAN-L plus a trigger signal). The 100 MHz bandwidth covers all signals you will encounter on a B&R system.

High-End Option

For teams that need deeper analysis (power electronics, high-frequency EMC, motor drive waveforms):

ModelChannelsBandwidthCostNotes
Keysight DSOX3014T4200 MHz$3,500-5,000Touchscreen, protocol decode, built-in LAN
Tektronix MDO344 analog + 16 digital200 MHz$5,000-8,000Mixed signal; integrated spectrum analyzer

Probe Requirements

Probe TypeSpecificationCostUse Case
10x passive probe100 MHz, 10 MOhmIncluded with scopeGeneral purpose signal measurement
Differential probe100 MHz, CAT III$200-400CAN bus (CAN-H vs CAN-L), X2X differential signals
Current probeAC/DC clamp, 100A$150-300Motor current, power supply draw
BNC to alligator clip adapterGeneric$5Quick connections to terminal blocks

A differential probe is the single most important accessory beyond the included passive probes. It lets you safely measure CAN-H and CAN-L relative to each other without ground-reference problems that plague single-ended measurements on differential buses.

Oscilloscope Use Cases for B&R Diagnostics

  1. POWERLINK physical layer: Verify 100BASE-TX signal quality at the PLC RJ45 port. Look for jitter, amplitude droop, and retransmissions.
  2. CAN bus signal integrity: Check CAN-H and CAN-L differential voltage (should be 1.5-2.5V differential in dominant state). Identify reflections from improper termination.
  3. Analog sensor verification: Confirm 4-20mA loop current, 0-10V sensor output, and identify noise sources.
  4. Encoder signal analysis: Verify A/B quadrature timing, index pulse, and count accuracy.
  5. X2X bus timing: Measure clock, data, and enable signal relationships on the X2X flat cable bus.
  6. Power supply ripple: Check 24V supply stability, measure ripple under load.

2.4 Logic Analyzer

Why a Logic Analyzer

Logic analyzers capture digital signals with high channel count and precise timing. For B&R diagnostics, the primary use case is X2X protocol analysis (8-16 digital lines) and SPI/I2C bus debugging on IO modules. They complement oscilloscopes: the scope gives you analog detail on a few channels, the logic analyzer gives you digital timing on many channels.

ModelChannelsSample RateMax VoltageCostNotes
Saleae Logic 88100 MSa/s5V$500Excellent software; protocol decode library
Saleae Logic Pro 1616500 MSa/s5V$1,50016 channels essential for X2X analysis
Sigrok/PulseView + generic 8CH LA824 MSa/s5V$10-30Budget option; open source software
Sigrok/PulseView + DreamSourceLab DSLogic16400 MSa/s5V$100-200Open hardware + software; good value

Channel Count Requirements

ProtocolMinimum ChannelsRecommended Channels
X2X (B&R proprietary)8 (data + clock + frame)16 (full bus decode)
SPI4 (MOSI, MISO, SCLK, CS)4
I2C2 (SDA, SCL)2 (+ additional CS lines)
UART1 (TX or RX)2 (TX + RX)
CAN (digital)1 (CAN-H or CAN-L)2 (CAN-H + CAN-L)
Parallel IO816+

For X2X analysis, 16 channels is strongly recommended. The X2X bus uses a flat cable with up to 16 data lines plus clock and frame signals. With only 8 channels you cannot capture the full bus transaction.

Protocol Decoding Support

ProtocolSaleae SoftwareSigrok/PulseView
SPIYesYes
I2CYesYes
UART/RS232YesYes
CANYes (with CAN analyzer input)Yes (via GPIO)
1-WireYesYes
Custom/asyncYes (async analyzer)Yes

For X2X protocol, neither Saleae nor Sigrok has a built-in decoder. You will need to define a custom protocol or export raw captures and decode with Python. See x2x-protocol.md for X2X frame format details.

Use Cases

  1. X2X bus sniffer: Connect to the flat cable header on a B&R IO module, capture bus traffic, decode frame structure.
  2. SPI flash reading: Read configuration data from SPI flash chips on IO modules or interface boards.
  3. Digital IO timing: Verify sensor response times, output switching delays, and watchdog timeout behavior.
  4. Custom protocol reverse engineering: Capture undocumented serial protocols between PLC and proprietary peripherals.

2.5 CAN Bus Tools

Why CAN Tools

B&R systems use CANopen extensively through modules like the IF2772 (CANopen interface module). Many OEM machines also have CAN buses for auxiliary devices (drives, sensors, HMIs). Without a CAN adapter, you are blind to this communication layer.

AdapterInterfaceChannelsCostSoftware
PEAK PCAN-USBUSB 2.01$150-200PCAN-View (free), PCAN-Basic API
PEAK PCAN-USB FDUSB 2.01 CAN-FD$300-400Same as above + CAN-FD support
PEAK PCAN-USB Pro FDUSB 2.02 CAN-FD$500-600Dual channel for gateway sniffing
Kvaser Leaf Light HS v2USB1$300-350Kvaser CANlib
Kvaser Memorator Pro 5xHSUSB5$1,500+Logging + real-time

The PEAK PCAN-USB is the recommended starting point. It is affordable, well-supported on Windows, and PCAN-View provides immediate CAN bus monitoring without additional software cost.

Professional CAN Software

SoftwareCostPlatformNotes
PCAN-ViewFree with PEAK adapterWindowsBasic TX/RX, trace, signal decode
CANalyzer (Vector)$3,000-8,000WindowsIndustry standard; database import, scripting
CANoe (Vector)$5,000-15,000WindowsFull simulation + analysis; overkill for most diagnostics
CANtrace (CSS Electronics)$200-500WindowsMid-range; good trace analysis

For diagnostic work, PCAN-View is usually sufficient. If you need to simulate CAN nodes or build automated test sequences, CANalyzer becomes justified.

Linux Alternative: SocketCAN

For Linux-based workstations or Raspberry Pi field tools:

sudo apt install can-utils
sudo ip link set can0 up type can bitrate 500000
candump can0
cansend can0 123#1122334455667788
canplayer -I can0_log

PEAK PCAN adapters have Linux kernel support (peak-linux-driver). Kvaser also provides Linux drivers.

CAN Physical Layer Components

ItemSpecificationCostQty
CAN DB9 to DB9 cable2m, 120-ohm terminated$152
DB9 T-connector with termination120-ohm$104
DB9 to open-wire adapterScrew terminals$84
120-ohm terminating resistorDIP or solder$26
CAN-H/CAN-L breakout boardIndicator LEDs$52

Ethernet POWERLINK (EPL) is B&R’s real-time Ethernet protocol used for communication between CP1584 PLCs, IO modules, drives, and HMIs. The protocol runs on standard Ethernet hardware but uses a managed cycle. Without sniffing capability, you cannot diagnose communication errors, timing problems, or identify the nodes on the network.

Wireshark is the primary tool for POWERLINK capture. The POWERLINK dissector plugin is maintained by the openPOWERLINK community.

Setup procedure:

  1. Install Wireshark 3.x or 4.x (latest stable)
  2. Download the openPOWERLINK Wireshark dissector from the openPOWERLINK project on SourceForge or GitHub
  3. Place the dissector DLL (on Windows: powerlink.dll) in the Wireshark plugins directory:
    • C:\Program Files\Wireshark\plugins\4.x\ (adjust for your version)
  4. Restart Wireshark
  5. Verify: open Edit > Preferences > Protocols, search for “POWERLINK”

The dissector decodes:

  • Start of Cycle (SoC) frames
  • Poll Request / Poll Response pairs
  • Node-to-node communication
  • ASnd (asynchronous send) frames
  • Error frames and timeout indicators

Capture Hardware Requirements

POWERLINK operates at 100 Mbps with precise timing. Reliable capture requires:

  • A dedicated Ethernet NIC not used for any other traffic
  • Promiscuous mode support
  • No offloading features (disable checksum offload, TCP segmentation offload)
  • A managed switch with port mirroring OR a network tap
MethodEquipmentProsCons
Port mirroringManaged switch ($45-150)Non-invasive, no packet lossSome switches modify timestamps or reorder packets
Network tapEthernet tap ($30-80)Guaranteed no modificationRequires inline placement; extra cables
Promiscuous on same NICSingle NICNo extra hardwareMisses traffic while workstation sends; no full-duplex capture
Dual NIC (one capture, one control)Two NICs or USB-EthernetFull-duplex captureMore hardware; driver complexity

Recommended approach: managed switch with port mirroring. Mirror the PLC port to the capture NIC. This is non-invasive and captures all traffic including broadcasts.

NIC Configuration for Capture

On the capture NIC, disable all offloading features to prevent packet manipulation:

Windows (via Device Manager > Advanced):

  • Disable “Checksum Offload”
  • Disable “Large Send Offload”
  • Disable “TCP Checksum Offload”
  • Disable “UDP Checksum Offload”
  • Disable “Interrupt Moderation”

Linux (via ethtool):

sudo ethtool -K eth0 rx off tx off gso off gro off tso off
sudo ethtool -C eth0 rx-usecs 0 rx-frames 0

See powerlink-internals.md for POWERLINK frame structure details.


2.7 Serial Communication Tools

Why Serial Tools

B&R PLCs have serial ports (RS232 on the CP1584 front panel, RS485 on some IO modules) used for Modbus communication, printer output, legacy device connections, and sometimes the system console. Many OEM machines use serial protocols that are undocumented.

RS232/RS485 USB Adapters

AdapterChipsetInterfaceCostNotes
FTDI FT232RL cableFTDI FT232RLUSB-RS232$12-20Gold standard; most reliable driver support
FTDI FT234XD breakoutFTDI FT234XDUSB-TTL$10-15For direct TTL-level connections (3.3V/5V)
FTDI USB-RS485-WEFTDI FT232R + RS485 transceiverUSB-RS485$25-35Integrated 120-ohm termination
Prolific PL2303-basedProlificUSB-RS232$5-10Avoid; driver issues on Windows 10/11
CH340-basedCH340USB-RS232$4-8Works but marginal; no galvanic isolation

Always buy FTDI chipset adapters. Prolific and CH340 have driver instability problems that will waste your time during diagnostics.

RS485 Non-Invasive Tapping

To monitor an existing RS485 bus without disrupting it:

MethodEquipmentCostNotes
RS485 Y-cable tapCustom Y-cable with 3 connectors$15-25One male, two female DB9
RS485 breakout board with tapScrew terminal breakout$10-15Solder wires in parallel to D+ and D-
Industrial RS485 tapProfiTap or similar$50-100Galvanically isolated; safest option

The Y-cable approach works but is invasive (requires unplugging). The breakout board soldered in parallel is the practical approach for one-man teams. See serial-diagnostics.md for detailed procedures.

RS232 Monitoring Y-Cable

For RS232 TX/RX monitoring without disrupting communication, build a Y-cable:

Device TX  ---[1k resistor]---+--- Monitor RX
                             |
Device RX  ---------------+--- Monitor TX
                         |
Ground ------------------+

The 1k resistor on the TX tap prevents the monitor from loading the TX line. This lets you passively sniff RS232 communication.


2.8 Multimeter and Hand Tools

ModelCostKey Features
Fluke 87V$350-450True-RMS, 1000V CAT IV, data logging, temperature
Fluke 117$200-280Non-contact voltage detection, CAT III 600V
Keysight U1242C$250-350Handheld, data logging, IR temperature

The Fluke 87V is the industrial standard. Its data logging mode (records up to 10,000 readings) is useful for recording voltage trends over time during machine operation. The temperature probe accessory measures ambient and surface temperatures for thermal diagnostics.

Additional Electrical Test Equipment

ItemSpecificationCostUse Case
Insulation resistance tester (megger)250V/500V/1000V test voltages$200-400Ground insulation testing; verify PE conductor integrity
Clamp meter (AC/DC current)DC + AC, 400A range$150-300Measure ground currents, motor current, supply loading
Ground bond tester25A/30A continuity test$300-600Verify protective earth connections
Loop resistance tester4-wire Kelvin measurement$200-400Measure contact resistance in terminals and connectors

Ground current measurement with a clamp meter is critical for diagnosing EMC problems. See grounding-emc.md for procedures.

Hand Tools

ItemSpecificationCost
Terminal screwdriver setWera 050 or Wiha slim$40-60
Wire crimper (Ferrules)0.5-16mm2 ferrule crimper$30-50
Wire strippersKnipex 12 16 185$25-35
Insulation displacement tool (IDC)For B&R X2X flat cable$15-25
CF card readerUSB 3.0, CF Type I/II$20-40
USB-TTL serial adapterFTDI FT232RL 3.3V$10-15
Label makerBrother P-Touch$50-80
Fiber optic cleaning kitLC/SC cleaning$30-50

2.9 Physical Layer Tools

CAN Physical Layer

ItemSpecificationCostQty
DB9 T-connector with 120-ohm terminationCAN standard$104
DB9 pass-through terminatorSwitchable 120-ohm$152
DB9 to flying leads adapterScrew terminals$84
CAN bus oscilloscope test pointsBNC adapters$52

Ethernet Testing

ItemSpecificationCostQty
Ethernet cable testerRJ45 continuity + wiring$15-251
Network cable certifier (optional)Fluke MicroScanner or equivalent$400-8001
RJ45 crimper + connectorsCat5e RJ45, strain relief boots$30-501 set

EMC Investigation Tools

ItemSpecificationCostNotes
DIY near-field probeFerrite core + coax cable$5-10Detect radiated emissions from cables and modules
Current probe (HF)100 kHz-1 GHz$200-400Measure common-mode currents on cables
PMR radio (walkie-talkie)446 MHz$30-60Quick EMC proximity test; crackling indicates poor shielding

The DIY near-field probe is made from a small ferrite bead (Material 43 or similar) with a short length of coax cable:

Cut coax to 10cm. Strip one end, wrap 3-4 turns around ferrite bead.
Connect other end to BNC. Use with spectrum analyzer or scope
set to 1 MOhm input, 20 MHz bandwidth.

See physical-layer-sniffing.md for detailed EMC measurement procedures.


3. Software Tool Suite

3.1 Automation Studio

Version Selection

Install the version that covers the widest range of AR versions you expect to encounter. For CP1584 systems, AS 4.7+ covers most deployments from 2016 onward.

Deployment EraTypical AR VersionAS Version Needed
2013-2015AR 4.10-4.20AS 4.2-4.3
2016-2018AR 4.30-4.50AS 4.4-4.5
2018-2020AR 4.60-4.80AS 4.7-4.8
2020-2023AR 4.80-4.14AS 4.8-4.10
2023+AR 4.14+AS 4.10+

Strategy: Install AS 4.10 as primary (covers AR 4.10+). Keep AS 4.5 in a VM for legacy systems.

Service Contract and Licensing

  • B&R Automation Studio requires a service contract for updates and full features
  • Without a service contract, you can use the last version released before your contract expired
  • Evaluation licenses are available (30 days, extendable by request) for initial assessment
  • For a diagnostic workstation, consider a shared license pool if your organization has multiple B&R users

Installation on Diagnostic Workstation

  1. Install Windows 10/11 clean install (avoid bloatware)
  2. Install Automation Studio (run installer as Administrator)
  3. Install target AR versions via the AS Update Manager
  4. Install mapp Technology packages if needed
  5. Configure AS network settings for the dedicated PLC NIC
  6. Create a default project template for new machine diagnostics
  7. Set AS default directory to a dedicated work folder (not My Documents)

3.2 Wireshark

Detailed in Section 2.6. Key configuration steps:

  1. Install Wireshark from wireshark.org (not Microsoft Store version)
  2. Install Npcap when prompted (packet capture driver)
  3. Download openPOWERLINK dissector from openPOWERLINK GitHub releases
  4. Copy powerlink.dll to C:\Program Files\Wireshark\plugins\<version>\
  5. Verify dissector loads: Wireshark > About > Plugins, search for POWERLINK

Capture Filter Profiles for B&R Protocols

Create custom capture profiles for common scenarios:

POWERLINK capture filter:

ether proto 0x88ab

This filters for the POWERLINK ethertype (0x88AB).

CAN bus capture (via PCAN or SocketCAN):

(no display filter needed; CAN frames are already isolated by interface)

Modbus TCP capture filter:

tcp port 502

OPC-UA capture filter:

tcp port 4840

FTP capture filter (for CF card access):

tcp port 21 or tcp port 20

SDM (Service and Diagnosis Manager) capture filter:

tcp port 11159

Display Filters

POWERLINK node filter:

powerlink.node_id == 0x01

POWERLINK error frames:

powerlink.type == error

Modbus exceptions:

modbus.exception_code > 0

3.3 OPC-UA Clients

UaExpert (Free)

UaExpert by Unified Automation is the most capable free OPC-UA client:

  • Browse server address space
  • Read/write variables
  • Subscribe to monitored items
  • Call methods
  • Historical data access
  • Export node definitions

Connection to B&R OPC-UA server:

  1. In Automation Studio, enable OPC-UA server in the PLC configuration
  2. Set the endpoint URL (typically opc.tcp://<PLC-IP>:4840)
  3. Configure security policy (None for diagnostics, or Basic256Sha256 for production)
  4. In UaExpert, add server endpoint, connect, browse namespace

Python asyncua

import asyncio
from asyncua import Client

async def main():
    url = "opc.tcp://192.168.1.10:4840"
    async with Client(url=url) as client:
        root = client.nodes.root
        children = await root.get_children()
        for child in children:
            print(f"  {child.browse_name}: {await child.get_display_name()}")
        var = client.get_node("ns=2;s=SystemVariables.MachineStatus")
        value = await var.read_value()
        print(f"Machine status: {value}")

asyncio.run(main())

See opcua.md for detailed OPC-UA configuration and advanced patterns.

Node-RED OPC-UA Nodes

Node-RED provides a visual programming environment with OPC-UA nodes:

  1. Install Node-RED: npm install -g node-red
  2. Install OPC-UA package: cd ~/.node-red && npm install node-red-contrib-opcua
  3. Configure OPC-UA server endpoint in the node
  4. Build flow: Read variable -> Transform -> Display/Log/Alert

3.4 PVI Tools

PVI Development Setup

PVI (Process Visualization Interface) is B&R’s proprietary communication protocol. The PVI Development Setup provides:

  • PVI Manager (connection configuration)
  • PVI Transfer (data transfer with PLC)
  • PVI API (C/C++ library for custom applications)

Download from B&R website (requires service contract or registration). Install on the diagnostic workstation alongside Automation Studio.

brsnmp

brsnmp (github.com/hilch/brsnmp) is an open-source C++ Windows command-line tool for executing PVI-SNMP commands against B&R PLCs. It requires B&R PVI Development Setup (PVI 4.x or 6.5.2+) to be installed. Download the binary from the GitHub releases page.

brsnmp --list                        # List all B&R PLCs on the network
brsnmp --filter=X20CP1584 --details  # Get detailed info for specific model
brsnmp --filter=$LAST --ipAddress=192.168.1.50  # Set IP (use $LAST to reuse previous filter)

This is invaluable for quick system information extraction when you do not have Automation Studio available.

Python PVI Wrapper (Pvi.py)

Community Python wrapper around the PVI COM interface:

from pvi import PviConnection, PviVariable
conn = PviConnection('192.168.1.10')
var = PviVariable(conn, 'MainProgram.Status')
value = var.read()
print(f"Status: {value}")

See pvi-api.md for complete PVI configuration and Python wrapper documentation.


3.5 Serial Communication Software

SoftwarePlatformCostKey Features
PuTTYWindows/Linux/MacFreeSSH, Telnet, serial; scriptable
Tera TermWindowsFreeSerial with macro scripting; log capture
RealTermWindowsFreeHex display, bridge mode, embedded scripting
DocklightWindows$100-200Protocol-level analysis, scripting, responses
HTermWindowsFreeSimilar to RealTerm; clean interface
Saleae Logic SoftwareWindows/Mac/LinuxFree with hardwareProtocol decode for serial captured via logic analyzer

Recommended: Tera Term for interactive serial communication (macro scripting lets you automate common queries). RealTerm for binary/hex analysis. Saleae Logic for capturing and decoding serial protocols electrically.

Tera Term serial configuration for B&R default settings:

Baud rate: 9600 or 19200 (check PLC configuration)
Data bits: 8
Parity: None
Stop bits: 1
Flow control: None
Terminal: VT or ANSI

See serial-diagnostics.md for comprehensive serial diagnostic procedures.


3.6 Python Environment

Installation

Use Python 3.8+ (3.10 or 3.11 recommended for best library compatibility). Install via python.org or conda.

Key Packages

PackagePurposeInstall Command
asyncuaOPC-UA client/serverpip install asyncua
pymodbusModbus TCP/RTU client/serverpip install pymodbus
pyserialSerial port communicationpip install pyserial
paho-mqttMQTT clientpip install paho-mqtt
scapyPacket manipulation and capturepip install scapy
numpyNumerical analysispip install numpy
pandasData analysis and CSV handlingpip install pandas
matplotlibPlotting and visualizationpip install matplotlib
jupyterInteractive notebookspip install jupyter
canCAN bus (SocketCAN, PCAN, etc.)pip install python-can

Virtual Environment Setup

python -m venv C:\br-diagnostics\venv
C:\br-diagnostics\venv\Scripts\activate
pip install -r requirements.txt

Create a requirements.txt file listing all packages. Pin versions for reproducibility.

Jupyter Notebooks

Jupyter notebooks are ideal for interactive protocol analysis. Example workflow:

  1. Capture protocol data (Wireshark export to CSV/JSON)
  2. Load into Jupyter notebook
  3. Parse and visualize using pandas/matplotlib
  4. Extract patterns, identify anomalies
  5. Document findings inline with code

See python-diagnostics.md for complete Python diagnostic tool library.


3.7 Network Utilities

ToolPlatformPurposeCost
nmapWindows/Linux/MacNetwork discovery, port scanningFree
Advanced IP ScannerWindowsNetwork device discoveryFree
WiresharkWindows/Linux/MacProtocol capture and analysisFree
PCAN-ViewWindowsCAN bus monitoringFree with PEAK adapter
arp-scanLinuxARP-based device discoveryFree
Angry IP ScannerWindows/Linux/MacFast IP range scannerFree
FiddlerWindowsHTTP/HTTPS debuggingFree
PuttyWindowsSSH/Serial/TelnetFree

nmap Quick Reference for B&R Discovery

Discover B&R PLCs on a network:

nmap -sn 192.168.1.0/24
nmap -p 21,80,11159,4840,502 192.168.1.0/24
nmap -O 192.168.1.0/24

Port signatures for B&R systems:

PortServiceProtocol
21FTPCF card access
80HTTPWeb interface
443HTTPSSecure web interface
11159SDMService and Diagnosis Manager
4840OPC-UAOPC Unified Architecture
502Modbus TCPModbus gateway (if configured)
161/162SNMPSystem monitoring
6969B&R specificConfiguration transfer

4. Complete Equipment List with Costs

4.1 Essential Equipment

CategoryItemModel/BrandEst. Cost (USD)Priority
ComputingLaptopLenovo ThinkPad T14 (i7, 16GB, 512GB)$1,300Essential
NetworkUSB Ethernet adapterIntel I210-based (StarTech or similar)$45Essential
NetworkCat5e patch cables (assorted)Various$30Essential
NetworkManaged switch (port mirroring)Netgear GS105E$45Essential
Oscilloscope4-channel DSORigol DS1054Z$500Essential
OscilloscopeDifferential probeRigol or Micsig$250Essential
MultimeterIndustrial true-RMSFluke 87V$400Essential
SerialRS232 USB adapter (FTDI)FTDI FT232RL cable$15Essential
SerialRS485 USB adapter (FTDI)FTDI USB-RS485-WE$30Essential
SerialTTL serial adapterFTDI FT232RL 3.3V breakout$10Essential
SoftwareAutomation StudioB&R AS 4.10License-dependentEssential
SoftwareWireshark + NpcapWireshark.orgFreeEssential
StorageCF card readerTranscend TS-RDF8K$25Essential
Hand toolsTerminal screwdriver setWera 050$50Essential
Hand toolsWire crimper/stripperKnipex$60Essential
Hand toolsLabel makerBrother P-Touch$60Essential

Essential subtotal: $2,850 (excluding AS license)

CategoryItemModel/BrandEst. Cost (USD)Priority
CAN BusCAN USB adapterPEAK PCAN-USB$170Recommended
Logic Analyzer8-channel LASaleae Logic 8$500Recommended
Logic Analyzer16-channel LASaleae Logic Pro 16$1,500Recommended
NetworkEthernet crossover cableCat5e MDI-X$5Recommended
NetworkEthernet cable testerFluke MicroScanner or generic$25Recommended
CAN BusCAN breakout + terminatorsVarious$40Recommended
SoftwareUaExpert OPC-UA clientUnified AutomationFreeRecommended
SoftwarePCAN-ViewPEAKFree with adapterRecommended
SoftwareTera Term + RealTermFree softwareFreeRecommended
SerialRS485 breakout boardScrew terminal type$10Recommended
PythonPython 3.10 + packagesPython.orgFreeRecommended
ElectricalClamp meter (AC/DC)Fluke i400 or similar$250Recommended
ElectricalInsulation tester (megger)Fluke 1587 or similar$350Recommended
PhysicalBNC adapters and cablesVarious$50Recommended
PhysicalEMC near-field probe (DIY)Ferrite + coax$10Recommended

Recommended subtotal: $2,970 (choosing Saleae Logic 8 over Pro 16)

4.3 Optional Equipment

CategoryItemModel/BrandEst. Cost (USD)Priority
OscilloscopeHigh-end DSOKeysight DSOX3014T$4,000Optional
CAN BusCAN analyzer softwareVector CANalyzer$4,000Optional
NetworkNetwork cable certifierFluke DSX-5000$3,500Optional
ElectricalGround bond testerMegger MIT430$500Optional
ElectricalHF current probeFischer CT-2 or similar$400Optional
ComputingSecond laptop (Linux)Any i5, 8GB$500Optional
PortablePelican case (rolling)Pelican 1510$280Optional
PortablePortable monitorGeChic 15.6“ USB-C$250Optional
StorageExternal SSD (1TB)Samsung T7$100Optional
Logic AnalyzerSigrok + DreamSourceLabDSLogic Pro16$150Optional
Spare partsCF cards (8GB, industrial)Transcend 800x$40Optional
Spare partsEthernet cables (spool)Cat5e 305m box$50Optional
CAN BusPCAN-USB FD (CAN-FD)PEAK$350Optional
SoftwareNode-RED + OPC-UAOpen sourceFreeOptional

Optional subtotal: $14,120 (selecting items as needed)


5. Workstation Setup Procedures

5.1 Network Configuration

Dedicated PLC Network Interface Setup

  1. Identify the Intel I210 (or primary) NIC in Windows Device Manager
  2. Rename the adapter: “PLC Network”
  3. Configure a static IP in the B&R default range:
    • IP: 192.168.1.100 (workstation)
    • Subnet: 255.255.255.0
    • Gateway: Leave blank
    • DNS: Leave blank
  4. Disable all power management on this adapter (Device Manager > Power Management)
  5. Set adapter metric to 1 (highest priority) to ensure PLC traffic uses this interface

If the PLC uses a different subnet (determined during discovery), change accordingly. Keep notes on which subnets each machine uses.

Wireshark Capture NIC Configuration

If using a second NIC for Wireshark capture:

  1. Rename the second adapter: “Capture NIC”
  2. Configure static IP on a different subnet (or leave unconfigured)
  3. Disable all offloading features (see Section 2.6)
  4. In Wireshark, select only this adapter for capture
  5. Set Wireshark capture buffer to maximum (128 MB or more)

POWERLINK requires 100 Mbps full-duplex links. Configure the switch port and NIC:

  1. Set switch port connected to PLC to 100 Mbps full-duplex (disable auto-negotiation if problems occur)
  2. Set capture NIC to 100 Mbps full-duplex
  3. Verify link lights on both switch port and NIC
  4. Test with a ping to the PLC IP before attempting capture

DNS Configuration

For most diagnostic work, you do not need DNS. Use host files if needed:

# C:\Windows\System32\drivers\etc\hosts
192.168.1.10    cp1584-machine-a
192.168.1.11    cp1584-machine-b

5.2 Physical Connections

First Contact Procedure for Unknown B&R System

Before connecting anything to an unknown machine:

Step 1: Safety Assessment

  • Verify LOTO (Lock-Out/Tag-Out) procedures with the plant
  • Confirm machine is in a safe state (E-stop engaged, drives disabled)
  • Identify all power sources: 24V DC, 230V AC, 400V AC (3-phase), pneumatic
  • Verify ground connections are intact
  • Check for stored energy (capacitors, pressurized systems, suspended loads)

Step 2: Visual Inspection

  • Locate the CP1584 PLC (look for the B&R logo and model number on the front panel)
  • Note the IP address label (often handwritten on a sticker)
  • Identify all connected cables (Ethernet, CAN bus, X2X, serial, power)
  • Photograph all cable connections and panel layouts
  • Note LED status on CP1584 (PWR, RUN, ERR, BF, MS)
  • Check for obvious damage (burnt components, water ingress, loose connectors)

Step 3: Physical Connection

  1. Connect workstation Ethernet cable to the PLC Ethernet port (labeled ETH0 or ETHERNET)
  2. Connect serial cable if available (RS232 on front panel, COM1)
  3. Connect CAN adapter if CAN bus access is needed (locate the CAN bus junction point)
  4. Do NOT connect power measurement tools to live circuits until safety is confirmed
  5. Verify all connections are secure and not stressing any connectors

Step 4: Initial Power Monitoring

  1. Measure 24V supply at the PLC power terminals with the multimeter
  2. Verify voltage is within range (20.4-28.8V for 24V nominal)
  3. Check for ripple or noise on the 24V supply using the oscilloscope
  4. Measure ground reference voltage (should be < 1V between PE and PLC GND)

5.3 Software Configuration

Automation Studio Project Creation

  1. Open Automation Studio
  2. Create a new project: File > New > Project
  3. Set Target: B&R Automation Runtime > CP1584
  4. Set AR version to match the PLC (or highest available for forward compatibility)
  5. Configure the physical hardware: Add the CP1584 CPU, IO modules, and interface modules found during inspection
  6. Create an Ethernet connection to the PLC IP address
  7. Set transfer mode: “Transfer to Target” or “Change in Target” as needed

OPC-UA Connection Setup

  1. In UaExpert, double-click to add a new server
  2. Enter endpoint URL: opc.tcp://<PLC-IP>:4840
  3. Select security policy: None (for initial diagnostics)
  4. Connect and browse the address space
  5. Bookmark important variables (machine state, alarms, process data)
  6. Export the address space for offline analysis

Wireshark Capture Profiles

Create named capture profiles:

Profile NameInterfaceFilterNotes
POWERLINKCapture NICether proto 0x88abCaptures only POWERLINK frames
Modbus TCPCapture NICtcp port 502Modbus gateway traffic
OPC-UACapture NICtcp port 4840OPC-UA communication
Full CaptureCapture NIC(none)Everything on the PLC network
SDMCapture NICtcp port 11159SDM diagnostic traffic

PVI Connection Configuration

In PVI Manager:

  1. Create a new connection
  2. Set transport: TCP/IP
  3. Set device: CP1584
  4. Set IP address to PLC IP
  5. Set CPU slot (usually 1)
  6. Test connection

CAN Adapter Setup with PCAN-View

  1. Connect PCAN-USB to the CAN bus (DB9 connector)
  2. Open PCAN-View
  3. Set baud rate to match the CAN bus (common: 250 kbps, 500 kbps, 1 Mbps)
  4. Set CAN identifier format (11-bit standard or 29-bit extended)
  5. Start reception
  6. If no traffic is observed, try different baud rates
  7. Once traffic is visible, start logging

See if2772-canopen.md for CANopen-specific configuration details.


6. Diagnostic Workflow Checklist

6.1 Pre-Arrival Preparation

  • Charge laptop battery (minimum 80%)
  • Pack all adapters, cables, and tools
  • Verify Wireshark POWERLINK dissector is installed and working
  • Verify Automation Studio opens without errors
  • Verify PCAN-View detects the CAN adapter
  • Verify serial adapter appears in Device Manager
  • Check that external SSD has space for new captures
  • Bring spare Ethernet cables and adapters
  • Bring printed copy of IP range scan results if available
  • Review any prior documentation for this machine

6.2 On-Site Diagnostic Procedure

Phase 1: Safety and Assessment (15-30 minutes)

  • LOTO confirmed with plant safety
  • Power sources identified and verified
  • Machine visual inspection completed
  • All cable connections documented (photo + written)
  • CP1584 front panel LED status noted
  • PLC IP address identified (label, DHCP lease table, or ARP scan)

Phase 2: Network Discovery (15-30 minutes)

  • Connect workstation to PLC network
  • Run ARP scan: arp -a or arp-scan -l
  • Run nmap scan: nmap -sn 192.168.1.0/24 (adjust subnet)
  • Run port scan on discovered PLC IP: nmap -p 21,80,11159,4840,502 <PLC-IP>
  • Document all discovered devices and their roles
  • Verify FTP access to CF card (anonymous or configured credentials)

Phase 3: PLC Connection and Backup (30-60 minutes)

  • Connect via Automation Studio (transfer mode)
  • Upload PLC program and hardware configuration
  • Download CF card image via FTP (binary mode)
  • Save CF card image to external storage with metadata
  • Connect via SDM: http://<PLC-IP>:11159 (check if accessible)
  • Connect via OPC-UA: opc.tcp://<PLC-IP>:4840 (check if accessible)
  • Read system variables via brsnmp or PVI
  • Note AR version, firmware version, project name, build date

Phase 4: Active Diagnostics (1-4 hours)

  • Start Wireshark capture on dedicated NIC
  • Start CAN bus capture if CAN bus is present
  • Connect serial monitor if serial devices are present
  • Read all system variables via OPC-UA or PVI
  • Map IO configuration (digital inputs, outputs, analog channels)
  • Identify communication partners (drives, HMIs, remote IO)
  • Check task cycle times and watchdog settings
  • Review alarm history and error logs
  • Capture representative POWERLINK traffic (at least 10 seconds)
  • Note any communication errors or timeouts in traffic

Phase 5: Hardware Health Check (30-60 minutes)

  • Measure 24V supply voltage and ripple at PLC terminals
  • Check POWERLINK Ethernet signal quality (if problems suspected)
  • Measure CAN bus differential voltage (if CAN bus present)
  • Check ground connections: PE to PLC GND voltage (< 1V)
  • Measure ground currents with clamp meter
  • Check ambient temperature and ventilation
  • Inspect IO modules for damage or loose connections
  • Verify all terminators are present (CAN bus, X2X bus)

Phase 6: Documentation (30-60 minutes)

  • Compile findings into diagnostic report template
  • Include CF card image location and metadata
  • Include Wireshark capture file location
  • Include CAN capture log location
  • Document all discovered IP addresses and device roles
  • Document all IO mappings extracted
  • Document any problems found and recommended actions
  • Create or update machine documentation file
  • Back up all captures and documentation to external storage
  • Store documentation in version control (git)

7. Portable vs Bench-Top Configuration

7.1 Portable Setup (Pelican Case)

A portable workstation in a rolling Pelican case is ideal for field service. You carry everything to the machine and set up on a nearby cart or table.

ComponentStorageNotes
LaptopIn case, padded compartmentUse laptop sleeve for extra protection
Oscilloscope + probesIn case, custom foam cutoutRigol DS1054Z fits in Pelican 1510
CAN adapterSmall pouchPCAN-USB + DB9 cables
Logic analyzerSmall pouchSaleae Logic + grabber clips
Serial adaptersSmall pouchFTDI RS232 + RS485 + TTL
Ethernet cables + switchMesh pouchGS105E switch + 4 cables
MultimeterSide pocketFluke 87V with probes
Hand toolsRolled pouch or small boxWera screwdrivers, strippers, crimpers
CF card readerSmall boxTranscend TS-RDF8K
Label makerSide pocketBrother P-Touch
External SSDSide pocketSamsung T7 for captures
Power strip + extension cordExternalBring your own; industrial sites may not have accessible outlets

Recommended case: Pelican 1510 (rolling, $280) with custom foam. The 1510 fits airline carry-on requirements (though weight may be an issue at ~35 lbs loaded).

Portable Case Packing List

Pelican 1510 contents:
  Top layer (foam):
    - Laptop (center)
    - Multimeter (right)
    - Power supply + cables (left)
    - CF card reader, adapters (pockets)
  Bottom layer (foam):
    - Oscilloscope (center)
    - Probes (in scope bag, right)
    - Managed switch (front left)
    - Ethernet cables (front right)
    - CAN adapter + cables (rear left)
    - Logic analyzer + clips (rear right)
  External:
    - Hand tool pouch (carried separately or strapped)
    - External SSD (side pocket)
    - Label maker (side pocket)

7.2 Bench-Top Setup

For your workshop or permanent diagnostic bench, you can leave equipment connected and ready. This is more efficient for analyzing captures and programming CF cards after field visits.

ComponentSetupNotes
Desktop PC or laptop on dockPermanently on benchDual monitors recommended
OscilloscopePermanently connected via USBUSB connection for screen capture
Logic analyzerPermanently connected via USBDedicated USB port
CAN adapterConnected when neededKeep cable routed to bench edge
Ethernet switch8-port on benchPLC network + capture NIC
MultimeterOn bench standAlways accessible
Soldering ironOn benchFor probe adapters, custom cables
Bench power supplyProgrammable, 0-30VFor powering IO modules off-machine
USB hubPowered, 7+ portsCentral cable management
External storage array2+ TBArchive of all CF images and captures
Label printerNetworked or USBPersistent label production

7.3 Hybrid Approach

The most practical setup for a one-man team is hybrid: a portable Pelican case for field work plus a bench-top station for analysis. The laptop travels between both. Shared equipment (oscilloscope, logic analyzer) may live on the bench with a second, cheaper unit in the portable case.

Cost comparison:

ConfigurationEquipment CostNotes
Portable only$3,000-5,000Everything in one case; limited bench capability
Bench-top only$4,000-6,000Best analysis capability; requires on-site equipment transport each time
Hybrid (recommended)$5,000-8,000Portable case + bench station; shared laptop; best of both

8. Cross-References

This document is part of a comprehensive B&R diagnostic reference library. Related documents:

  • cp1584-forensics.md – Step-by-step forensic analysis of unknown CP1584 systems; what to extract first, how to read configuration files, and how to reconstruct IO mappings from a blank machine.
  • io-sniffing.md – Techniques for monitoring and identifying digital and analog IO signals without existing documentation. Covers signal tracing, force table usage, and IO mapping extraction.
  • physical-layer-sniffing.md – Physical layer measurement techniques for Ethernet POWERLINK, CAN, X2X, and serial buses. Covers signal quality analysis and EMC diagnostics.
  • powerlink-internals.md – Detailed POWERLINK protocol analysis including frame structure, node addressing, cycle timing, and error handling. Essential reference for Wireshark capture interpretation.
  • x2x-protocol.md – B&R X2X backplane bus protocol analysis. Frame format, timing, and how to capture and decode X2X traffic with a logic analyzer.
  • if2772-canopen.md – CANopen diagnostics for the B&R IF2772 interface module. CANopen object dictionary, SDO/CDC communication, and error handling.
  • pvi-api.md – B&R PVI (Process Visualization Interface) API reference. Connection configuration, data transfer, and Python wrapper usage for automated diagnostics.
  • opcua.md – OPC-UA configuration on B&R PLCs. Server setup, security configuration, address space structure, and client connection patterns.
  • python-diagnostics.md – Python diagnostic tool library. Complete code examples for OPC-UA, PVI, Modbus, CAN, serial, and file-based diagnostics.
  • serial-diagnostics.md – Serial protocol diagnostics for RS232/RS485 connections. Baud rate detection, protocol analysis, and non-invasive bus tapping techniques.
  • grounding-emc.md – Grounding best practices and EMC diagnostic procedures for industrial installations. Ground current measurement, shield termination, and common-mode noise reduction.
  • analog-calibration.md – Analog IO calibration procedures for 4-20mA, 0-10V, and thermocouple inputs. Calibration techniques, verification procedures, and documentation templates.

9. Key Findings

  1. Build incrementally. Start with the essential tier ($2,850 excluding AS license) covering laptop, Ethernet tools, oscilloscope, multimeter, serial adapters, and Wireshark. Add CAN and logic analyzer capabilities as you encounter machines that need them. Do not buy everything at once.

  2. Dedicated NIC for Wireshark capture is mandatory. Using the same NIC for PLC communication and Wireshark capture causes packet loss, missed frames, and unreliable POWERLINK analysis. A $45 Intel I210-based USB adapter solves this completely.

  3. Managed switch with port mirroring is the most reliable POWERLINK capture method. Network taps work but are awkward. Port mirroring on a $45 Netgear GS105E gives you non-invasive, full-duplex capture with zero impact on PLC communication.

  4. FTDI-only serial adapters. Prolific and CH340 chipsets have driver instability on modern Windows. The $15 FTDI FT232RL cable saves hours of troubleshooting time. Buy 3: one for RS232, one for RS485, one for TTL.

  5. Rigol DS1054Z with differential probe is the oscilloscope sweet spot. Four channels cover CAN differential measurement plus trigger. The differential probe ($250) is the accessory that matters most – single-ended CAN measurements are unreliable and misleading.

  6. CF card backup is the first action on any unknown machine. Before you do anything else, FTP into the PLC and download the CF card contents. Use binary FTP mode. Store with machine ID, date, and AR version metadata. This backup is your insurance policy.

  7. Saleae Logic 8 ($500) covers most diagnostic needs. The Logic Pro 16 ($1,500) is only needed if you routinely analyze X2X bus traffic (16 data lines). For CAN, SPI, I2C, and serial analysis, 8 channels is sufficient.

  8. PCAN-USB ($170) plus PCAN-View (free) is the CAN diagnostic baseline. CANalyzer is professional-grade but at $3,000+ it is difficult to justify for a one-man team. PCAN-View provides real-time monitoring, trace logging, and signal decode at zero additional cost.

  9. Python with asyncua + pymodbus + pyserial replaces most proprietary software. For a diagnostic workstation focused on data extraction, Python scripts can read OPC-UA variables, poll Modbus registers, capture serial data, and log everything to structured files. This is faster and more repeatable than manual clicking through proprietary GUIs.

  10. Use a template for every diagnostic engagement. Create a directory structure and checklist for each machine: /machines/<machine-id>/<date>/ containing CF card images, Wireshark captures, CAN logs, OPC-UA variable dumps, serial captures, and a diagnostic report. This structure accumulates into a searchable knowledge base over time.

  11. The hybrid portable + bench-top configuration is the right architecture. A portable Pelican case for field work and a permanent bench for analysis. The laptop shuttles between both. Shared equipment (oscilloscope, logic analyzer) can be duplicated cheaply (Sigrok-based logic analyzer for the field, Saleae for the bench).

  12. brsnmp is the quickest way to identify an unknown PLC. Before opening Automation Studio or attempting a full program upload, run brsnmp to read the AR version, project name, and system variables. This 30-second check tells you what you are dealing with and which AS version you need.


Key Findings

  1. A prepared workstation cuts diagnostic time from hours to minutes. Having every adapter, cable, and tool pre-configured and tested means you can connect to any unknown CP1584 in under five minutes and begin systematic data extraction.

  2. brsnmp is the fastest first step for any unknown PLC. Running brsnmp against a CP1584 reveals the AR version, project name, system variables, and hardware inventory in seconds — no Automation Studio required.

  3. Protocol sniffing is essential for intermittent problems. Problems that can’t be reproduced reliably require passive monitoring. A properly configured protocol sniffer (Wireshark + POWERLINK plugin, PCAN for CAN, logic analyzer for X2X) captures the evidence that logging alone misses.

  4. Separate the diagnostic workstation from production networks. Your diagnostic laptop should never be on the plant network. Use a dedicated VLAN or direct connection to avoid introducing security risks or network interference.

  5. Build a knowledge base that accumulates value. Every machine you diagnose adds captured configurations, firmware images, protocol traces, and documented procedures to your workstation. Over time, this library becomes your most valuable resource.


10. Sources

  • B&R Automation. Automation Studio 4.x Documentation. B&R Industrial Automation, 2018-2024. https://www.br-automation.com
  • B&R Automation. CP1584 Hardware Manual. B&R Industrial Automation. Document ID: DOC-00000.
  • Rigol Technologies. DS1054Z User’s Guide. https://www.rigol.com
  • PEAK-System Technik. PCAN-USB Product Page and Documentation. https://www.peak-system.com
  • Saleae. Logic Analyzer Documentation and Protocol Decoders. https://www.saleae.com
  • Wireshark Foundation. Wireshark User’s Guide. https://www.wireshark.org
  • openPOWERLINK Project. POWERLINK Wireshark Dissector. SourceForge / GitHub. https://sourceforge.net/projects/openpowerlink/
  • Unified Automation. UaExpert OPC-UA Client Documentation. https://www.unified-automation.com
  • hilch. brsnmp – B&R SNMP Tool. GitHub. https://github.com/hilch/brsnmp
  • CAN in Automation (CiA). CANopen Protocol Specification (CiA 301). https://www.can-cia.org
  • Fluke Corporation. Fluke 87V Industrial True-RMS Multimeter User Manual. https://www.fluke.com
  • Intel Corporation. I210 Ethernet Controller Datasheet. https://www.intel.com
  • Python Software Foundation. asyncua Library Documentation. https://github.com/FreeOpcUa/opcua-asyncio
  • python-can Project. CAN Bus Interface Documentation. https://python-can.readthedocs.io
  • Sigrok Project. PulseView Logic Analyzer Software. https://sigrok.org
  • IEC 61158-4-6. POWERLINK Real-Time Ethernet Protocol. International Electrotechnical Commission.
  • IEC 61158-4-4. CANopen Communication Profile. International Electrotechnical Commission.
  • IEC 62591. WIRELESSHART Communication Protocol (reference for industrial wireless diagnostics). IEC.
  • NMAP Project. Nmap Network Scanning Documentation. https://nmap.org
  • Netgear. GS105E Managed Switch Documentation. https://www.netgear.com
  • Pelican Products. 1510 Case Specifications. https://www.pelican.com