การใช้งาน Relay RS485 Modbus Protocol
วันนี้จะพามาเรียนรู้การใช้งานชุดเรียนรู้ Relay RS485 ผ่าน Protocol Modbus ครับ
ก่อนอื่นตั้งค่าการเชื่อมต่อ เลือก com port และกำหนด None Parity
จากนั้นมาที่ read/write definition
แล้วกำหนด Slave ID:1, address:1, quantity:1, display:Hex
จากนั้นกำหนดค่า address:1 = 300 ในหน้า view
แล้วก็มาที่ test center
แล้วทำการส่งคำสั่ง modbus ไปยังอุปกรณ์
01 06 00 01 01 00 — relay 1 open
01 06 00 01 02 00 — relay 1 close
01 06 00 01 03 00 — relay 1 toggle
01 06 00 02 01 00 — relay 2 open
01 06 00 02 02 00 — relay 2 close
01 06 00 02 03 00 — relay 2 toggle
01 06 00 03 01 00 — relay 3 open
01 06 00 03 02 00 — relay 3 close
01 06 00 04 03 00 — relay 3 toggle
01 06 00 04 01 00 — relay 4 open
01 06 00 04 02 00 — relay 4 close
01 06 00 04 03 00 — relay 4 toggle
Developer Project : IoT Phuket Lab
https://iotphuketlab.home.blog/
https://medium.com/@aegkaluk
https://www.facebook.com/iotphuket/
https://www.youtube.com/user/MrAegkaluk
https://sites.google.com/view/iot-phuket-lab-documents
https://pantip.com/profile/368674#topics
แวะเยี่ยมชมสินค้าของทางร้าน
https://www.phuket-it.com/iotphuketlab/
https://www.lazada.co.th/shop/phuket-bike-lover
https://shopee.co.th/aegkaluk