Industry Online Support
Technical Forum
3/2/2010 6:43 PM | |
Posts: 13 Rating: (0) |
Hi, firstly, my issue is similar to /tf/WW/en/Posts/34291 I have read that post but am still having issues. CPU: 319-3 PN/DP CP: 343-1 (6GK7 343-1EX30-0XE0) I have my CP343-1 (IP:10.100.190.70) connected toa switch (10.100.190.1) which then connects to a VLAN with the PC that I want to send data on that VLAN. The PC has IP address: 192.168.100.182 with a gateway of 192.168.1.1. Now what I want to do is send a block of 230 bytes of data, DB610, to the CP343-1 so it is available to be seen by the PC. The PC side is being looked after by IT so they will poll the CP343-1 to get the data. The link is set up correctly. IT say they can ping the CP343-1 etc. I have set up my connection (TCP) with my CP343-1 on one subnet (LAN1) and the PC as "Other station" on another subnet (LAN2) cp343-1: IP: 10.100.190.70 Subnet mask: 255.255.255.0 Use router: 10.100.190.1 Other station: IP: 192.168.100.182 Subnet mask: 255.255.0.0 Use router: 192.168.1.1 I have in my FC610 code a AG_SEND block with the follwing parameters: ACT:=M 10.7 (2 sec pos pulse) ID:=1 LADDR:=W#16#0110 (272 in dec) SEND := P#db610.dbx0.0 byte 230 LEN:=230 DONE:="DB610_InfoplusComms".AG_SEND_DONE ERROR:="DB610_InfoplusComms".AG_SEND_ERROR STATUS:="DB610_InfoplusComms".AG_SEND_STATUS This results in an error status 8183H "No configuration or the ISO/TCP service has not yet started on the Ethernet CP." When I go to Special Diagnostics of the CP343-1, under the connection tab for my connection "TCP Connection_1" it has "Connection Status: Closed" Firstly, what exactly doese this error mean? Is there a mistake in my connection? Secondly, because this is not 2-way comms between, say, two CPU's am I correct in the assumtion that I don't need a AG_RCV block in my code also? Also, can someone shed some light on what exactly the AG_SEND block does? Does it send the DB610 from the CPU to the CP343-1? And if so, is it then available to be seen from the PC? If so, it is still called DB610 etc? I hope I have made myself clear. If you need any more info please ask. Thanks in advance. |
Last edited by: cpender at: 3/4/2010 10:26 AM |
|
Follow us on