Tag Historian

🔁 เก็บข้อมูล Real-time Parameters สำหรับทำ Digital Twin

📌 ใช้ทำอะไร

  • เก็บข้อมูลจาก PLC ผ่าน Ignition OPC-UA Server โดยใช้ Tag Historian บันทึกค่าที่เปลี่ยนแปลง

  • ใช้ข้อมูลนี้สำหรับวิเคราะห์ย้อนหลัง (historical trends), digital twin simulation, และ machine learning

🛠️ ใช้อะไรทำ

  • Ignition Tag Historian Module + SQL Bridge Module

  • เก็บข้อมูลในฐานข้อมูล MS-SQL

  • บันทึกเฉพาะเมื่อค่า "On Change" (ค่าเปลี่ยน) และ เก็บไว้ 3 เดือน

🧪 ตัวอย่างการตั้งค่าใน Ignition

✅ Tag Configuration:

Tag Path: [default]Machine01/Temperature History Enabled: true Storage Provider: sqlHistorian History Mode: On Change Max Time Between Samples: 1 hour Deadband: 0.1

✅ Tag Historian Storage (ใน Ignition Gateway):

Name: sqlHistorian Datasource: postgres_db Partition Length: 1 month Default Table: sqlth_te, sqlth_1_data, ...