Skip to main content
Version: 2.8

Modbus Alarm Addresses

The Address for the alarms is following:

AddressDescriptionData Type
OEMAlarmEvent:0System Alarm and operator message reader.TAlarmEvent[]

Messages are not acknowledged by the HumanOS® IoT Runtime. Typically, this is done by the machine component when its associated reset action is activated.

Alarm Item

See the Operation Manual for the containing fields.

Alarm Tasks and Mapping

The driver supports device alarms by mapping source. It is possible to declare multiple alarm sources (tasks) for one alarm address (pool).

This example shows three alarm sources with a mapping file:

{
...
"AlarmEventPool": {
"Id": "FA1611AB-B6C9-4FF4-B34D-BF35E6A44232",
"Name": "AlarmEventPool",
"Tasks": [
{
"Id": "10077ca2-4e2e-493c-a531-279df6c10cc8",
"Name": "Report Messages",
"Address": "OEMAlarmEvent:0",
"Properties": [
{
"Name": "MessageMappingFile",
"Value": "Messages.json"
},
{
"Name": "MessageCount",
"Value": 20,
"DataType": "System.Int32"
},
{
"Name": "StartAddress",
"Value": "HoldingRegister.ByteArray:972.48"
},
{
"Name": "MessageFormat",
"Value": "BitMessage"
},
{
"Name": "Message:Type",
"Value": "Standard"
}
]
}
]
}
}
AccessorDescription
IdUnique Id for each task
NameA name for the task
AddressAlarm address (pool)
Property MessageMappingFileThe mapping file to load (JSON)
Property MessageCountAmount of messages which are mapped
Property StartaddressThe corresponding source address with offset and length
Property MessageFormatIs always BitMessage
Property Message:TypeType of each message that occurs from this source

A property which starts with Message: is attached as property to the alarm item (e.g. message) which means additional fields are added with this data.

Mapping means, the alarms and events are defined by the data given and not the data that the alarm source provides. The mapping source must be of type JSON must be structured like this example:

{
"Messages": [
{
"Id": 0,
"AlarmType": "Alarm",
"OemId": "Alarm 1",
"Text": "Test message; CPU Error",
"Properties": [
{
"Name": "Property1",
"Value": "Value1"
}
]
}
]
}
AccessorDescription
IdSpecifies the bit number (absolute)
AlarmTypeSpecifies the Alarm type, see Alarm Types in Alarm and Event Source
OemIdThe Condition name of the alarm or event
TextSpecifies the message
PropertiesSpecify properties which are attached to this alarm or event and can later be accessed
Properties:NameProperty name
Properties:ValueProperty value