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

Joined: 15 Jul 2012 Posts: 17
|
Posted: 12/08/2012 14:37 Post subject: S7-200<->S7-1200 Profibus or Modbus |
|
|
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 |
|
 |
kaktus28 Junior

Joined: 15 Jul 2012 Posts: 17
|
Posted: 12/08/2012 18:29 Post subject: |
|
|
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 |
|
 |
rott Senior

Joined: 23 Aug 2011 Posts: 2266
|
Posted: 13/08/2012 18:28 Post subject: |
|
|
| 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.
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.
D)- If you decide to use PtP for MODBUS then you have to proceed as in help files:
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.
Hope these information are useful for you.
Good luck. |
|
| Back to top |
|
 |
kaktus28 Junior

Joined: 15 Jul 2012 Posts: 17
|
Posted: 14/08/2012 16:03 Post subject: |
|
|
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 |
|
 |
kaktus28 Junior

Joined: 15 Jul 2012 Posts: 17
|
Posted: 15/08/2012 10:08 Post subject: |
|
|
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 |
|
 |
rott Senior

Joined: 23 Aug 2011 Posts: 2266
|
Posted: 15/08/2012 16:31 Post subject: |
|
|
| 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 |
|
 |
kaktus28 Junior

Joined: 15 Jul 2012 Posts: 17
|
Posted: 15/08/2012 16:32 Post subject: |
|
|
| That's right |
|
| Back to top |
|
 |
rott Senior

Joined: 23 Aug 2011 Posts: 2266
|
Posted: 16/08/2012 21:27 Post subject: |
|
|
Try this example:
https://rapidshare.com/files/2871790560/Modbus_1200_200.rar |
|
| Back to top |
|
 |
rott Senior

Joined: 23 Aug 2011 Posts: 2266
|
Posted: 18/08/2012 19:11 Post subject: S7-OpenModbus-TCP Wizzard |
|
|
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:
Download:
| Quote: | | https://rapidshare.com/files/2570299193/S7-OpenModbus-TCP 2XV9450-1MB02.zip |
|
|
| Back to top |
|
 |
Koyotte Junior

Joined: 05 Sep 2018 Posts: 1
|
Posted: 21/09/2018 17:39 Post subject: |
|
|
| The link zXX21_05_PtP_Com_MODSL do not work |
|
| Back to top |
|
 |
ZollTrixx Junior

Joined: 24 Aug 2018 Posts: 2
|
Posted: 21/09/2018 17:42 Post subject: |
|
|
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 |
|
 |
|