· Zen HuiFer · Case · 2 min read
Pipeline Equipment Monitoring
This article introduces the key indicators, statistical schemes, application scenarios, and signal content design for pipeline equipment monitoring. By monitoring the operating status of the equipment, equipment failures can be detected in a timely manner to ensure the normal operation of the pipeline.
Pipeline Equipment Monitoring
- Monitoring Indicators
Equipment Operating Status
- Standby 1
- Running 2
- Stopped 3
- Maintenance 4
- Abnormal Shutdown 5
Statistical Scheme
- Equipment working conditions in terms of time
Application Scenarios
- Monitor the status of pipeline equipment, detect equipment failures in time, and ensure the normal operation of the pipeline
Wildcard Subscription Mode
- To avoid losing operating status information due to sensor failures, install multiple sensors and use wildcards to listen
- Configure listening methods as needed
- Most resource-intensive, one client listens to all, other topics configure one client per topic
- Least resource-intensive, only one client listens to all
- Other configurations, wildcard + specific individual listening methods, can facilitate troubleshooting of sensor failures
Signal Content Design
Since the status values are relatively simple, only 1-5, there is no need for base conversion for now. The message content is a four-digit fixed device ID + device status
Example: 00012, the first four digits represent device number 0001, and 2 indicates that the current device is running
Configuration Example (only one wildcard is shown here)
First, add a client
The parsing script is as follows
function main(nc) { const deviceStatus = nc.substring(4,5) var dataRows = [ { "Name": "deviceStatus", "Value": deviceStatus } ]; var result = { "Time": Math.floor(Date.now() / 1000), "DataRows": dataRows, "IdentificationCode": parseInt(nc.substring(0,4)), "DeviceUid": "5", "Nc": nc }; return [result]; }
Add signal configuration
Send simulated data and view the chart
The topic for sending simulated data is tp/random
IdentificationCode: 5 data situation is as follows
IdentificationCode: 1 data situation is as follows
Configure a script alarm
Suppose we need to configure an alarm for the status of the machine with identification code 5 on the pipeline, the script we write is as follows
The script specifies the first item of data named
device_bj
in the parameter informationfunction main(map){ return map.device_bj && parseInt(map.device_bj[0].Value) === 5 }
Configure the alarm signal
Send simulated data and check the alarm situation