MQTT vs OPC UA: getting machine data into IT systems
How MQTT and OPC UA differ in communication model, data description and security, and which ICP DAS devices support each protocol.
How the browser-configured IF-THEN-ELSE rules on WISE modules handle local logic, logging and alarms, with a worked example and the limits.
Veröffentlicht
Many monitoring tasks need a small amount of logic: switch on a fan when the temperature rises, send an alarm when a door stays open, stop a pump when the level is too low. A PLC can do this, but it needs programming software and someone who maintains the program. ICP DAS WISE modules run IF-THEN rules that are configured in a web browser instead. This article explains how the rule engine works, shows a worked example, covers data logging and notifications, and describes where the limits are compared with a PLC.
Every WISE module has a built-in web interface. You open it in a browser, define the rules on web pages and save them to the module, where they are executed. No programming tool or extra software is needed. Each rule has three parts:
Besides the I/O channels, the rules can use timers, internal registers and recipe operations, and schedules let rules act at set times. The edge controllers also provide mathematical operations. Modules can send CGI commands to IP cameras and other network devices, so a rule can trigger an action in another device.
A WISE-7526M monitors a small technical room. It has 6 analog inputs, 2 digital inputs, 2 digital outputs and 2 analog outputs, and it is powered over PoE. The signals are wired as follows: AI0 room temperature (4 to 20 mA transmitter), AI1 humidity, DI0 door contact, DI1 UPS alarm contact, DO0 extra cooling fan, DO1 warning beacon. Limits are shown in °C for readability; enter them as the input values that match the transmitter range.
| Rule | IF | THEN | ELSE |
|---|---|---|---|
| 1 | AI0 above 28 °C | DO0 on (fan) | |
| 2 | AI0 below 26 °C | DO0 off | |
| 3 | AI0 above 35 °C | DO1 on (beacon) | DO1 off |
| 4 | AI0 above 35 °C | Email "over temperature" | |
| 5 | DI0 open | Start timer T1 (5 min) | Reset T1 |
| 6 | Timer T1 expired | Email "door left open" | |
| 7 | DI1 active | Start timer T2 (60 s) | Reset T2 |
| 8 | Timer T2 expired | Email "UPS alarm" |
Rules 1 and 2 use two thresholds, so the fan does not switch on and off around a single value. Rules 5 to 8 use timers as delays, so a door opened briefly for maintenance or a short UPS event does not cause an email. Test how the module behaves while a condition stays true, so a persistent alarm does not flood the mailbox. Meanwhile the module publishes its values over MQTT to a central broker for a dashboard.
One practical point: WISE-7100 and WISE-75xxM I/O modules send email without SSL. Many mail services only accept encrypted connections, so plan for a local mail relay, or use a WISE edge controller, which supports SSL email.
The WISE I/O modules (WISE-7100 and WISE-75xxM) do not list a data logger. They make their values available over Modbus TCP, and the WISE-75xxM models also over MQTT, so a SCADA system or broker records the history.
WISE-5800 adds a data logger with microSD card. It records I/O values by event or at regular intervals and sends the files by email or FTP. It reads I-7000 remote I/O modules or Modbus RTU devices.
The edge controllers WISE-5231M, WISE-2241M and WISE-2841M support an unlimited number of rules, timers, schedules and data logger sets, with a built-in 32 GB microSD card. They read XV-board I/O, RS-485 modules and Modbus TCP devices, and push data actively by MQTT publish, Modbus TCP or SNMP trap. Notifications include SSL email, SMS on the 4G models and messaging apps such as Telegram on WISE-2841M. All WISE edge controllers work with IoTstar for central monitoring and remote maintenance.
| WISE-7100 I/O | WISE-75xxM I/O | WISE-5800 | Edge controllers | |
|---|---|---|---|---|
| I/O | Built-in | Built-in | XW-board, I-7000, Modbus RTU | XV-board, RS-485 and Modbus TCP modules |
| Rules | 36 | 72 | 36 | Unlimited |
| Timers / schedules | 12 / none | 24 / 24 | 12 / 12 | Unlimited |
| Data logger | No | No | 1 set, microSD | Unlimited sets, 32 GB microSD |
| Protocols | Modbus TCP | Modbus TCP, MQTT | Modbus TCP/RTU | Modbus TCP/RTU, MQTT with SSL, SNMP, FTP |
| Non-SSL | Non-SSL | Non-SSL | SSL |
Examples: WISE-7144 (8 DI, 8 DO), WISE-7105 (8 thermistor inputs, 4 DO), WISE-7526M and WISE-7555M (MQTT). WISE-5231M-4GE and WISE-2841M-4GE have a built-in 4G modem for EMEA frequency bands.
When the limits are reached, ICP DAS Win-GRAF PACs run IEC 61131-3 programs, and the UA series communication servers include a PID function. For networks with stricter security requirements, ETS-7200 Ethernet I/O such as ETS-7255 also offers IF-THEN-ELSE logic together with HTTPS and MQTT with optional TLS.
Send us a list of your signals and the logic you need, and our technical sales team will suggest a suitable WISE model or an alternative.
AR-200 CR is a dynamic signal acquisition module for vibration monitoring and analysis. It accepts two IEPE accelerometers, each supplied with a built-in 3 mA excitation current, and digitises the signals with a 16-bit converter. Sampling of both channels runs simultaneously, at rates up to 200 kHz per channel.Recordings are written to a Micro SD card, so data can be taken away and analysed offline. Capture can be started by a push button, a schedule, an analog threshold, a digital input or a remote command from the supplied utility on a host PC, which also lets you set the sampling rate and scheduling for each application. A single relay output and one digital input add basic event handling to the unit.The logger suits panel or machine installations that need to run unattended. It works from a wide +10 to +30 VDC supply, operates from -25 to +75 °C, and provides 4 kV contact ESD protection on all terminals. Mounting is by wall or DIN-rail.ApplicationsVibration monitoring and analysisIndustrial automationFactory automationProcess automation
The AR-400 is a dynamic signal acquisition module for vibration monitoring and analysis. It samples four channels simultaneously with 16-bit resolution and supplies a built-in 3 mA excitation current for IEPE accelerometers, so compatible sensors can be connected directly without an external supply.Acquired data is written to a micro SDHC card (4 to 32 GB), allowing offline analysis after capture. Recording can be started by push button, schedule, analog threshold, digital input or remote trigger from the utility software installed on a host PC, which also handles sample rate and sampling schedule settings.Suited to condition monitoring setups where vibration data must be captured at defined times or on defined events.Includes a relay output (Form A, 5A@250 VAC) and a digital input for use within trigger or control logic.ApplicationsVibration monitoring and analysisIndustrial automationFactory automationProcess automation
CA-LLD-DC100-L010 is a 1 m liquid leak detection cable for monitoring large areas where leaks may travel along an unpredictable route. Its sensing wires make it a practical choice for open floors and surfaces with several possible leak points, rather than a single fixed sensing spot.The cable has a 6 mm fluoropolymer carrier. Its sensing wires are 2 × 30 AWG, enclosed in a conductive fluoropolymer jacket. It can be fixed directly to water supply and return lines, so it can cover pipework as well as the surrounding floor area. The maximum continuous operating temperature is 70 °C.This ordering code is the without position variant, supplied in a 1 m length. It is RoHS and WEEE certified.ApplicationsLeak detection in open areasMonitoring water supply and return linesCovering larger surface areas with multiple potential leak points
CA-LLD-DC100-L030 is a 3M liquid sensing cable for detecting leaks across a wide area when the likely leak path cannot be predicted in advance. It suits open floor areas and larger surfaces where several leak points may appear.The cable can be run directly along water supply and return lines, so it can cover pipework without a dedicated sensor installation at each joint. Its 6 mm fluoropolymer carrier houses two 30 AWG sensing wires with a conductive fluoropolymer jacket.Designed for continuous operating temperatures up to 70°CSupplied in 3M length, identified by the -L030 suffixRoHS and WEEE certifiedApplicationsLeak detection along water supply and return linesOpen areas and larger surfaces with multiple potential leak pointsWide-area water leak monitoring where the leak path is not predetermined
How MQTT and OPC UA differ in communication model, data description and security, and which ICP DAS devices support each protocol.
How to connect an unmanned site over 4G: outgoing connections or VPN, power, alarms, buffering when offline, and which ICP DAS devices fit.
Wir kennen das ICP DAS Sortiment und helfen Ihnen, das passende Modul, Zubehör oder Ersatzteil zu finden.
Technischen Vertrieb kontaktieren