HMI Weintek รองรับ Protocol OPC UA Client (Unified Architecture) ใน cMT X Series ทุกรุ่น นอกจากนี้ยังรองรับ Device PLC มากกว่า 400+ Driver ทำให้สามารถใช้จอเป็น Gateway เชื่อมต่อระหว่าง PLC กับ OPC UA Server อัพเดท Data แบบ Real-time ได้
OPC UA Client รองรับ Security None/Basic128/Basic256/Aes128/Aes256
![](https://i1.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/04/image-68.png?w=550&ssl=1)
Part 1 : วิธีตั้งค่าจอเป็น OPC UA Client
- แถบ Home -> System Parameter
![](https://i2.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/04/image-56.png?w=700&ssl=1)
2. เลือก New Device/Server…
![](https://i1.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/04/image-54.png?w=500&ssl=1)
3. คลิกปุ่ม Setting…
![](https://i2.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/04/image-55.png?w=500&ssl=1)
4. กำหนด ip address และ Port OPC UA Server -> คลิกปุ่ม Security,Authenitcation…
![](https://i1.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/04/image-57.png?w=600&ssl=1)
5. คลิกปุ่มค้นหา Server (OPC UA Server ต้อง Online)
![](https://i2.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/04/image-58.png?w=500&ssl=1)
6. เลือก Security ในการเชื่อมต่อ
![](https://i0.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/04/image-59.png?w=500&ssl=1)
7. คลิก OPC UA Client -> เลือก Tag Manager…
![](https://i1.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/04/image-61.png?w=500&ssl=1)
8. คลิก Get Tag…
![](https://i1.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/04/image-60.png?w=700&ssl=1)
9. เลือก Tag ที่ต้องการ Import เข้า HMI -> คลิก Add Nodes
![](https://i1.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/04/image-62.png?w=700&ssl=1)
10. กดปุ่ม OK -> Tag ของ OPC UA ถูก Import เข้าสู่หน้าจอ
![](https://i2.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/04/image-63.png?w=700&ssl=1)
Part 2 : การเรียก Tag มาแสดงผลที่หน้าจอ
- ตัวอย่างการเรียก Tag : Boolean type แสดงผลในรูปแบบ Switch/Lamp
![](https://i1.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/04/image-64.png?w=700&ssl=1)
- ตัวอย่างการเรียก Tag : Word type แสดงผลในรูปแบบ Numeric Display
![](https://i1.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/04/image-65.png?w=700&ssl=1)
- ตัวอย่าง Screen เรียก Tag จาก OPC UA Server
![](https://i2.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/04/image-66.png?w=650&ssl=1)
ทดสอบการใช้งาน OPC UA Client สื่อสารกับ OPC UA Server KEPserverEX
![](https://i2.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/04/image-67.png?w=700&ssl=1)
วิธีการใช้งาน OPC UA Server เป็น Gateway บนจอ Weintek HMI สามารถดูได้จากบทความนี้
https://www.kpt-machinery.com/weintek-opc-ua-server-gateway-plc/