5/7/2013 9:26 AM | |
Joined: 10/7/2005 Last visit: 2/6/2025 Posts: 3033 Rating:
|
Hello maxamb I fear you are barking up the wrong tree when trying to read PIW 256 which is theI/O address of your CP343-1. Yoru CU address is272, butsince you use a CP343-1 as the I/O Controller, you also won't be able to use this I/O address in your program, but insteadwill find your drives I/O in the DB's that you nominated for the calls of PNIO_SEND and PNIO_RECV. You'll also need to make the following changes: Either change the lenght of the DB's as well as the PNIO_SEND and PNIO_RECV LEN parameter to ensure they cover whole lenght of the configured I/O range starting from0 up to and including the addresses you declared for your drive OR change the drives I/O address to start with 0 (my preference). You'll find more info and an example project inHow do you program communication blocks FC11 and FC12 for the PROFINET IO controller? and I hope this helps |
Cheers |
|
5/8/2013 9:06 AM | |
Posts: 14 Rating:
|
Thanks a lot, now all is working fine! Last question, can I change parameters inasynchronous way with cp343-1? Thanks again Bye |
5/9/2013 3:33 PM | |
Joined: 10/7/2005 Last visit: 2/6/2025 Posts: 3033 Rating:
|
Yes you can, have a look at the S7-CPs for Industrial Ethernet Configuring and Commissioning Manual Part A − General Application manual for more (search it for SFB52 and FB52) and also at the advice by our good friend and expert J_Bellin the thread cp343-1 IT as pronet controller. |
Cheers |
|
5/9/2013 5:03 PM | |
Posts: 14 Rating:
|
Very helpful! Thanks maxamb
|
5/13/2013 4:38 AM | |
Joined: 10/7/2005 Last visit: 2/6/2025 Posts: 3033 Rating:
|
Hello maxamb even though the manual hints at being able to use SFB52 for asynchronous Data record reads via a CP343-1, Iam am inclined to say SFB52 will only work for a "native" (e.g. onboard) PN port (where it will do the job). In you case, I would try to use FB52 instead which is located in the "SIMATIC_NET_CP --> CP300" library which is designed for this task. Thereused to be an example available for FB52 at the Simatic Net quickstart collection, but this part of the Siemens web seems to be offline at the moment. Have a look at Check the link that's listed in Where can you find sample S7 programs and documentation for communication via PROFINET on the SIMATIC NET Quick Start Collection?yourself, perhaps you can get to the quickstart example collection (it will hoepfullyonly be temporarily offline). I hope this helps |
Cheers |
|
5/15/2013 9:09 AM | |
Posts: 14 Rating:
|
Thanks a lot! All is working. maxamb
|
This contribution was helpful to
1 thankful Users |
Follow us on