4.OptaSense MODBUS Interface Specification For OS5 - Issue 6
4.OptaSense MODBUS Interface Specification For OS5 - Issue 6
Issue: Issue 6
Amendment Record
Issue Change Sheet / Reason for Change Date
By Whom
2 Engineering Correction to register start address 1st June 2015
Contact :
Email: [email protected]
The document contains information proprietary to OptaSense® and whose unauthorised disclosure
would cause damage to the interests of OptaSense®. Requests for permission for wider use or dissemination should be
made to Chris Minto.
Specification is liable to change without warning – please contact OptaSense® for latest version.
Reference: OptaSense/ENG/452
Copyright © OptaSense® Ltd 2021, Cody Technology Park, Ively Road, Farnborough GU14 0LX
Proprietary
© OptaSense Ltd 2021 1 MODBUS Interface Specification
Proprietary OptaSense/ENG/452 – Issue 6
Contents
1 Description ..................................................................................................................................... 3
2 MODBUS Summary Method ......................................................................................................... 4
2.1.1 Connectivity ........................................................................................................................ 4
2.1.2 Register Mapping................................................................................................................ 4
2.1.3 Alert Index Mapping ............................................................................................................ 5
3 MODBUS Detailed Method ............................................................................................................ 6
3.1 Connectivity ............................................................................................................................. 6
3.2 Devices .................................................................................................................................... 6
3.3 Register Mapping ..................................................................................................................... 7
3.3.1 Alert Index Mapping – 2 Register Mode ............................................................................. 7
3.3.2 Alert Index Mapping – 4 Register Mode ............................................................................. 9
3.3.3 Hardware and Software Status Registers ........................................................................ 11
Proprietary
© OptaSense Ltd 2021 2 MODBUS Interface Specification
Proprietary OptaSense/ENG/452 – Issue 6
1 Description
The OptaSense Modbus interface is a 16 bit TCP/IP interface designed to allow the mapping of alerts
and errors to discrete Modbus channels. This therefore allows the presence of an alert on the
OptaSense system to be notified and can be further investigated and understood via the OptaSense
system interface.
There are two methods of interfacing with Modbus available in OS5. The first, which is applicable for
OS3.6 and above, utilises a summary method of publishing alarms. This method is the simplest of the
two methods, where alarm information will be published, but cannot receive any acknowledgement
information back from the Modbus system.
The second method, available to OS5.3 and above, utilises a detailed method of publishing individual
alarms from the OptaSense system. To present this data via a Modbus interface, the OptaSense
server will construct and hold an array of registers, sufficient in quantity to maintain an Alarm register
and an Acknowledgment register for each channel. Depending on how many alert types are required,
this can be a total of 2 registers per channel (up to 16 alert types) or 4 registers per channel (up to 32
alert types). The number of registers available can be worked from a knowledge of the types of
detectors available in the OptaSense project or can be read directly from the Modbus process logs
once started. This method also allows the Modbus system to acknowledge alarms without the use of
the OptaSense software.
Both interfaces will work over multiple OPS instances. For the purposes of describing this interface, a
single fibre installation will be used. A single installation of the OptaSense product consists of one
single length of optic fibre up to a length of 50 kilometres with a single Interrogator Unit (IU).
For more information on how to install and test the Modbus interface, please consult “OptaSense OS5
Manuals – Module 9 Incorporating Ancillary Equipment” and “OptaSense OS5 Manuals – Module 7 -
Configuration Wizard User Manual”. Selection of the type of MODBUS interface being used as well
as configuration and testing of the available parameters is described in these documents.
The following guide provides information on the registries available and their contents. Distribution of
the OptaSense Modbus interface is controlled by the OptaSense system licensing process.
Proprietary
© OptaSense Ltd 2021 3 MODBUS Interface Specification
Proprietary OptaSense/ENG/452 – Issue 6
In this case, using 40,001 as an example, the first 4 register entries pertain to the system status:
The remainder of the register entries which follow the header are the read out of the number of
unacknowledged alerts of each type. Not all types will be available in all systems. For more detail on
which alert types are available in your system please consult the build record.
This is repeated as needed until all the alert types available are matched.
Proprietary
© OptaSense Ltd 2021 4 MODBUS Interface Specification
Proprietary OptaSense/ENG/452 – Issue 6
Proprietary
© OptaSense Ltd 2021 5 MODBUS Interface Specification
Proprietary OptaSense/ENG/452 – Issue 6
3.1 Connectivity
The OptaSense Modbus interface will listen on a preconfigured IP address and port. As a default, the
port will be the IANA well-known port of 502. These settings are configured within the OptaSense
setup wizard and required for the correct functioning of the system.
3.2 Devices
For the Modbus interface, the OptaSense software will utilise discrete devices which will represent
preconfigured sections of the fibre. These devices will not exist as separate electronic devices but are
akin to predefined database ‘views’ allowing the interface consumer to request a segment of the fibre
data, rather than having to interpret the full data set.
Each of these virtual devices will be addressed through the single configured IP address and Modbus
port using the Unit ID element of the Modbus TCP Request. Each device will have its own register
set, starting at 40001, containing the device status (system status) followed by the data for that
device’s specified channel range, as detailed later in this document.
A mapping of channel numbers to device IDs must be set up when the system is calibrated and the
physical locations are known. This will be entered via the Device section within the Modbus Interface
pages of the Wizard. Please note the channel coverage for a device cannot not exceed 63 channels.
The maximum number of devices that can be addressed in two register mode is 247 – thus the
maximum range configurable is 247 x 63 channel widths. In 4 register mode is this limited to 31
channel size (fixed number of Modbus registers)
Proprietary
© OptaSense Ltd 2021 6 MODBUS Interface Specification
Proprietary OptaSense/ENG/452 – Issue 6
Proprietary
© OptaSense Ltd 2021 7 MODBUS Interface Specification
Proprietary OptaSense/ENG/452 – Issue 6
Proprietary
© OptaSense Ltd 2021 8 MODBUS Interface Specification
Proprietary OptaSense/ENG/452 – Issue 6
Proprietary
© OptaSense Ltd 2021 9 MODBUS Interface Specification
Proprietary OptaSense/ENG/452 – Issue 6
**Reserved
Proprietary
© OptaSense Ltd 2021 10 MODBUS Interface Specification
Proprietary OptaSense/ENG/452 – Issue 6
In the event of a system error, a trained engineer must log into the OptaSense system to
remedy and clear the errors before clearing the errors on the EBI interface. Due to the level of
detail listing the OptaSense errors it is not possible to acknowledge and dismiss errors from
the EBI interface alone.
An example of Alarms in a given virtual zone would be sent as:
Status Addresses 32 Bit Integer
Threat.Type.Register 40005 N/A
Threat.Type.Activity 40005.1 00000000000000000000000000000001
Threat.Type.Activity 40005.1 00000000000000000000000000000011
Threat.Type.Digging 40005.2
Proprietary
© OptaSense Ltd 2021 11 MODBUS Interface Specification