| View previous topic :: View next topic |
| Author |
Message |
Gediminas Junior

Joined: 17 Jul 2012 Posts: 4
|
Posted: 19/07/2012 09:14 Post subject: Modbus TCP/IP on Beckhoff CX9000 |
|
|
Hi,
I have a problem with implementation of Modbus TCP/IP on CX9000.
I did install Tc.ModbusSrv.lib in Twincat ( i use Twincat 2.10 v).
I'd like to know how make communication between HMI ( like a pc, using modbus slave program ) and CX9000 via Modbus TCP/IP protocol.
Can anybody help in step-by-step explanation or program example? |
|
| Back to top |
|
 |
messer Senior

Joined: 08 Mar 2012 Posts: 2059 Location: Europe
|
Posted: 19/07/2012 20:53 Post subject: Re: Modbus TCP/IP on Beckhoff CX9000 |
|
|
| Gediminas wrote: | Hi,
I have a problem with implementation of Modbus TCP/IP on CX9000.
I did install Tc.ModbusSrv.lib in Twincat ( i use Twincat 2.10 v).
I'd like to know how make communication between HMI ( like a pc, using modbus slave program ) and CX9000 via Modbus TCP/IP protocol.
Can anybody help in step-by-step explanation or program example? |
Follow these links:
http://infosys.beckhoff.com/espanol.php?content=../content/1034/tcmodbussrv/html/tcmodbussrv_overview.htm&id=
http://infosys.beckhoff.com/espanol.php?content=../content/1034/tcmodbussrv/html/TcModbusSrv_Configuration.htm&id=
http://infosys.beckhoff.com/espanol.php?content=../content/1034/tcmodbussrv/html/TcModbusSrv_Configuration.htm&id=
and
http://infosys.beckhoff.com/espanol.php?content=../content/1034/tcmodbussrv/html/TcModbusSrv_Configuration.htm&id=
http://infosys.beckhoff.com/espanol.php?content=../content/1034/tcmodbussrv/html/TcModbusSrv_Configuration.htm&id=
Full description of functionality and full documentation is available under TwinCAT PLC Control, "Visualisierung"
http://infosys.beckhoff.com/content/1034/TcPlcControl/HTML/TcPlcVisu_Target_intro.htm
ApplNote:
ftp://ftp.beckhoffautomation.com/Application%20Notes/web/BC-AppNote-010/pdf/BC-AppNote-010.pdf
ftp://ftp.beckhoffautomation.com/Application%20Notes/web/BC-AppNote-009/pdf/BC-AppNote-009.pdf
ftp://ftp.beckhoffautomation.com/Application%20Notes/web/BC-AppNote-008/pdf/BC-AppNote-008.pdf
ftp://ftp.beckhoffautomation.com/Application%20Notes/web/BC-AppNote-002/html/index.html
General Video:
http://www.youtube.com/watch?v=8T171NIyH74&list=UUupSW3kE0py5YewUuq9T9iA&index=4&feature=plcp
Project but not in English:
http://www.rtcoostvlaanderen.be/media/docs/Beckhoff-PLC/Cursus%20Beckhoff%20PLC%20en%20TwinCat.pdf |
|
| Back to top |
|
 |
Gediminas Junior

Joined: 17 Jul 2012 Posts: 4
|
Posted: 23/07/2012 10:24 Post subject: |
|
|
| I read those links, but i still don't really know what's the problem. Maybe someone can explain step-by-step implementation? |
|
| Back to top |
|
 |
Gediminas Junior

Joined: 17 Jul 2012 Posts: 4
|
Posted: 26/07/2012 11:55 Post subject: |
|
|
OK, now i solved half of the problem:
I i installed modbus tcp/ip server libraries on my cx9000, i used program Modbus Slave and performed all 1 to 4 ( read write regs, coils etc) functions with the plc ( in this way plc works as a client (master) and pc slave program as as server (slave) ant it worked well.
Now the problem is that i need my cx9000 as a server (slave) and my pc as a client (master(on pc i use Modbus Poll program)). How to program my cx9000 as a slave device?
In a library help it says:
The MODBUS ADS server enables communication with a MODBUS client or a MODBUS server via a MODBUS/TCP connection. The server can therefore be used both as MODBUS client or MODBUS server.
So i guess i need to use same function blocks as in client case, but that seems nonsense... in a help it also mentions some kind of Modbus server configurator program that i dont have idea about.
So i need help to make my cx9000 work as a slave device... |
|
| Back to top |
|
 |
Gediminas Junior

Joined: 17 Jul 2012 Posts: 4
|
Posted: 26/07/2012 14:47 Post subject: |
|
|
I have solved my problem,
Whent cx9000 is a slave, it doesnt need any program interface with modbus, it is the master that needs it. |
|
| Back to top |
|
 |
|