4/4/2011 9:56 AM | |
Posts: 316 Rating: (37) |
Hi Frederik, If you use the "T_CONN" block you need no connection in NetPro. What for HW do you use? What will happen, when you change the input value of T_RECV Len to 100? |
4/4/2011 12:23 PM | |
Posts: 23 Rating: (1) |
That's the problem. My T_CONN gives no done, busy or error signal. The status of T_CONNis 16#0009 but i don't now what it means. In network 3 (Set_TCP_ENDPOINTx) i set this parameters: |
4/4/2011 1:02 PM | |
Posts: 316 Rating: (37) |
Just at this moment I see, you use a CP for communication? |
4/4/2011 1:28 PM | |
Posts: 23 Rating: (1) |
If i use this program (Link below) will it work then? |
4/4/2011 3:16 PM | |
Posts: 316 Rating: (37) |
You have to create a connection in NetPro.
The you can use the AG_x blocks. |
4/4/2011 3:54 PM | |
Posts: 23 Rating: (1) |
I' ve got a problem in the FC5(AG Send) block. The error is: 16#80B0 what means that the module the data record not recognize, do you now what it means? I've made in netpro a TCP configuration with a unspecified component. In the attachment you find the pictures of theconfiguration. The port in Deplhi is 3000, the IP is 192.168.200.130. The IP of the CPU is 192.168.200.124. The DB that i wan't to send and receive is 296 bytes, is that a problem?I hope you can help me. I will upload the other pictures. |
4/4/2011 3:55 PM | |
Posts: 23 Rating: (1) |
Second picture |
4/4/2011 3:56 PM | |
Posts: 23 Rating: (1) |
Third picture |
4/4/2011 3:57 PM | |
Posts: 23 Rating: (1) |
Fourth picture |
4/4/2011 4:00 PM | |
Posts: 23 Rating: (1) |
In the attachment you find my DB's that i wan't to send and receive. With DB301 i wan't to send data and with DB302 i wan't to receive data. |
4/4/2011 4:16 PM | |
Posts: 23 Rating: (1) |
In the attachment you find the FC5 and FC6 functions. The ID is 1, i think it's the same as the ID in the netpro configuration. AttachmentDoc1.zip (224 Downloads) |
4/5/2011 8:52 AM | |
Posts: 316 Rating: (37) |
Hi Frederik84, it's right, the ID is 1. Your Laddr is w#16#0100. This information you can find easily in NetPro --> block parameters
Please check the laddr parameter, I think there is the fault. |
4/5/2011 9:10 AM | |
Posts: 23 Rating: (1) |
What do you meen? The block parameter in netpro is W#16#0100 (LADDR). So in my program, this is the same parameter for FC5 and FC6. |
4/5/2011 9:51 AM | |
Posts: 23 Rating: (1) |
Do you mayby have e email adress so i can send you the program? |
5/13/2011 10:19 AM | |
Posts: 487 Rating: (36) |
Hi Frederik Maybe I can help ..if you still have the problem On PLC side we use FC5 FC6 or FC50 FC60 ,we use a UDP connection On the Delphi side we use the UDP Indy components and this works very well One problem is using UDP where you get no confirmation of succecfull send , We did a loop back to check if the data arrived. Another problem is with the indy components , they are not compatible between versions, upgrading Delphi from say D7 to D2010 or to Delphi XE will mean that you have to remove the existing indy and re-install the new components Greetings Eric EDIT1 I just noticed that you are sending more than 240 byte ... See if you can reduce this to 240 AttachmentDelphi_S7.zip (258 Downloads) |
Last edited by: aikona at: 5/13/2011 10:23 AM |
|
Follow us on