<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Bê tông Việt Mỹ - Bê tông tươi Hà Nội]]></title><description><![CDATA[Kỹ thuật trạm trộn bê tông tươi tự động hóa PLC, hệ thống 4 trạm trộn công suất 180 m³/h và tiêu chuẩn bê tông thương phẩm M150-M500 tại Hà Nội của Bê tông Việt]]></description><link>https://betongvietmyhanoi.hashnode.dev</link><image><url>https://cdn.hashnode.com/uploads/logos/6b0b87e45b993315369d3e2b/563c1670-4ce4-47a0-87e1-2c2759bd18e3.jpg</url><title>Bê tông Việt Mỹ - Bê tông tươi Hà Nội</title><link>https://betongvietmyhanoi.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Dec 2026 21:30:12 GMT</lastBuildDate><atom:link href="https://betongvietmyhanoi.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Designing Real-Time PLC & Loadcell Telemetry Pipelines with MQTT and TimescaleDB]]></title><description><![CDATA[In industrial automation for high-capacity concrete batching plants (180 m³/h), capturing accurate weight measurements from PLC loadcells without blocking…]]></description><link>https://betongvietmyhanoi.hashnode.dev/designing-real-time-plc-loadcell-telemetry-pipelines-with-mqtt-and-timescaledb</link><guid isPermaLink="true">https://betongvietmyhanoi.hashnode.dev/designing-real-time-plc-loadcell-telemetry-pipelines-with-mqtt-and-timescaledb</guid><category><![CDATA[iot]]></category><dc:creator><![CDATA[Bê tông Việt Mỹ - Hà Nội]]></dc:creator><pubDate>Sun, 29 Nov 2026 02:20:57 GMT</pubDate><content:encoded><![CDATA[<p>In industrial automation for high-capacity concrete batching plants (180 m³/h), capturing accurate weight measurements from PLC loadcells without blocking control loops requires an asynchronous telemetry pipeline.</p>
<h2>1. Edge Ingestion Architecture</h2>
<p>Rather than querying the PLC directly from a web dashboard, an industrial edge gateway polls holding registers over <strong>Modbus TCP</strong> at 200 ms intervals and publishes normalized batch payloads to an <strong>MQTT broker</strong>:</p>
<pre><code class="language-json">{
  "plant_id": "hn-station-01",
  "batch_id": "2026-11-29T02-15-00Z",
  "grade": "M300",
  "materials_kg": {
    "aggregate_1x2": 1085.4,
    "river_sand": 742.0,
    "cement_pcb40": 355.0,
    "water_l": 172.5
  },
  "tolerance_pct": 0.42
}
</code></pre>
<p>Using QoS 1 ensures at-least-once delivery even across cellular uplinks when field sites experience brief packet loss.</p>
<h2>2. Time-Series Storage with TimescaleDB</h2>
<p>A lightweight Go or Python consumer subscribes to <code>plants/+/telemetry</code> and writes batches into a PostgreSQL hypertable partitioned by timestamp:</p>
<pre><code class="language-sql">CREATE TABLE batch_telemetry (
  recorded_at TIMESTAMPTZ NOT NULL,
  plant_id    TEXT NOT NULL,
  batch_id    TEXT NOT NULL,
  grade       TEXT NOT NULL,
  payload     JSONB NOT NULL
);

SELECT create_hypertable('batch_telemetry', 'recorded_at');
</code></pre>
<p>Continuous aggregates then compute per-shift material variance and compliance against TCVN 9340:2012 mix tolerances without scanning raw rows.</p>
<h2>3. Production Reference</h2>
<p>This decoupled Modbus-to-MQTT architecture helps engineering teams monitor multi-station operations (such as the 4-plant 180 m³/h batching network documented by <a href="https://betongtuoihanoi.vn/">Bê tông Việt Mỹ</a>) with sub-second observability while keeping safety-critical PLC logic isolated on the local OT subnet.</p>
]]></content:encoded></item></channel></rss>