Welcome, Guest
Username: Password: Remember me

TOPIC: Modbus TCP

Modbus TCP 6 years 2 months ago #563

  • leosoft
  • leosoft's Avatar
Just installed and tested Teslascada2 today. I tried to read some tags thru TCP; but no data comes thru.
I have two different programs I use very often, since over a year, to read many meters and registers without any problem.
. It is not clear to me if "Offset" is relative to base 0 or 1 ?
. Would like to confirm: Holding Registers creates a Modbus read with FC= 3 and Input Registers creates a FC= 4 reading ?
. Defined my server at local ip (1192.168.1.237) port= 502 Poll= 3000 type= TCP Consecutive reg RTU via TCP No function 6
I tried various combinations but absolutely no response... Some registers are float, some Int32 with inverted words...
Any idea of what should be done, or check over Windows 7, to obtain a Modbus response?
Thanks for your help
Gabriel
The administrator has disabled public write access.

Modbus TCP 6 years 2 months ago #565

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 858
  • Thank you received: 126
  • Karma: -108
Dear Gabriel,
Answers to your questions:
- Offset is relative to base 0.
- Function code for reading Holding Register = 3, for Input Registers = 4.
- Settings for Modbus sever look correct.
Do you use TeslaSCADA2 Runtime to connect to your device? What message do you? "Can not connect to the server" or "Connection Lost"? If "Can not connect to the server" try to ping your device. If "Connection Lost" try to check registers you read. I recommend to use WireShark to check Requests and Responses.

Best regards,
Ruslan
The administrator has disabled public write access.
The following user(s) said Thank You: sugichtesla

Modbus TCP Configuration 6 years 3 weeks ago #628

  • ghesilviu
  • ghesilviu's Avatar
Dear Ruslan,
I tested a Modbus connection and there is a problem reading analogue addresses AI_00 - AI_03
Digital DI addresses are read correctly.....
I have configured according to the attached photo ....
Where do I get wrong?
Thanks
Silviu
Attachments:
The administrator has disabled public write access.

Modbus TCP Configuration 6 years 3 weeks ago #629

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 858
  • Thank you received: 126
  • Karma: -108
Dear Silviu,

You should choose Input register in Pointer type, not Holding Register.

Best regards,
Ruslan
The administrator has disabled public write access.
Go to top