OPC UA SECS/GEM bridge: connect SECS/GEM equipment to OPC UA
| Product | SECS/GEM equipment (SEMI E5, E30, E37) |
|---|---|
| Category | Gateway |
| OPC UA role | Server on the bridge, GEM host towards the tool |
SECS/GEM equipment speaks no OPC UA. A bridge sits between the two: towards the tool it behaves as a GEM host over HSMS, and towards the plant it exposes an OPC UA server. Status variables become OPC UA variables, collection events and alarms become OPC UA events, and remote commands become methods. The mapping is straightforward. The hard part is that most tools accept a single host connection, and the fab host usually already holds it.
How does SECS/GEM map to OPC UA?
Every GEM concept has a natural OPC UA counterpart: identifiers become nodes, event reports become events, alarms become alarm conditions and remote commands become methods. The table is the mapping most bridges use; the identifiers themselves always come from the tool's GEM manual.
| SECS/GEM item | Typical messages | OPC UA on the bridge |
|---|---|---|
| Status variable (SVID) | S1F3 / S1F4, or inside S6F11 reports | Variable node, read-only, typed from its SECS-II format |
| Data variable (DVID) | Carried in S6F11 event reports | Variable updated when the event arrives, or a field of the event |
| Equipment constant (ECID) | S2F13 / S2F14 to read, S2F15 / S2F16 to write | Variable node; writable only if the process owner approves it |
| Collection event (CEID) | S6F11, acknowledged with S6F12 | OPC UA event, with the report values as event fields |
| Alarm (ALID) | S5F1 set and clear, S5F2 acknowledge, S5F3 enable | Alarm condition with active and inactive states |
| Remote command (RCMD) | S2F41 / S2F42 (S2F49 enhanced) | Method, disabled by default |
| Communication and control state | S1F13 / S1F14, S1F15 to S1F18 | Variables on a link-status object |
| Process programs (recipes) | Stream 7 | Usually left out of a monitoring bridge |
Before you start
- Get the equipment's GEM manual. It lists the status variables (SVID), data variables (DVID), equipment constants (ECID), collection events (CEID), alarms (ALID) and remote commands the tool supports. These identifiers are vendor and model specific; nothing can be assumed from another tool.
- Find out who already talks to the tool. Single-session HSMS allows one host connection. If a factory host or MES is connected, a second host cannot simply connect alongside it.
- Confirm the transport. HSMS (SEMI E37) runs over TCP/IP and is what most current tools use. Older tools use SECS-I (SEMI E4) over RS-232 and need a serial converter or a bridge with a serial port.
- Decide read-only or read-write. A monitoring bridge that only collects status, events and alarms carries far less risk than one allowed to send remote commands or change equipment constants.
Setting it up
- Establish the HSMS connectionConfigure the IP address, port, device ID and the active or passive role to match the tool. Most equipment is passive and waits for the host to connect. Set the timeouts (T3, T5, T6, T7, T8) to the values in the equipment manual, then confirm that the select procedure completes and that S1F13 / S1F14 establishes communications.
- Bring the tool online and read its identityUse S1F1 / S1F2 to check the link, and follow the control state: a tool that is offline or in local control will answer some requests and refuse others. Record the model and software revision the tool reports, because variable lists change between software revisions.
- Load the variable and event dictionaryImport the SVID, ECID, CEID and ALID lists from the GEM manual into the bridge, or query the name lists from the tool (S1F11 for status variables, S2F29 for equipment constants) where it supports them. Each entry needs its SECS-II data format, because that decides the OPC UA data type.
- Define reports and enable eventsEvent-driven collection is the core of GEM. Define reports (S2F33), link them to collection events (S2F35) and enable the events (S2F37). The tool then sends S6F11 each time an event fires, carrying the variables you asked for. For values that change continuously, add polling with S1F3 or a trace (S2F23) at a modest rate.
- Map to the OPC UA address spaceExpose each status variable and equipment constant as a variable node with a stable NodeId derived from its SVID or ECID, not from its display name. Publish collection events as OPC UA events, alarms set and cleared (S5F1) as alarm conditions, and, if you allow it, remote commands (S2F41) as methods.
- Secure the OPC UA sideSECS/GEM has no authentication or encryption of its own, so the tool side must stay on an isolated equipment network. On the OPC UA side, disable the None security policy, use certificates, and give monitoring clients read-only access. See OPC UA security.
What the address space looks like
There is no single mandated layout, so keep it predictable. A workable structure is one object per tool, with folders for StatusVariables, EquipmentConstants, Events and Alarms, plus a small set of nodes for the link itself: communication state, control state (offline, online local, online remote) and the time of the last message. Carry the original identifier in the node's description or as a property so that anyone holding the GEM manual can find the source. A SECS-II list or array should become an OPC UA array or a structure, not a string someone has to parse later. We are not aware of a published companion model that standardises this mapping, so check the current catalogue before you design your own.
The traps
- The single host connection. This is where most bridge projects stall. If the factory host owns the session, the options are a tool with a second host port, a multi-host or pass-through component that sits in the session and shares it, or taking the data from the host system instead of from the tool. Disconnecting the factory host to connect a bridge is rarely acceptable in production.
- Report definitions are shared state. Defining or deleting reports changes what the tool sends to whoever is connected. A bridge that clears all reports at start-up (S2F33 with an empty list) can break the factory host's data collection.
- Events are not buffered by default. If the link drops, events fired in the meantime are lost unless the tool supports spooling and it is enabled. Expose the link state in OPC UA so that clients can tell a quiet tool from a disconnected one.
- Timestamps. Many tools report their own clock in a variable, and it may be wrong or in local time. Decide whether the OPC UA source timestamp comes from the tool or from the bridge, and keep it consistent.
- Data types. SECS-II has unsigned and signed integers of 1, 2, 4 and 8 bytes, floats, booleans, ASCII and binary. Map each to the matching OPC UA type; pushing everything through strings loses the type and breaks trending.
- Remote commands. A method call that starts or stops a tool is a safety and quality decision, not an integration detail. Keep write access off until the process owner has signed off each command.
How do you get OEE data from SECS/GEM equipment?
For availability you need the equipment state over time. Tools that implement the SEMI E10 state model, often through E116 equipment performance tracking, report productive, standby, engineering, scheduled downtime, unscheduled downtime and non-scheduled time, which maps directly onto an OEE availability calculation. Where the tool does not report states, derive them from the processing-started and processing-completed collection events and from alarms. Counts come from the wafer, lot or unit completion events, and quality from the tool's own pass and fail variables or from metrology downstream. Once this is in OPC UA, it can feed the same pipeline as the rest of the plant: see OPC UA integration with MES, OEE and ERP and the TEEPTRAK OEE platform. If the host connection cannot be shared, an external sensor on the tool measures run and stop time without touching the SECS/GEM session at all.
The E10 state a tool reports still has to be placed in your OEE definition. A common treatment, to be agreed once and applied to every tool:
| SEMI E10 state | Typical OEE treatment |
|---|---|
| Productive | Run time |
| Standby | Availability loss when it falls inside planned production time (waiting for material, operator or host) |
| Engineering | Excluded from planned production time, or tracked as its own loss; decide once |
| Scheduled downtime | Set-ups and changeovers usually count as availability loss; planned maintenance is often excluded from planned time |
| Unscheduled downtime | Availability loss |
| Non-scheduled time | Outside planned production time |
Build or buy an OPC UA SECS/GEM bridge?
There are three workable routes, and the single host connection usually decides between them before price does.
- A commercial gateway with a SECS/GEM host driver and an OPC UA server. Fastest to deploy. Check before buying: multi-host or pass-through support, which OPC UA security policies the server offers, spooling, and how it is licensed per tool.
- A bridge you build from an open-source SECS/GEM library (for example the Python
secsgempackage) and an OPC UA SDK such asasyncua, open62541 or the .NET stack. Full control of the mapping, but you own reconnects, spooling and testing. See OPC UA SDKs compared and OPC UA with Python. - No bridge on the tool at all: read the same data from the factory host or MES if it exposes an interface, or, when only run and stop time is needed for OEE, fit an external sensor that never touches the SECS/GEM session. With TEEPTRAK, any machine is connected in under 1 hour this way.
OPC UA SECS/GEM bridge: frequently asked questions
What is an OPC UA SECS/GEM bridge?
A gateway or piece of software that sits between a semiconductor tool and the plant's systems. Towards the tool it acts as the GEM host over HSMS; towards the plant it runs an OPC UA server. It republishes status variables as OPC UA variables, collection events and alarms as OPC UA events and alarm conditions, and, if you allow it, remote commands as methods.
Does SECS/GEM equipment support OPC UA natively?
Most semiconductor tools in service expose SECS/GEM, often with the GEM300 extensions, rather than OPC UA, so OPC UA access normally goes through a bridge. Check the documentation of the exact tool and software revision: some newer equipment offers additional interfaces.
Can a bridge connect while the factory host is already connected?
Usually not directly. Single-session HSMS accepts one host connection. The options are a tool with a second host port, a multi-host or pass-through component that shares the session, or taking the data from the factory host or MES instead of from the tool.
How do SECS/GEM collection events become OPC UA events?
The bridge defines a report (S2F33), links it to the collection event (S2F35) and enables the event (S2F37). Each time the tool sends S6F11, the bridge acknowledges it, raises an OPC UA event carrying the report values as event fields, and updates the matching OPC UA variables.
Is there an OPC UA companion specification for SECS/GEM?
We are not aware of a published companion model that standardises the SECS/GEM to OPC UA mapping, so check the current catalogue before you design your own address space. For high-rate equipment data, SEMI also defines a separate interface family, Equipment Data Acquisition (EDA, also called Interface A), which is not SECS/GEM.
Published 29 November 2026, updated 30 November 2026. OPC UA Connect is an educational resource and is not affiliated with the OPC Foundation or with SEMI.