OPC UA Server (Unified Architecture) เป็นฟังก์ชัน Built-in ในจอ Weintek รุ่น Advance Model (cMT3000X Series) ซึ่งจอ Weintek HMI รองรับการเชื่อมต่อ Device PLC มากกว่า 400+ Driver ทำให้สามารถใช้จอเป็น Gateway เพื่อเชื่อมต่อกับ OPC UA Client ต่างๆ และอัพเดท Data แบบ Real-time
OPC UA Server
– รองรับเฉพาะจอรุ่น Advance Model cMT3000X Series ทุกรุ่นยกเว้น cMT-FHDX
– รองรับสูงสุด 15,000 Tags / 50 HDA Address
– รองรับ Security None/Basic128/Basic256
Part 1 : วิธีตั้งค่า OPC UA Server
- เปิดโปรเจคไฟล์ที่ต้องการทำ OPC UA Server
![](https://i0.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/04/image-40.png?w=700&ssl=1)
2. แถบ IIoT/Energy -> เลือก OPC UA Server
![](https://i0.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/04/image-41.png?w=600&ssl=1)
3. Enable Server -> กำหนด Port : 48400 -> เลือก Security Policy
![](https://i2.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/04/image-42.png?w=600&ssl=1)
4. แถบ User Authentication -> เลือก Read/Write -> ปิดการใช้งาน User name & password
![](https://i1.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/04/image-43.png?w=450&ssl=1)
Part 2 : สร้าง Tag address เชื่อมต่อ Device PLC
5. เลือก New Tag…
![](https://i1.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/04/image-44.png?w=550&ssl=1)
6. ตั้งชื่อ Tag -> ระบุ PLC Address -> เลือก Read/Write mode
![](https://i0.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/04/image-45.png?w=850&ssl=1)
- ตัวอย่าง Tag OPC UA Server ที่ถูกสร้าง
![](https://i2.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/04/image-46.png?w=600&ssl=1)
Part 3 : ทดสอบ OPC UA Server ด้วย UaExpert Client
UaExpert เป็นซอฟต์แวร์ OPC UA Client ที่ดาวน์โหลดและใช้งานได้ฟรี โดยสามารถดาวน์โหลดจากลิงค์ด้านล่าง
https://www.unified-automation.com/downloads/opc-ua-clients/uaexpert.html
7. เปิดโปรแกรม UaExpert Client -> คลิกขวาเพิ่ม OPC UA Server
![](https://i2.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/04/image-47.png?w=800&ssl=1)
8. Add Server… -> ใส่ opc.tcp://<HMI IP>:48400
![](https://i2.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/04/image-48.png?w=500&ssl=1)
9. เลือกรูปแบบ Server Security ที่เชื่อมต่อ
![](https://i2.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/04/image-50.png?w=500&ssl=1)
10. Tag จาก OPC UA Server แสดงบนโปรแกรม UaExpert
![](https://i0.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/04/image-51.png?w=750&ssl=1)
11. ลาก Tag ที่ต้องการใช้งานลงใน Data Access View
![](https://i1.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/04/image-52.png?resize=1170%2C858&ssl=1)
ทดสอบการใช้งาน OPC UA Server สามารถสื่อสารกับ UaExpert ได้
![](https://i1.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/04/image-53.png?resize=1170%2C569&ssl=1)
สามารถ Download โปรเจคไฟล์ตัวอย่าง OPC UA Serverได้ตามลิงค์นี้ :
https://drive.google.com/drive/folders/1wZe51UyYr4smvIFgC4KP_XyNGzhIXzS-?usp=sharing