question about socket messages

lunknowl

Member
Join Date
Oct 2012
Location
vietnam
Posts
37
hi, i try using sample socket messages to send and receive data from another controllogix. in the sample program it have couple msg block that create socket, openconnect, read, delete socket. after i connect and disconnect i need to delete socket to open another connect. is there a bit, or any feedback from openconnect of socket showing that no device connect so i can delete socket? thanks
 
send and receive data from another controllogix

I presume you are testing your logic, rather than using raw sockets to communicate between ControlLogix instead of MSG instructions or Produced/Consumed Tags.

is there a bit, or any feedback from openconnect of socket showing that no device connect so i can delete socket?

Yes. When you use the OpenConnection service, it can fail because the target device is not listening on that port and returns a connection refusal, or because the target device never responds, resulting in a timeout.

Either one of those results in a .ER bit being set for the OpenConnection MSG instruction.

You can experiment with the exact .ERR and .EX_ERR error codes by disconnecting your target device, or targeting a device with a closed port.
 

Similar Topics

Is there a way to reset the count on the RS Logix BackUp?? XXXXX PROGRAM IN PROGRESS_BAK445.RSS XXXXX PROGRAM IN PROGRESS_BAK446.RSS XXXXX...
Replies
8
Views
237
I have a few questions about Studio5000. 1. Why is my RA folder so big? its well over 100 GB. 2. How do you delete versions or extra files...
Replies
3
Views
258
Currently we have a fat( I think that is what it is called) Intouch application. An application resolution of 3840x1080, and inside that 2x...
Replies
0
Views
78
Hi I have a yaskawa gp7 robot arm which I am going to use for machine tending with a cnc mill. Is it a good idea to buy a SICK laser scanner for...
Replies
5
Views
187
I have a question. I work in a very large plant and this one (of many hundreds of control cabinets) contains one 5580 (1756-L83E), two 1756-L73...
Replies
6
Views
189
Back
Top Bottom