11/7/2012 6:39 PM | |
Joined: 9/27/2006 Last visit: 7/14/2024 Posts: 12268 Rating: (2675) |
Hell Serro; The following links points to 2 FAQs on the CP 342-5, and both show the requirement for FC1 and FC2 in your program: PROFIBUS S7-300/400 CPs -- Setting up and parameterizing hardware -- Setting up modules for distributed operation Data transfer between the CPU and the CP takes place via special block calls (FC1 "DP_SEND" and FC2 "DP_RECV"). The user is free to select the source or target areas of the data being received or sent. You can use a data block, the bit memory address area or the I/O area for this. Look especially at the second FAQ, option 1, point 6.You will find a sample project and documentation for a CP 342-5 as a DP slave in the following link: http://support.automation.siemens.com/WW/view/en/6519580 |
12/3/2012 11:12 AM | |
Posts: 10 Rating: (1) |
Solution for 313C + 342-5 and 314C-2DP Profibus communication First of all, you have to add 314C-2DP cpu and add the profibus line to the hardware. 88698561.jpg(in attachment) Than add the 342-5 to your profibus line, assign input and output 71380352.jpg(in attachment) Save and compile. and download to plc Second thing is creating new 313C + 342-5 Add to PLC and 342-5 card your hardware. Connect to same profibus node. 14014875.jpg(in attachment) Adjust the address which you want to get and send. 97568395.jpg(in attachment) Add DB for send and recieve, their legth must be at least 16 bytes. 68153598.jpg(in attachment) Add FC1 and FC2 for send and recive data 35276457.jpg(in attachment) c8 means 200 (For decimal) You can read them from 314C with PIW command Attachmentforumattachment.zip (59 Downloads) |
Last edited by: O_Moderator at: 12/3/2012 12:23 PMpictures transferred to attachment |
|
Follow us on