Schema Specification

Introduction

This is a way of defining a schema for a modbus device. It includes way of specifying sets of registers and methods that manipulate and interpret these registers. The interpreted values can then be combined to form the desired end result.

The parts of a schema

In this toolkit a modbus schema consist of these parts

  • Device specific settings
  • All the meaningful fields and the mapping on how to obtain them from the underlying modbus values provided by the physical device.
  • Tests that relate a set of raw register/discrete values to the expected meaningful values.
    • This can be used to make it easier to verify the expressions in the fields and to test new implementations of this library (when others want to reimplement it in a different language)