Difference between revisions of "AlarmEvent"
From ESS-WIKI
Eric.liang (talk | contribs) |
Eric.liang (talk | contribs) |
||
Line 12: | Line 12: | ||
== Software Requirements == | == Software Requirements == | ||
− | * | + | *MQTT broker v1.0.3 |
*EI Agent | *EI Agent | ||
− | * | + | *Modbus_Handler v2.0.1 |
== Installation == | == Installation == |
Revision as of 08:54, 26 February 2019
Contents
Introduction
Alarm event that is a service to subscribe MQTT borker topic to get message code.
Accroding to message code mapping event message and send event to EI server. Event message is setting in the "event_config.json". And event_config.json that can set handler name, tag name to subscribe specific handler and message code.
Alarm Event
How to
Software Requirements
- MQTT broker v1.0.3
- EI Agent
- Modbus_Handler v2.0.1
Installation
1.Double click AlarmEvent-X.X.X.exe to install.
2.Click "Next" to continue the setup wizard.
3.Select installation folder then click "Next"
4.Click "Next" to begin the installation
5.Complete the installation, click "Finish" to exit the setup wizard
6.Edit event_config.json (if need)
7.Restart device
Configuration
event_config.json (location: C:\Program Files (x86)\Advantech\AlarmEvent\config)
- tag_name: Subcribe tag name
- subtype: Event subtype
- event:
- severity: Emergency = 3 ,Warning = 4
- msg_code: Device output code
- msg: Output code express message
- error_code: Output code express error code
- extmsg: Externel event message
- server: MQTT broker ip
- server_port: MQTT broker port
{ "tag_name":"Error_Code", "subtype":"TC_AC", "event": { "1": {"severity":3, "msg_code":241, "msg":"E:0030 Door Open","error_code": "E:0030", "extmsg":"Immediate stop: Enclosure door open"}, "2": {"severity":4, "msg_code":242, "msg":"A:0030 Door Open", "error_code": "A:0030","extmsg":"Warning: Enclosure door open"}, "3": {"severity":4, "msg_code":250, "msg":"A:0031 CAB FTR DP ALM","error_code": "A:0031", "extmsg":"Warning: Cabinet filter differential pressure"}, "4": {"severity":3, "msg_code":321, "msg":"E:0040 Oil level","error_code": "E:0040", "extmsg":"Immediate stop: Oil level alarm"}, "5": {"severity":4, "msg_code":322, "msg":"A:0040 Oil level alarm","error_code": "A:0040", "extmsg":"Warning: Oil level high"}, "6": {"severity":3, "msg_code":401, "msg":"E:0050 RD alarm","error_code": "E:0050", "extmsg":"Immediate stop: Refrigerant dryer"}, "7": {"severity":4, "msg_code":402, "msg":"A:0050 RD alarm","error_code": "A:0050", "extmsg":"Warning: Refrigerant dryer"}, "8": {"severity":3, "msg_code":481, "msg":"E:0060 Belt drive SERV","error_code": "E:0060", "extmsg":"Immediate stop: Belt drive service"}, "9": {"severity":3, "msg_code":561, "msg":"E:0070 Fan MTR IMM stop","error_code": "E:0070", "extmsg":"Immediate stop: Fan motor trip"} }, "server":"127.0.0.1", "server_port": 3000 }
Import event table
- Add RMM_Event data source => Configuration / DataSources
- Upload plugin (swanair-datatable-panel_2018-11-21.zip) => Configuration / Plugins
- Add panel
- Panel setting
- Hidden Column
- Event table
Json Data Format
{ "susiCommData": { "commCmd":2059, "requestID":2001, "agentID":"Modbus_Handler", "handlerName":"general", "sendTS":1541992952337, "eventnotify": { "subtype":"TC_AC", "msg":"Door Open", "severity":4, "handler":"Modbus_Handler", "extMsg": { "n": "Warning: Enclosure door open", "ErrorCode":"A:0030", "eventID":242, "ModBusDeviceID":"Modbus_Device0", "HandlerName":"Modbus_Handler" } } } }
Use Case
...
Release
Index | Version |
Date |
Platform |
OS |
Release Note |
Download | Note |
1 | 1.0.1 | 2018/12/10 | x64 CPU |
Windows 10 | AlarmEvent_ReleaseNote_1.0.1.pdf |
Event Format v1.0.1 | |
2 | 1.0.2 | |
x64 | Windows 10 | |
|
event_config.json |