Evaluate the AutomationView desktop suite free for 30 days. No credit card required. Claim trial key →
arrow_back Back to Articles

Inside GigE Vision and GenICam: A Technical Guide to Integrating Machine Vision with Industrial PLCs

calendar_month
person Carvalho Raphael

Inside GigE Vision and GenICam: A Technical Guide to Integrating Machine Vision with Industrial PLCs

Learning
%%{init: {'theme':'dark', 'themeVariables': { 'background': '#001c38' }}}%%
flowchart LR
    cam["GigE Vision Camera"]:::blueNode -->|GenICam XML| pc["PC-Based PLC (TwinCAT)"]:::greenNode
    cam -->|Trigger I/O| plc["Standard PLC"]:::redNode
    
    classDef blueNode fill:#2563eb,stroke:#ffffff,color:#ffffff
    classDef greenNode fill:#16a34a,stroke:#ffffff,color:#ffffff
    classDef redNode fill:#dc2626,stroke:#ffffff,color:#ffffff
AutomationView Icon AutomationView

Machine vision has shifted from isolated inspection stations to fully synchronized nodes within the automation control loop. However, bridging the high-bandwidth, software-centric world of imaging with the deterministic, cyclic world of Programmable Logic Controllers (PLCs) introduces significant architectural challenges. For automation engineers, GigE Vision PLC integration requires understanding how to map complex GenICam XML feature nodes into standard IEC 61131-3 memory registers without introducing unacceptable latency.

Key Takeaways

  • PC-based PLCs offer the lowest latency by parsing GenICam XML natively within the real-time runtime.
  • Traditional PLCs require intermediate gateways or dedicated vision controllers to handle the TCP/UDP data plane.
  • Direct digital I/O remains the most robust method for hardware-level image triggering, bypassing network jitter.

The GenICam and GigE Vision Architecture

Before diving into integration methods, it is crucial to separate the transport layer from the control plane. The GigE Vision standard dictates how image data and control commands are transmitted over standard Ethernet infrastructure, operating primarily over UDP/IP to maximize throughput. Conversely, GenICam (Generic Interface for Cameras) provides a standardized XML description of the camera’s internal registers (e.g., exposure time, gain, and trigger source).

The primary hurdle on the plant floor is that standard PLCs lack the native software stacks to parse this XML or handle high-volume UDP image streams directly. Engineers must bridge this gap using one of three proven architectures.

flowchart TD
    subgraph architecture ["Integration Architectures"]
        A["GigE Vision Camera"]:::blueNode
        
        B["PC-Based PLC"]:::greenNode
        C["Vision Gateway (IPC)"]:::redNode
        D["Standard PLC (Hardware I/O)"]:::redNode
        
        A -->|GenApi / UDP Stream| B
        A -->|Image Stream| C
        C -->|PROFINET / EtherNet/IP| D
        D -->|24V Pulse| A
    end

    classDef blueNode fill:#2563eb,stroke:#ffffff,color:#ffffff
    classDef greenNode fill:#16a34a,stroke:#ffffff,color:#ffffff
    classDef redNode fill:#dc2626,stroke:#ffffff,color:#ffffff

Method 1: Native PC-Based Control

For applications requiring microsecond-level synchronization between motion axes and image acquisition, PC-based PLCs (such as Beckhoff TwinCAT or Codesys running on an Industrial PC) are the optimal choice. In this architecture, the vision software runs on the same CPU as the logic controller. The PLC utilizes a native GenApi module to directly access camera registers.

This eliminates “black box” communication latency. You map the camera’s GenICam features directly to PLC variables in your configuration environment. The downside is the high CPU overhead required to process Jumbo Frames and execute vision algorithms alongside deterministic logic.

Method 2: The Gateway and Protocol Bridge

When working with legacy PLCs or controllers that do not support direct vision integration, engineers must implement a gateway approach. An industrial PC or dedicated vision controller captures the GigE Vision stream, processes the image using software like HALCON or OpenCV, and extracts the necessary metadata (e.g., object coordinates or pass/fail flags).

The gateway then transmits this lightweight payload back to the PLC using standard industrial protocols such as PROFINET or EtherNet/IP. While this offloads processing from the PLC, it introduces polling delays and requires maintaining two separate codebases.

Method 3: Direct Digital I/O Triggering

In many high-speed applications, issuing software commands over Ethernet for every image capture introduces too much network jitter. The most deterministic method is configuring the camera into a hardware trigger mode using the manufacturer’s SDK (e.g., Basler pylon or JAI eBUS).

The PLC connects a digital output directly to the camera’s opto-isolated trigger input (typically via an M12 connector). The PLC fires a 24V pulse exactly when the encoder reaches the target position, forcing the camera to capture the image based on its pre-loaded GenICam parameters.

Integration Architecture Comparison

Integration Method Latency Complexity Best Use Case
PC-Based Control (Native) Ultra-Low High Synchronized motion and vision control
Vision Gateway (PROFINET) Medium Medium Retrofitting existing standard PLCs
Hardware I/O Triggering Deterministic (Zero Jitter) Low High-speed discrete part inspection

Conclusion and Next Steps

Successful GigE Vision PLC integration depends entirely on matching the architecture to your latency requirements and existing hardware constraints. Whether you leverage native PC-based parsing of GenICam XML or rely on robust hardware triggers, understanding the flow of image data versus control data is essential for building stable inspection systems.

For tools to help simulate, test, and validate your PLC sequences before deploying hardware, explore our simulation models in the AutomationView Store.

Frequently Asked Questions

Why do I need Jumbo Frames for GigE Vision?

Jumbo Frames (MTU of 9000 bytes) reduce the overhead of splitting high-resolution image data into standard 1500-byte Ethernet packets, significantly lowering CPU utilization on the receiving controller.

Can I connect a GigE Vision camera directly to a standard PLC?

Generally, no. Standard PLCs cannot process the high-bandwidth UDP image stream or parse the GenICam XML directly. You must use a PC-based PLC, a vision controller gateway, or rely strictly on hardware I/O triggering.

Share this article

Stay Updated with Learning

Get the latest articles and news delivered directly to your inbox.

Log in to Subscribe

You must be registered and logged in to manage subscriptions.

Recommended for you

Inside IO-Link: Architecting Sensor-to-Cloud Integration for Industry 4.0

Learning
%%{init: {'theme':'dark', 'themeVariables': { 'background': '#001c38' }}}%%
flowchart LR
    classDef hardware fill:#2563eb,stroke:#1d4ed8,color:#ffffff
    classDef cloud fill:#16a34a,stroke:#15803d,color:#ffffff
    classDef logic fill:#dc2626,stroke:#b91c1c,color:#ffffff

    S1["Smart Sensor"]:::hardware -->|IO-Link| M["IO-Link Master"]:::hardware
    M -->|EtherNet/IP| PLC["Local PLC"]:::logic
    M -->|MQTT / OPC UA| CLD["Cloud Platform"]:::cloud
AutomationView Icon AutomationView
calendar_month

Inside IO-Link: Architecting Sensor-to-Cloud Integration for Industry 4.0

Implementing a unified IO-Link sensor to cloud architecture transforms a rigid, traditional shop floor into a dynamic, data-driven environment. Instead of restricting sensor outputs to simple 24V discrete signals or 4-20mA analog loops, modern plant architectures rely on bidirectional, digital communication to unlock deep diagnostic data. The real challenge engineers face is extracting this diagnostic […]

Read Article arrow_forward

Inside AS-Interface V5: High-Bandwidth Sensor Networks

Learning
%%{init: {'theme':'dark', 'themeVariables': { 'background': '#001c38' }}}%%
flowchart LR
    classDef main fill:#2563eb,color:#ffffff,stroke:#1e40af,stroke-width:2px
    classDef device fill:#16a34a,color:#ffffff,stroke:#166534,stroke-width:2px
    classDef legacy fill:#dc2626,color:#ffffff,stroke:#991b1b,stroke-width:2px

    A["PLC / Edge Controller"]:::main -->|PROFINET/EtherNet IP| B["ASi-5 / ASi-3 Gateway"]:::main
    B -->|Yellow Cable| C["AS-Interface V5 Node"]:::device
    B -->|Yellow Cable| D["Legacy ASi-3 Node"]:::legacy
    C -->|IO-Link Data| E["Smart IO-Link Sensor"]:::device
AutomationView Icon AutomationView
calendar_month

Inside AS-Interface V5: High-Bandwidth Sensor Networks

The industrial floor has a bandwidth problem. As control systems demand more granular diagnostic data from intelligent field devices, legacy sensor networks are struggling to keep up. Enter AS-Interface V5 (ASi-5), the latest iteration of the ubiquitous yellow-cable fieldbus. It fundamentally rewrites the physical layer transmission method to handle Industry 4.0 data volumes without abandoning […]

Read Article arrow_forward

Inside EtherCAT Distributed Clocks: Sub-Microsecond Sync

Learning
%%{init: {'theme':'dark', 'themeVariables': { 'background': '#001c38' }}}%%
flowchart LR
    classDef default fill:#2563eb,color:#ffffff,stroke:none;
    classDef red fill:#dc2626,color:#ffffff,stroke:none;
    classDef green fill:#16a34a,color:#ffffff,stroke:none;
    M["EtherCAT Master"]:::default -->|Sync Signal| S1["Slave 1 (Reference Clock)"]:::green
    S1 -->|Propagation| S2["Slave 2"]:::red
    S2 -->|Propagation| S3["Slave 3"]:::red
AutomationView Icon AutomationView
calendar_month

Inside EtherCAT Distributed Clocks: Sub-Microsecond Sync

The reality of high-speed motion control is unforgiving: even a fraction of a millisecond of jitter can desynchronize a multi-axis robotics system, resulting in scrapped parts and premature mechanical wear. Overcoming this requires more than just bumping up the network baud rate. It demands deterministic synchronization embedded directly into the hardware layer. This is precisely […]

Read Article arrow_forward