PLC API Gateway

PLC data server

Your PLC data in any program

PLC API Gateway connects to your controllers and gives their data to other programs through ordinary web requests. MES, reports, dashboards and your own software can read and write tags without a PLC driver.

A Siemens S7 connection with its live statistics
A Siemens S7 connection with its live statistics

How it works

  1. Connect the controllers

    Enter the address of each controller and the tags you need. Only the gateway talks to the controllers.

  2. Give access

    Create a key for each program. A key can only read or also write, and can be limited to one tag or one group.

  3. Use the data

    Programs read, write and follow the values with simple web requests.

The screens

All screens show a demo with invented controllers and values.

Connections

Each controller has its own live dashboard.

  • State, values read per second and read time
  • Errors in the last 24 hours and the tags that fail now
  • Tags by group, with their current values
  • Connect, disconnect and edit in one place
A Siemens S7 connection with its live statistics
A Siemens S7 connection with its live statistics

Overview

The state of the whole gateway at a glance.

  • All connections and how many are online
  • Total values read per second and errors
  • Connect and disconnect each controller
  • A clear message when a controller does not answer
Overview of all connections
Overview of all connections

Tags

All tags are set up in the browser.

  • Siemens addresses such as DB1.DBD0, M0.0 or IW2
  • Modbus registers, coils and inputs
  • Read cycle for each group or tag
  • Import and export with CSV
Tags of one controller
Tags of one controller

Diagnostics

Problems can be found, also after they are gone.

  • Read and write counters and times for each controller
  • Recorded errors, connects and disconnects
  • Search by controller, event and period
  • Log files with a size and age limit
Diagnostics and recorded events
Diagnostics and recorded events

API access

Each program gets its own key.

  • Read only, or read and write
  • All tags, one tag or one group
  • Optional end date
  • Last use of each key is shown
API keys
API keys

A simple API

Any program that can send a web request can use the gateway: C#, Python, JavaScript, Node-RED, Power BI and others.

  • Read one tag or up to 100 tags in one request
  • Last values from the cyclic read, without asking the controller
  • Live changes as a stream (server-sent events)
  • Write one tag or several in order
  • Every value comes with its quality and time
  • OpenAPI description for code generators
GET  /api/tags/Kiln.Temperature

POST /api/tags/read
     {"names": ["Kiln.Temperature", "Burner.GasFlow"]}

PUT  /api/tags/Burner.Setpoint
     {"value": 1450}

GET  /api/values/stream

X-API-Key: your key
Example requests. The tag names are invented.

Careful with every write

A wrong value can stop production. This is why every write is checked.

  • A tag can be written only if writing is allowed for it
  • Minimum and maximum value for each number
  • Users and keys have their own rights
  • Every write is recorded: who, what, when and the result
  • A command with an unclear result is never sent again automatically
  • Optional confirmation before each write from the browser

Controllers

Siemens S7 works with our own driver. Other makes are connected through Modbus TCP.

Siemens S7Modbus TCP
Read and writeYesYes
AreasData blocks, markers, inputs, outputsHolding and input registers, coils, discrete inputs
TypesBool, numbers up to 64 bits, Real, LReal, String, WString, Date and timeBool, numbers up to 64 bits, Real, LReal, String
ArraysUp to 400 valuesUp to 400 values
Fast readingMany tags in one requestNearby registers in one request

For S7-1200 and S7-1500, PUT/GET access must be permitted and the data blocks must not use optimized block access. The result depends on the model and settings of the controller, so we check it with you before a project. List of controllers

System

Computer64-bit Windows 10 version 1607 or later
InstallationOne setup program; it runs as a Windows service
SettingsIn a web browser on the server
Other computersOver HTTPS, with our certificate or yours
UsersViewer, Operator and Administrator
BackupAll settings in one encrypted file
Technologies.NET, REST, JSON, OpenAPI

Licence

The licence is for the server only. Programs that use the API need none.

Trial

Without a licence, everything works for 2 hours after each start. Then the communication with the controllers stops until the next start.

By connections

The licence depends on the number of controllers, not on the number of tags or programs.

Price on request

The licence is for one computer, with or without an end date. Write to us for an offer.

Do you want to connect your controllers?

Tell us what controllers you have and which programs need the data.

Contact us