11/13/2015 5:26 PM | |
Joined: 1/24/2014 Last visit: 10/29/2024 Posts: 127 Rating: (6) |
HI, I often use the TCON, TSEND, TRCV, TDISCON in order to connect to a pc. Now, I want to put all this things in one FB, I think I don't need to explain why, but :
------------------------------------------------------------------------------------------ |
Last edited by: Min_Moderator at: 11/16/2015 12:00:22 PMNew subject after splitting |
|
This contribution was helpful to1 thankful Users |
11/20/2015 9:53 AM | |
Joined: 1/24/2014 Last visit: 10/29/2024 Posts: 127 Rating: (6) |
HI, Thanks for the answer, I will have time next week, so I will test with a CPU1214C. I'll be back ! Another question, I don't understand why it don't works, explain : If the data "TCON_IP_V4" cannot be stored as an instance, why don't use data "CONN_ANY" with blocks TCON, TSEND, TRCV, TDSICON directly ? CONNECT =
Sorry for the french, but you can understand that in the parameter "CONNECT" there is only - "TCON_IP_V4" or "TCON_IP_RFC" or "TCON_ISOnative" and never "CONN_ANY" regards, |
11/20/2015 12:16 PM | |
Joined: 1/24/2014 Last visit: 10/29/2024 Posts: 127 Rating: (6) |
HI, (update 20/11/2015 17:36) I just test my program with a CPU1214C and it is working with : TCON_IP_V4 which is in static variable in a FB so, no problem to have a FB "all-in-one" with differents connections ! So, for people who wants a FB to connect to a PC, and exchange some sockets in TCP/IP can find it here. Some explanations : To use with real project, after a receive, take the message just received and reset the bit RCV-OK Regards, Last thing : I know lots of people don't share projects, and I disagree. AttachmentTCPIP V1.2.rar (850 Downloads) |
Last edited by: sixthomas at: 11/20/2015 12:20:58 PMLast edited by: sixthomas at: 11/20/2015 5:41:07 PM |
|
This contribution was helpful to3 thankful Users |
Follow us on