
Weintek | บันทึกข้อมูล History บน HMI ด้วย Data Sampling
” Weintek HMI รองรับการบันทึกข้อมูลด้วย Data Sampling เพื่อเก็บค่าต่างๆ จาก PLC หรืออุปกรณ์ที่เชื่อมต่อ สามารถนำไปวิเคราะห์และตรวจสอบย้อนหลังได้อย่างมีประสิทธิภาพ “
เนื้อหาในบทความนี้แบ่งเป็น 4 ส่วน
PART 1 : การตั้งค่า Data Sampling PART 2 : ตาราง History Data Display PART 3 : กราฟ Trend History PART 4 : การ Save History Data Sampling
PART 1 : การตั้งค่า Data Sampling
1. แถบ Data/History -> เลือก Data Sampling2. คลิกปุ่ม New...
3. กำหนดเงื่อนไข Sampling mode -> คลิก Settings...
4. เลือก Device -> คลิก New...
4. กำหนด Address และ Format ที่ต้องการบันทึก
5. กำหนด Address อื่นๆเพิ่มเติม
PART 2 : ตาราง History Data Display
6. แถบ Data/History -> เลือก History Data Display
7. เลือก Data Sampling Index -> เลือก Style
8. แถบ Display -> กำหนดรูปแบบวันที่และเวลา
9. แถบ Display Format -> เลือก Channel ที่ต้องการแสดง
10. แถบ Title -> กำหนดรูปแบบหัวตาราง
11. คลิก OK -> วางตารางบน Windows Screen
PART 3 : กราฟ Trend History
12. คลิก OK -> วางตารางบน Windows Screen
13. เลือก Data Sampling Index -> กำหนดรูปแบบแกน X
14. แถบ Trend -> ตั้งค่า Grid
15. แถบ Channel -> เลือก Channel ที่ต้องการแสดง -> ตั้งค่ากราฟแต่ละ Channel -> กำหนด Main Axis
16. แถบ Y Scale -> กำหนด Main Axis
17. คลิก OK -> วางตารางบน Windows Screen
ทดสอบการทำงาน
PART 4 : การ Save History Data Sampling
18. แถบ Data/History -> เปิด Data Sampling จาก Part 1
19. Enable History file -> เลือกรูปแบบและที่จัดเก็บไฟล์
20. History file ถูกบันทึกในรูปแบบไฟล์ .db (นำไปใช้งานกับโปรแกรมฐานข้อมูล Database)
21. สามารถแปลงเป็นไฟล์ MS Excel ได้ด้วย EasyConverter (ติดตั้งมาพร้อมกับ EasyBuilder Pro)
– ตัวอย่างไฟล์ .xlsx ที่แปลงจากไฟล์ .db (ในโหมด Simulation สามารถดูไฟล์ที่บันทึกได้ที่ C:\EBpro\HMI_memory\datalog)
Download โปรเจคตัวอย่าง Data Sampling
https://drive.google.com/drive/folders/1mV4aqLvOseZB10XZmksfVxZma6kuo8yG?usp=sharing
K.Satcha