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.