12/14/2016 7:27 PM | |
Joined: 5/22/2009 Last visit: 4/28/2022 Posts: 11 Rating:
|
Hello All, I have a CP343-1 as a profinet controller connected to 4 IM153-4 IO devices. The digital inputs are 40 bytes and the digital outputs are 4 bytes. When I use FC11 and FC12 I did the following: CALL "PNIO_SEND" CPLADDR :=W#16#100 MODE :=B#16#0 LEN :=4 IOCS :=P#DB3.DBX0.0 BYTE 1 DONE :=#tmp_send_done ERROR :=#tmp_send_error STATUS :=#tmp_send_status CHECK_IOCS:=#tmp_send_check_iocs SEND :=P#DB1.DBX0.0 BYTE 4 CALL "PNIO_RECV" CPLADDR :=W#16#100 MODE :=B#16#0 LEN :=40 IOPS :=P#DB3.DBX10.0 BYTE 5 NDR :=#tmp_recv_ndr ERROR :=#tmp_recv_error STATUS :=#tmp_recv_status CHECK_IOPS:=#tmp_recv_check_iocs ADD_INFO :=MW28 RECV :="P#DB2.DBX0.0 BYTE 40 After downloading the program to the CPU, the CP343-1 and the IM153-4 modules give BF and SF red LEDs, I checked the FC11 and FC12 but I got no errors. CHECK_IOCS and CHECK_IOPS show value 1. Is there something missing in calling the two functions? Can I use P#Q0.0 Byte 4 in the SEND and P#Q40.0 Byte 40 in the RECV? Thanks in advance. AttachmentSr_ps_co.zip (171 Downloads) |
Last edited by: BeemBoss at: 12/15/2016 3:12:34 AMLast edited by: BeemBoss at: 12/15/2016 3:13:56 AMLast edited by: BeemBoss at: 12/15/2016 3:16:59 AM |
|
12/15/2016 4:03 PM | |
Joined: 3/5/2014 Last visit: 8/5/2022 Posts: 5521 Rating:
|
hi BeemBoss, for the usage of FC11 and FC12 I recommend you to use the following FAQ: How do you program communication blocks FC11 and FC12 for the PROFINET IO controller? But because of BF and SF-LED i think there is an other Problem. Did you assign an IP and a name to your IM153? Did you have a look in online-diagnostic what the devices are complaining hope this helps, regards, |
FCK WAR! |
|
Follow us on