ignition.ninja
← All pages
ArticleLevel 2 · Basic

How an Ignition project fits together

Placeholder article: written as a stand-in so the site has a long read to try. The structure below is the usual shape of an Ignition system; replace it with your own account.

Start with the gateway

Everything in Ignition runs on a gateway: one server process you install on a machine. The gateway talks to your equipment, stores your configuration, runs your scripts and serves your screens. You configure it from a web page, and you build projects in a separate desktop tool (the Designer) that connects to it.

If you remember one thing, make it this: the gateway is the center, and nearly everything else is either something it talks to or something that talks to it.

Modules are the feature list

Ignition is a platform made of modules. The base install is small, and each module adds a capability. A rough grouping:

  • Connecting to devices: drivers such as OPC UA let the gateway read and write values on PLCs and other equipment.
  • Screens: Vision for desktop clients, and Perspective for browser and mobile.
  • Data: SQL Bridge and the database connections, plus historian and alarming features.
  • Other: reporting, scheduling, and modules from other vendors.

You license and enable the modules you need. A first system might use only a driver, Perspective and a database connection.

Tags are the data model

A tag is a named value the gateway keeps: a motor speed, a tank level, a setpoint. Tags can come straight from a device, be calculated by an expression, or be set by a script. They live in a tree, so a folder per line or area is a common layout.

Most of the rest of the system hangs off tags: screens bind to them, alarms are configured on them, and history is recorded from them. A tidy tag tree makes everything downstream easier, and a messy one is hard to fix later.

textDownload
[default]
  Line1/
    Motor/Speed
    Motor/Current
    Motor/Running
  Line2/
    Motor/Speed

Perspective and Vision

Both are ways to build screens, and they can live on the same gateway.

  • Vision runs as a desktop application that launches from the gateway. It is a good fit for control-room stations.
  • Perspective runs in the browser, so people reach it from a laptop, tablet or phone with nothing installed.

Many sites pick one and stick with it. Some run both while moving from one to the other. Which fits depends on who uses the screens and where.

Databases

Ignition does not replace your database. You connect it to an existing SQL database, and then use it for history, recipes, work orders, or anything else tabular. Tag history is written to the database you choose. Named queries let you keep SQL in one place and call it from screens and scripts.

Scripting

Scripts run in Jython, a Python 2.7 dialect on the Java platform. You use them to read and write tags, run queries and glue things together. A small example:

python
speed = system.tag.readBlocking(["[default]Line1/Motor/Speed"])[0]
if speed.quality.isGood() and speed.value > 1500:
    system.util.getLogger("motors").warn("Line1 motor fast: %s" % speed.value)

Keep scripts short and put reusable ones in the project's script library so screens call a function instead of repeating code.

Thinking about architecture

A few questions, in order, tend to give a sound first layout:

  1. How many devices and tags? This sets how big the gateway needs to be and how you organize the tag tree.
  2. Who looks at it, and from where? Control-room operators and office users usually want different screens.
  3. What must keep running if something fails? If the answer is "everything", plan for a second gateway that can take over.
  4. Where does the data go? Decide early which database holds history and who owns it.
  5. How does it grow? Start with one gateway, and split by area or role only when you have a reason.

For most first projects a single gateway, one database and one screen module is plenty. Add pieces when you can name the problem they solve.

What to do next

Install a trial gateway, add a simulated device, build a tag tree and bind one Perspective view to it. The rest of the platform is easier to understand once you have watched a value move from tag to screen.

Placeholder: the module list and layout advice are a general outline and have not been checked by Matt.