จอ HMI Weintek สามารถใช้เป็น Gateway ตัวกลางเชื่อมต่อระหว่าง PLC กับอุปกรณ์ Modbus Client โดยใช้จอเป็น Modbus TCP Server โดยทำการ Mapping PLC Address เข้ากับ Driver Modbus IDA เพื่อเชื่อมต่อระบบต่างๆ เช่น SCADA, OEE, MES
![](https://i0.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/05/image-13.png?w=550&ssl=1)
Part 1 : ตั้งค่า MODBUS TCP Server
1. แถบ Home -> เลือก System Parameters
![](https://i2.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/05/image.png?w=700&ssl=1)
2. คลิก New Device/Server…
![](https://i1.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/05/image-2.png?w=600&ssl=1)
3. เลือก MODBUS IDA -> MODBUS Server
![](https://i0.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/05/image-3.png?w=550&ssl=1)
4. ติ๊ก Enable MODBUS TCP/IP Gateway
![](https://i1.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/05/image-5.png?w=750&ssl=1)
5. คลิก Address Mapping Tables…
![](https://i2.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/05/image-6.png?w=600&ssl=1)
6. คลิก Settings… เพื่อ Mapping Address PLC
![](https://i1.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/05/image-7.png?w=700&ssl=1)
7. Mapping Address PLC เข้ากับ MODBUS TCP Server
![](https://i2.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/05/image-8.png?w=800&ssl=1)
Part 2 : ทดสอบ MODBUS TCP Server
- ตัวอย่าง Address Mapping
![](https://i2.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/05/image-10.png?w=700&ssl=1)
- ดาวน์โหลดโปรเจคไฟล์ลงหน้าจอ HMI
![](https://i2.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/05/image-11.png?w=700&ssl=1)
- ทดสอบอ่านค่า MODBUS TCP Server จาก HMI ด้วย ModScan32
![](https://i1.wp.com/www.kpt-machinery.com/wp-content/uploads/2024/05/image-12.png?w=1000&ssl=1)
สามารถดาวน์โหลดโปรเจคไฟล์ตัวอย่างได้ที่
https://drive.google.com/drive/folders/1oRvxgZute5PlzJ7fuVAKTWMCBwsTxQPp?usp=drive_link