Professional Documents
Culture Documents
In Enron Modbus, there is a different table for each of the different data types.
Each value in a table has a data address and a corresponding register number.
Unlike Standard Modbus, in Enron Modbus the Register Numbers are equal to the
Data Addresses. For example, Register Number 7001 has Data Address 1B59(7001 in
hexadecimal). The offset is 0 for all Enron Modbus Registers.
A Function code is sent by the master to select a table and command type (read or
write).
There are two kinds of events, Operator events and Alarm events.
Operator events are changes to mapped items. Therefore, if you want to record an
event when a certain value changes, that value must be included in the map. Inversely,
you cannot define which mapped items create events because all mapped items create
events when they are changed.
Alarm events occur when mapped items exceed limits. The limits are defined in the
Enron Modbus slave device.
The Slave device will store at least 100 of the most current events, including both
operator and alarm events.. A numeric variable called the Event Index is typically
mapped to a 7000 series numerical variable so it can be read. The Event Index is the
number of events that have occurred since the event buffer was last read.
The response from the slave will contain all the events that have occurred since the
last collection. If more than 255 events have occurred, only the earliest 255 will be
transmitted. If no events have occurred, the slave sends a response containing no data
values.
After an event transmission, the master can send an acknowledgement message to the
slave to reset the Event Index and clear the event log.
There is only one command for both types of events. The type of event is shown in the
response.
This link shows an example of the request with an Enron operator event response.
This link shows an example of the request with an Enron alarm event response.
This link shows an example of the Enron event acknowledgement request and
response.
The Daily and Hourly Archives are lists of historical item values with specific time
stamps.
The items included in the lists are defined in the modbus map.
There are two types of history tables, Daily History and Hourly History.
The tables sizes are also defined in the slave device.
A Daily Archive table records are the values for the historical items at the end of each
day.
A Hourly Archive table records are the values at the end of each hour. Therefore an
hourly table would contain 24 times more records than a daily table for the same time
period..
Each record is given a specific record number. This number wraps back to zero when
the table fills up and the device starts writing over old data. The most current record
numbers are recoded in variables called the Hourly Index and Daily Index. These
index variables are typically included in the map as 7000 series numerical variables so
they can be read.
This link shows an example of the Enron history request and response.
In conclusion, Enron modbus is very similar to standard Modicon modbus. The main
differences include using specific data types in defined blocks of the modbus map and
using zero offset between the register numbers and the data addresses. Some specific
commands were also added to facilitate the sending of events and historical records.