S7 Ethernet message to Cognex 5100

smcmanus

Member
Join Date
Jan 2006
Location
Vancouver
Posts
109
Hi. I need to do a network trigger for a Cognex Camera from a S7 (CPU317) processor. This has to be done through Ethernet. I am having problems finding help. I am able to do it with Control Logix 5000 quit easily. There must me something for Siemens. Appreciate your response!
 
If iam not completly mistaken i think that its easier with Controllogix because cognex suports there Ethernet/IP protocol. Siemens does not suport this protocol so you have to use a regular tcp/ip connection

There is a diffrence in how you set up connections depending on if you have a Cp343 ethernetcard or if you are using a Profinetcpu with a built in interface. If you are using a cp card then you need to set up a TCP connection using netpro and use AG_Send to send the commands to the camera.
 
Last edited:
I am using a CP343-1 Ethernet card. Unfortunately I am new to Siemens and this application must me done in Siemens. I been trying to look for an example on the internet but cannot find anything. I will try setting up the TCP connection using netpro. Thanks
 
Are you sure you want the network trigger? It is not awfully fast, the overall response time may depend on network traffic. Cognex 5000 series camera has one discrete input and two discrete outputs; that can be expanded, if needed, by purchasing a $500 I/O expansion module.

IMHO, camera trigger and done signals better be real I/O. Reading/writing the inspection data is a different matter: as it was mentioned above, Cognex would respond to standard Modbus commands (function codes H03 and H10), up to 120 cells at a time. The beauty of it - no programming on Cognex side is required (if you need to write data into a cell, you need to put an Integer Edit function in it). The downside is - you cannot change the default Modbus port 502. Also, you should have at least 100 ms time available for data exchange.

I am sure Siemens must have a standard Modbus TCP library.
 

Similar Topics

Hello Everyone, Does anyone have any suggestions or experince with a message board that could read a tag from a PLC, or have a PLC send a...
Replies
3
Views
679
We are going to pull 5-10 INT parameters out of 6 soft starts via explicit messaging in logix 5000. It's the only way we can read these over...
Replies
7
Views
2,469
I am looking at an old program and doing a retrofit on a sorter. Looking at the ethernet interface, see attached pic, I see a path that is =...
Replies
4
Views
1,478
Hello Everyone, I am looking for some help on setting up a routing table on a DHRIO Module or perhaps the message configuration is wrong. I am...
Replies
9
Views
3,002
Hello, I'm looking for some insight on data usage for Allen bradley IP messages. I have a setup of 4 total Micrologix 1400s. One is the master...
Replies
15
Views
8,107
Back
Top Bottom