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

TOPIC: Modbus TCP configuration

Modbus TCP configuration 7 years 2 weeks ago #8895

  • JavKin
  • JavKin's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 20
  • Karma: 0
Hi everyone,
I try to configure the Modbus tcp ,but i cant't find the address ,it lead connect lost for modbus_tcp_slave ,as follows,how can i do?

/Javkin
Attachments:
Last Edit: 7 years 2 weeks ago by JavKin.
The administrator has disabled public write access.

Modbus TCP configuration 7 years 1 week ago #8901

  • Tomas
  • Tomas's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 44
  • Karma: 0
Hi JavKin,
You should be know the modbus server side. IP Address. Port for Modbus TCP, defalut is 502,And the Unit ID, that is the device ID or connect ID to connect. Of course you need make sure the Modbus TCP data is exit in your sever side. that you want to write or read. you can use modscan32 to test. Or configure a modbus tcp server with proview. and test it. it's convenient use VM to test it. If you communicate with Siemens's PLC. You must program to use modbus TCP server.
You need call "MB_SERVER" function block to create the modbus TCP Server. defined the IP Address. port, connect ID. And the Data area. such as 10 int.
In the proview side you set the IP Address, port, unit ID to match the Siemens PLC(the example is s7-1200), if in the proview you write address from 0, that you can write 10 int type to Siemens PLC from DB*.DBW00, If you write the address from 6 that mean you will write from DB*.DBW6-DBW9. only 4 int.
Attachments:
The administrator has disabled public write access.

Modbus TCP configuration 7 years 1 week ago #8904

  • brunad
  • brunad's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 247
  • Thank you received: 48
  • Karma: 11
Modbus TCP/IP embedds modbus RTU protocol. Address field (8 bits unsigned) is use to identify slave Remote Terminal Unit. It as no use in modbus TCP because you use IP adress instead except if you use Mosbus RTU slaves through a Modbus TCP / Modbus RTU gataeway (the gateway has the IP address and slave 8 bits address)

/Bruno
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 8.988 seconds