Skip to main content
Version: Next

Good practices

These pages say how to arrange a gateway so that it is small, predictable and cheap to change. They are for the engineer who sets up a plant, and they come from the projects that were built on Scadex and tested so far: a Siemens S7-1500 HMI rebuilt from a WinCC Unified export (S7_VN_NIRO, 830 tags), a wave pool control app moved off an older stack (AllWaves), and the virtual PLCs used to try drivers without hardware.

Each page is a practice and the reason for it, with the numbers from those projects. They are advice, not rules: every setting they mention works the other way too.

  1. One OPC UA tag per structure, derived tags for its fields: read a whole structure through one tag and let its fields follow it.
  2. Model repeated equipment as types: what belongs in a parameter, a nested type, a parent type and an alarm template.
  3. Connections: one per server, named for what people call it, switched on when the address is right.
  4. Set it up by script and run it again: plan, apply, verify, and what makes a run safe to repeat.
  5. Try it before it is live: a stand-in PLC, a throwaway gateway and the checks worth writing.

What has been tried​

  • The OPC UA driver has read one real S7-1500 (S7_VN_NIRO). Nothing else has been tried on real hardware.
  • Decoding a structured value into fields has not been verified against a real server. The structure practice is built and tested against virtual PLCs and a throwaway gateway; the AllWaves connections have never reached their PLCs.
  • Where a page gives a count (20 types, 119 tags, 643 alarms), it is what that project came to, not a recommendation of a size.