plc.myforum.ro Forum Index plc.myforum.ro
PLCs users www.plc.myforum.ro!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Modbus TCP/IP on Beckhoff CX9000

 
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> Other PLCs Reg. U
View previous topic :: View next topic  
Author Message
Gediminas
Junior
Junior


Joined: 17 Jul 2012
Posts: 4

PostPosted: 19/07/2012 09:14    Post subject: Modbus TCP/IP on Beckhoff CX9000 Reply with quote

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
View user's profile Send private message
messer
Senior
Senior


Joined: 08 Mar 2012
Posts: 2059
Location: Europe

PostPosted: 19/07/2012 20:53    Post subject: Re: Modbus TCP/IP on Beckhoff CX9000 Reply with quote

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
View user's profile Send private message
Gediminas
Junior
Junior


Joined: 17 Jul 2012
Posts: 4

PostPosted: 23/07/2012 10:24    Post subject: Reply with quote

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
View user's profile Send private message
Gediminas
Junior
Junior


Joined: 17 Jul 2012
Posts: 4

PostPosted: 26/07/2012 11:55    Post subject: Reply with quote

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
View user's profile Send private message
Gediminas
Junior
Junior


Joined: 17 Jul 2012
Posts: 4

PostPosted: 26/07/2012 14:47    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> Other PLCs Reg. U All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro