Technical Forum

Communication / Networks

MODBUS TCI/IP RK512

Thread Starter: alibi   Started: 5/30/2012 4:26 PM   Replies: 13

« Previous thread Next thread »
12» Page 1 of 2 (14 items)
  5/30/2012, 4:26 PM
Joined 5/17/2012
Last visit: 5/31/2012
Posts: 7
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi to everyone,
Now I am facing the problem of sending and recieving data. Do I need to create new data block for the registers or what?
I am very new to this, but somehow I managed to make a program and configure it. The problem is in sending and fetching.

And second question, if I need to connect several non-similar devices to one master, what I should do?

Please reply ASAP and thank you in advance,
alibi
Top
  5/30/2012, 4:39 PM
Joined 11/27/2007
Last visit: 5/23/2013
Posts: 844
Rating:
Rated: Outstanding [3.88 out of 5 / rated 59 time(s)]. (59) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 

Hello Alibi,
what would you really like to do? Communicate via RK512 - this is a serial point-to-point protocol, or communication via ModbusTCP - this is an ethernet protocol? Which devices are you intending to connect to which system?

Regards,
Kaulquappe




=== Edited by Kaulquappe @ 5/30/2012 4:40 PM [GMT ] ===


Top
  5/30/2012, 4:43 PM
Joined 5/17/2012
Last visit: 5/31/2012
Posts: 7
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Actually I use RK512 protocol, but my station is connected via Ethernet. I don't know how it is possible, but Is it right?
Top
  5/30/2012, 4:59 PM
Joined 11/27/2007
Last visit: 5/23/2013
Posts: 844
Rating:
Rated: Outstanding [3.88 out of 5 / rated 59 time(s)]. (59) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hello Alibi,
unfortunately I'm not a clairvoyant, just a technician. But I know for sure that you can't use RK512 via Ethernet.
So again: which system do you use, which modules, which device is connected?

Regards,
Kaulquappe
Top
  5/30/2012, 5:09 PM
Joined 5/17/2012
Last visit: 5/31/2012
Posts: 7
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hello Kaulquappe,
This is my HW Config: 
1. CPU 314C-2 DP 6ES7 314-6CF02-0ABO
2. CP 343-1 Lean
3. CP 341-RS422/485

I use MODBUS TCP protocol.
Best,
Alibi
Top
  5/30/2012, 5:17 PM
Joined 11/27/2007
Last visit: 5/23/2013
Posts: 844
Rating:
Rated: Outstanding [3.88 out of 5 / rated 59 time(s)]. (59) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hallo Alibi,
which blocks do you use for ModbusTCP communication, the library Open ModbusTCP via NCM CP or blocks which you programmed on your own?
CP343-1 is able to talk TCP/IP. When you'd like to use ModbusTCP some additional programming is necessary.

Regards,
Kaulquappe
Top
  5/30/2012, 5:32 PM
Joined 5/17/2012
Last visit: 5/31/2012
Posts: 7
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hello Kaulquappe,
I made a mistake. Not TCP, I used libraries from CP PtP. Sorry for that.
Best,
Alibi
Top
  5/30/2012, 5:55 PM
Joined 11/27/2007
Last visit: 5/23/2013
Posts: 844
Rating:
Rated: Outstanding [3.88 out of 5 / rated 59 time(s)]. (59) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
So Alibi you are using Modbus RTU. Does the CP341 act as master or slave? Which and how many devices do you want to connect? One and only one connected device is the master and the first and most important thing is to know which one acts as master.

Regards,
Kaulquappe
Top
  5/30/2012, 9:01 PM
Joined 5/17/2012
Last visit: 5/31/2012
Posts: 7
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Ok. CP 341 acts like a master. I want to connect several non similar multimeters, powermeters and fetch this data on HMI.
Thank you for your help and patience,
Alibi
Top
  5/30/2012, 10:57 PM
Joined 9/27/2006
Last visit: 5/23/2013
Posts: 3944
Rating:
Rated: Excellent [4.15 out of 5 / rated 619 time(s)]. (619) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 

Hello alibi;
You need to answer these questions before we can help you further:
These “several non similar multimeters, powermeters” , are they already Modbus RTU slaves, or can you add a comm. module to them to make them Modbus RTU slaves?
Note that it would be a lot easier if you gave us the make and model of these as yet unnamed equipment.
Second, do they all support RS-485 as a physical layer? Notice that you need a CP 341 woith RS-485 interface to control a multislave Modbus netwrok:
6ES7341-1CH02-0AE0
Third, do they all support the same comm. parameters (data speed, number of bits, number of start bits, number of stop bits). This is important, since one master can only exchange with slaves that commit to the same bus parameters.
Hope this helps,
Daniel Chartier

Top
12» Page 1 of 2 (14 items)
Actions