Skip to content

o6 Nodeset Compiler Collection

ncc turns OPC UA NodeSet XML into C or Python source code for your application. OPC UA (Open Platform Communications Unified Architecture) models describe the types, objects and relationships exposed by a server.

Install the compiler with Python 3.10 or newer:

python -m pip install o6-ncc

The installation includes all compiler dependencies. Python generation, including models with initial values, works without o6 installed. Running the generated Python packages requires a compatible o6\Python runtime.

Choose a backend to generate code for your application:

Backend Output Start here
open62541 Source and header files that populate an open62541 server. open62541 quickstart
o6\Python A package that declares and registers a namespace for the o6\Python runtime. o6\Python quickstart

Compiler installation and application runtime requirements are separate; check compatibility before choosing a runtime build.

Features

Task Learn more
Generate C structures and datatype tables Datatype generation
Use bundled companion specs offline Dependencies and bundled companion specs
Place custom dependencies in your Python project Custom dependency locations
Inspect a model before generating C or Python code Inventory
Visualize a model's nodes and relationships Graphviz
Use generated Python types and ship the package Generated packages
Complete commands, options and dependency names in your shell Shell completion

See the open62541 reference or o6\Python reference for command syntax and options. cncc and pyncc are aliases for ncc c and ncc python.