Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RS_485
#1
Hello 
i have KC868-A6 Controller I want To Connect it as Modbus RS-485 A-B wires,  Between  (Sensor Flow ) & controller to monitor data on Arduino Ide using serial monitor . How To Do That ? 
Sensor Flow device Address register map is :

Code:
Register Address Register Type Description Access
40001 (0) Holding Register (4x) Flow Rate Read-only
40002 (1) Holding Register (4x) Temperature Read-only
40003 (2) Holding Register (4x) Pressure Read-only
40010 (9) Holding Register (4x) Flow Totalizer Reset Write-only
40020 (19) Holding Register (4x) Device ID Read/write
40050 (49) Holding Register (4x) Alarm Status Read-only
This table represents:
• Flow Rate (40001): A flow sensor reading available in this register for monitoring.
• Temperature (40002): Temperature sensor data available for monitoring.
• Flow Totalizer Reset (40010): This register allows you to reset the totalizer (write-only).
• Alarm Status (40050): Alarm indications and codes can be read from this register.
Access Types:
• Read-only: You can only retrieve data.
• Write-only: You can only send data (like resetting a value).
• Read/Write: Both reading and writing are allowed.
Modbus Function Codes for Register Access:
• 01 – Read Coils (for 0x addresses)
• 02 – Read Discrete Inputs (for 1x addresses)
• 03 – Read Holding Registers (for 4x addresses)
• 04 – Read Input Registers (for 3x addresses)
• 05 – Write Single Coil
• 06 – Write Single Holding Register
• 16 – Write Multiple Registers


Can any one Help me please ?
Reply
#2
you can write own arduino code according to your sensor modbus protocol, download arduino modbus library from internet.
another way, you can config the sensor by ESPHome. ESPHome support modbus controller component.
Reply
#3
thank you
Reply


Forum Jump:


Users browsing this thread: