Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: modbus rtu arduino to proview

modbus rtu arduino to proview 6 years 6 months ago #9193

  • sony2017
  • sony2017's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 26
  • Karma: 0
Hello,
I has been try arduino modbus rtu and tested read address 30001 from arduino to PC.
Now I'm not able to connect from arduino to proview.
Please show me the example for pwr55.

Sony
The administrator has disabled public write access.

modbus rtu arduino to proview 6 years 6 months ago #9197

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3170
  • Thank you received: 497
  • Karma: 133
Hi Sony,

Here is an example of Modbus RTU, reading of 10 registers with ReadHoldingRegisters. Note that Process is set to User4 (64) and you should use IoComm instead.

/Claes
Attachments:
Last Edit: 6 years 6 months ago by claes.
The administrator has disabled public write access.

modbus rtu arduino to proview 6 years 6 months ago #9205

  • sony2017
  • sony2017's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 26
  • Karma: 0
Hello Claes,
I has been tried with my arduino but still can't read.
I attach my setting. Please show me what my mistake.

Sony
Attachments:
The administrator has disabled public write access.

modbus rtu arduino to proview 6 years 6 months ago #9206

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3170
  • Thank you received: 497
  • Karma: 133
Hi Sony,

I think the Unitid corresponds to the Device id and should be 6. About the address I'm not sure if it should be 0, 1 or 30000.

/Claes
The administrator has disabled public write access.

modbus rtu arduino to proview 6 years 6 months ago #9207

  • marc
  • marc's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 710
  • Thank you received: 70
  • Karma: 24
Hi Sony,

Check the device and permission.
It can be the Arduino is under /dev/ttyACM0

/Marc
Please, use the Wiki if you succeeded your project or solved your problem. Share your work, so we can learn from each other.
The administrator has disabled public write access.
The following user(s) said Thank You: sony2017

modbus rtu arduino to proview 6 years 6 months ago #9209

  • sony2017
  • sony2017's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 26
  • Karma: 0
Hi,

@Claes,
Now I can read 6 values (30005 - 30010) from my arduino modbus. I still feel confuse to setting the slave address.
I attach setup picture from my experimen.
Let's say I read 6 input registers (30005 - 30010). Should I made Modbus_RTU_Module six times?
Please correct me if I'm wrong.

@Marc,
I use ttyUSB0 and I seen the Tx Rx was blinking during running the runtime. BTW now I able read the value.

Thank
Attachments:
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 8.825 seconds