8/11/2018 11:18 AM | |
Joined: 1/2/2017 Last visit: 7/23/2024 Posts: 285 Rating:
|
Dear Vahid first of all, do you have communication module connected to the S7-400? do you have your pm1200 connected as modbus slave (pins 7 and 14)? if yes then look at this manual and tell us which data you want to read and there addresses. then someone of course will be able to help you your question is general and you have to write more details about the device and the data you want them from it regards T_Ebrahem |
Disclaimer: While I strive to ensure that the content of posts and answers is accurate and complete, my posts and answers are provided “as is” and “as available.” Your use of my posts and answers content is entirely at your own risk. |
|
8/11/2018 4:02 PM | |
Joined: 9/27/2006 Last visit: 9/4/2024 Posts: 12282 Rating:
|
Hello Vahid-T; Your question requires a bit of thought on our part, and a lot of study on your part. The CP 341 you have in your project is a serial RS-422/RS-485 communication processor, which is fine for your project, as it can communicate with both PMs on a single network. To talk to the PMs, you will need to implement the Modbus RTU protocol with a special "downloadable driver", accompanied by the hardware dongle that you must insert in the CP 341. The part number you show only contains the dongle, and a Slave dongle at that: S7 driver f. CP 341, MODBUS SLAVE,w/o SW SIMATIC S7, MODBUS Slave V3.1 single license for 1 installation R-SW, without SW and without documentation, HW dongle, Class A, 3 languages (de, de, fr, en fr), executable in STEP 7 V4.02 or higher, reference hardware: CP 341 and CP 441-2. Normally the part number suggested for your application (the CP 341 is the master on the Modbus network) would be this one: 6ES7870-1AA01-0YA0 S7 driver f. CP341, MODBUS MASTER, EL SIMATIC S7, MODBUS Master V3.1 single license for 1 installation R-SW,SW and DOCU on CD,HW dongle, Class A, 3 languages (de, de, fr, en fr), executable in STEP 7 V4.02 or higher, reference hardware: CP 341 and CP 441-2 There may be a way around this problem, as I believe the dongle can be interchanged between master and slave settings, and only enables the Modbus functions on the CP 341. You could download the CP 314 PtP parameter software and the Modbus master driver directly from Siemens and attempt to make them work together with the dongle you have ordered:. - Simatic S7-300 CP 341 Point-to-Point communication, Installation and Parameter Assignment: https://support.industry.siemens.com/cs/ww/en/view/1117397 - Loadable driver "Modbus Master RTU": https://support.industry.siemens.com/cs/ww/en/view/27774018 Once you have the hardware (and software driver) ready, you need to work on the Modbus master setup and programming on your CP 341. First, you must be familiar with Modbus concepts, as it was developped for Modicon PLCs a long time ago, and still requres use of Modicon addressing and functions. Our friend smiffy has prepared a document that has helped many here on the forum integrate these concepts: - Modbus General Description: https://support.industry.siemens.com/cs/ww/en/view/1220184 Next, here is the manual explaining the Modbus master driver and the functions required to connect to the Modbus slaves and request data from them, along with an Application Note from Siemens Support showing an example for such a network: - Modbus RTU loadable driver for CP 341: https://support.industry.siemens.com/cs/ww/en/view/1220184 - Master-Slave communication with Modbus RTU for S7-300 and ET 200S systems: https://support.industry.siemens.com/cs/ww/en/view/109474714 Finally, in order to locate the addresses of the registers you are trying to read on your PMs, here are the operating manuals for each: - PM 500 register mapping and Modbus settings: - PM 1200 register mapping and Modbus settings: Hope this helps, Daniel Chartier |
8/11/2018 4:30 PM | |
Joined: 1/2/2017 Last visit: 7/23/2024 Posts: 285 Rating:
|
Hello Daniel explanation should be enough to understand how to configure your project. here also you will find a project from uel123 same as your case, you just need to change it to your needs, for example the LADDR and the start address for your data and the length. as I can see from your slave manual, the start address is 3001 decimal. so take a look and try and if you cannot go further then please explain your issue. regards T_Ebrahem |
Disclaimer: While I strive to ensure that the content of posts and answers is accurate and complete, my posts and answers are provided “as is” and “as available.” Your use of my posts and answers content is entirely at your own risk. |
|
8/12/2018 8:33 AM | |
Joined: 11/22/2014 Last visit: 4/14/2024 Posts: 54 Rating:
|
Dear sir Daniel Chartier, really appreciate it for your complete answer.But I have some more questions about your explanation: according to your comment, you mentioned that i have chose wrong Order?As i wrote we have S7-400H(CPU 414-5H),But our Remote IO contains ET200M and all Modules Are S7-300(Like IO). any way i chose wrong Order?Because i just wanna read data from PM1200 ,according to that i chose: 6ES7341-1CH02-0BA0 6ES7870-1AB01-0YA1 also my software is Step-7 Professional 2010,Know what should i do with this?Should i change My License(6ES7870-1AB01-0YA1) with Master?Should i pay money or that is free for Download?Which version should i download because your link contains 7 version up to S7-5.6. Best regards AttachmentConfig.pdf (276 Downloads) |
Follow us on