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 

S7-200<->S7-1200 Profibus or Modbus

 
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> SIMATIC Automation Systems -Reg.U
View previous topic :: View next topic  
Author Message
kaktus28
Junior
Junior


Joined: 15 Jul 2012
Posts: 17

PostPosted: 12/08/2012 14:37    Post subject: S7-200<->S7-1200 Profibus or Modbus Reply with quote

I tried to connect EM277 with s7-1200 by Profibus.
I have gsd file to Step7 v11 sp2, I created project , I have in Step7 profibus network between S7-1200 and em277.
I created program , I can come to online , all my blocks are green.
But in network section on EM277 I see exclamation mark with message:
"No diagnostics data available because the current online configuration data differs from the ofline configuration data".
Profibus adress em277 is correct and speed. I set 8 word in and 8 word out.
I set input adress IW70.....85 and output adress QW70....85.
I want to get data from VW9064,66,68,70,72 to IW70,72,74,76,78 so I set V offset 9048. In watchtable I see only 0.
What's wrong??
Back to top
View user's profile Send private message
kaktus28
Junior
Junior


Joined: 15 Jul 2012
Posts: 17

PostPosted: 12/08/2012 18:29    Post subject: Reply with quote

1.cpu1214dcdcdc
2. I use CM 1243-5
3. s7-1200 is master
[url=http://www.girlshare.ro/4385917.8]xxx.rar[/url]
Back to top
View user's profile Send private message
rott
Senior
Senior


Joined: 23 Aug 2011
Posts: 2266

PostPosted: 13/08/2012 18:28    Post subject: Reply with quote

kaktus28 wrote:
1.cpu1214dcdcdc
2. I use CM 1243-5
3. s7-1200 is master
[url=http://www.girlshare.ro/4385917.8]xxx.rar[/url]


kaktus28,
There are some errors you've made in this program..

A)- First of all the rules for communication on PROFIBUS are very clear:
1. If you are using S7-1200-PROFIBUS CM 1243-5 board then you must use the DPRD_DAT and DPWR_DAT instructions for reading consistent data with a length of > 4 bytes from a slave or transfer consistent data to a slave.
2.The CM1243-5 can communicate with remote partners via PROFIBUS using S7 Communication so you have to use:
PUT: Instruction for writing data to a remote CPU or a remote PC
GET: Instruction for reading data from a remote CPU or a remote PC.

Remote communications partners can be S7-CPUs, PCs, PGs, TDs/OPs or SCADA systems, such as WinCC.
Once all are clear till here you cannot use FBs for MODBUS Communication on a PROFIBUS card.

S7-200<->S7-1200 Profibus or Modbus

B)- Possible DP slaves for the DP master CM 1243-5
With the DP master module CM 1243-5, the S7-1200 can communicate with the following DP-V0/V1 slaves:
Distributed I/O SIMATIC ET200
S7-1200 CPUs with CM 1242-5
S7-200 CPUs with PROFIBUS DP module EM 277
SINAMICS converter
Drives and actuators from various vendors
Sensors of various vendors
S7-300/400 CPU with PROFIBUS interface
S7-300/400 with PROFIBUS CP (for example CP 342-5)
SIMATIC PC stations with PROFIBUS CP

C)- However, if you want to use MODBUS Communication you need one of the following Point to Point (PtP) cards:
1. CM 1241 RS485
2. CM 1241 RS232
The S7-1200 CPU is limited to three communication modules.
S7-200<->S7-1200 Profibus or Modbus

D)- If you decide to use PtP for MODBUS then you have to proceed as in help files:
S7-200<->S7-1200 Profibus or Modbus
S7-200<->S7-1200 Profibus or Modbus
S7-200<->S7-1200 Profibus or Modbus
S7-200<->S7-1200 Profibus or Modbus
S7-200<->S7-1200 Profibus or Modbus

E)- As a general rule I strongly advice you to use the processor timing byte MBx.
With the help of the memories from this Byte you can build any timing you need for your program.
S7-200<->S7-1200 Profibus or Modbus

Hope these information are useful for you.
Good luck.
Back to top
View user's profile Send private message
kaktus28
Junior
Junior


Joined: 15 Jul 2012
Posts: 17

PostPosted: 14/08/2012 16:03    Post subject: Reply with quote

Thanks for useful remarks.
I have another question which is directly connected with modbus.

Suppose that I have good function modbus slave in TIA .My data is array[1,10] word.I have application in c++(Master Modbus)
1.Now, what should I send to slave when I want to get array[1],array[2],array[3],array[4],array[5] in master application??
2.When I receive frame where my data(array[1].....[5]) will be located??
Back to top
View user's profile Send private message
kaktus28
Junior
Junior


Joined: 15 Jul 2012
Posts: 17

PostPosted: 15/08/2012 10:08    Post subject: Reply with quote

S7-1200:

CPU-1214DCDCDC
CM 1241 RS485

So if slave adress is 3 and I want to get Array[1],Array[2],Array[3],Array[4],Array[5] I should send to slave

0x03 0x03 0x00 0x00 0x00 0x05 0x84 0x2B

Am I right??
Back to top
View user's profile Send private message
rott
Senior
Senior


Joined: 23 Aug 2011
Posts: 2266

PostPosted: 15/08/2012 16:31    Post subject: Reply with quote

kaktus28 wrote:
S7-1200:

CPU-1214DCDCDC
CM 1241 RS485

So if slave adress is 3 and I want to get Array[1],Array[2],Array[3],Array[4],Array[5] I should send to slave

0x03 0x03 0x00 0x00 0x00 0x05 0x84 0x2B

Am I right??

So the project is that You've put on the forum?
Back to top
View user's profile Send private message
kaktus28
Junior
Junior


Joined: 15 Jul 2012
Posts: 17

PostPosted: 15/08/2012 16:32    Post subject: Reply with quote

That's right
Back to top
View user's profile Send private message
rott
Senior
Senior


Joined: 23 Aug 2011
Posts: 2266

PostPosted: 16/08/2012 21:27    Post subject: Reply with quote

Try this example:
https://rapidshare.com/files/2871790560/Modbus_1200_200.rar
Back to top
View user's profile Send private message
rott
Senior
Senior


Joined: 23 Aug 2011
Posts: 2266

PostPosted: 18/08/2012 19:11    Post subject: S7-OpenModbus-TCP Wizzard Reply with quote

Generating the Parameters for the Modbus TCP Communication using
the Modbus TCP Wizard

The Modbus TCP Wizard is running under:
 MS Windows 7 ultimate / professional
 MS Windows XP Professional with SP2 or SP3
 MS Vista 32bit Ultimate and Business with or without SP1
 MS Windows Server 2003 SP2 Standard Edition with or without R2 as workstation

How it works:
S7-200<->S7-1200 Profibus or Modbus

Download:
Quote:
https://rapidshare.com/files/2570299193/S7-OpenModbus-TCP 2XV9450-1MB02.zip
Back to top
View user's profile Send private message
Koyotte
Junior
Junior


Joined: 05 Sep 2018
Posts: 1

PostPosted: 21/09/2018 17:39    Post subject: Reply with quote

The link zXX21_05_PtP_Com_MODSL do not work
Back to top
View user's profile Send private message
ZollTrixx
Junior
Junior


Joined: 24 Aug 2018
Posts: 2

PostPosted: 21/09/2018 17:42    Post subject: Reply with quote

zXX21_05_PtP_Com_MODSL.zip
https://support.industry.siemens.com/cs/attachments/99741686/zXX21_05_PtP_Com_MODSL.zip
Last change
Update to STEP 7 V13.
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 -> SIMATIC Automation Systems -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