EWEB Open Socket Interfacing

LOCITeam

Member
Join Date
Feb 2014
Location
Michigan
Posts
13
Hello!

I am new to PLC programming and am required to interface a Symeo radar with a CompactGuardlogix L45s PLC. The Symeo radar uses tcp/ip fixed frame protocol at 25 bytes. Now to communicate with the radar I have aselected the 1768-EWEB module I am just unsure how to actually use it. I have read the manuals and set-up my ladder logic like the screenshot below but I still cannot receive data much less return an instance number from the create socket.

Can anyone off suggestions for me?

Thank-You!

Main.jpg
 
Once you create and open the socket, then you will need to use the WriteSocket and ReadSocket msgs instructions to read and write data. From the rockwell knowledge base, the ENET-AT002A document describes this. Make sure you pass the Instance value from the create socket instruction to the read/write and whatever else. The Socket setup and messages instructions used will depend on if the PLC is setup to be a TCP cliet or TCP server. Good Luck!
 
Hello, as you can see in the screenshot I already set up the create, open and read. It is not working for me however. Does the main program look like it should work? Am I moving the instance correctly?
 
Ok, I do get an error code but i believe it is because it times out or does not open the connection. The error code is 16#0290. I am unable to view the example because I do not have a techconnect contract.

Also here is my configuration screens.

Create Sock Com.jpg Create Sock Config.JPG Controller Tags.jpg
 
For sockets path will be pointing to your EWEB module
It should not have 2,IP

Also "Create" message source tag should not have any IP addresses.

There are multiple Sockets examples in the knowledgebase explaining how to use them with simple examples
Start with TN 32962
 
Last edited:
Sorry I am not able to access the examples in the Knowledgebase, I don;t have a Techconnect contract. As for the 2, IP as soon as I erase the create_sock throws an error imediately...
 
Here are some screenshots of my errors, in the tags and in the "create" message block. I am trying to communicate with a radar sensor with IP 192.168.1.99 port 3046. The radar is "listening" for a connection as I was told from the manufacturer.

Thank-you

Communication Error.jpg New Tags.jpg
 
Source tag port should be 0
Message path is wrong, it shoud point to EWEB module in Slot 1 or 2
 
Last edited:
The error you are seeing in the create msg 16#0005 is as follows:
The socket instance does not exist. This error can occur in these scenarios:
• The socket instance number returned by the Socket Create service does not match the
instance number in the socket read or write message.
• The socket instance closed due to inactivity.​
• The socket was deleted by the DeleteSocket service.
 
You will also get error 16#0005 if you send message to a device that does not have socket object, like 1768-ENBT
I suspect that Slot1 is actually ENBT and EWEB is in slot 2
That is why you need to look in Rslinx that will telly you actual module location
 
Ok, you were right. I had the my EWEB and ENBT module reversed in RSLogix. Rookie mistake but this is my first time ever using a PLC/Ladder Logic :p.

So I made it past the create socket and now the open socket is giving me an error. I believe it is to do with my open socket input parameters so I have posted yet another screenshot.

Open_Socket_Param.jpg Open_Sock error.jpg
 

Similar Topics

Here is a private message I got: I thought this might be interesting for everyone: With EWEB firmware ver 3.x (currently 3.6) Rockwell...
Replies
17
Views
23,615
Does anyone have downloads of the TN 42799 and TN 49389 technotes? They are no longer available on Tech Connect.
Replies
3
Views
1,637
hi, i try to use eweb tcp serve program to transfer data but it time out. so i just want to know is there limit or fix for that. the sample not...
Replies
0
Views
1,071
I have updated the firmware of the EWEB module first to 5.001 then to 4.016. I have updated the firmware of the 1756-L73 to v28. The device is...
Replies
1
Views
1,528
Hello, There used to be a toolkit available through Allen-Bradley for the 1756 EWEB card to assist the development of webpages. Allen-Bradley...
Replies
1
Views
1,521
Back
Top Bottom