Output (HTTP / CMD / TCP / S7 PLC)
Output can be used to trigger an action once an image from the camera has been processed.
The action can be triggered for each processed image or only for those evaluated as good or only for bad ones.
HTTP Request
You can send either GET (used to request data) or POST (used to send data) requests to a given API endpoint (e.g. an URL of a server). You can also specify the time, by which the response must be received or the request will be timed out.
CMD
CMD lets you use the command line, for example, to run some script. Path to the working directory can be specified, which gives you the option to use relative paths in the command line.
Context from the application can be sent to the standard input, so it can be used for further processing.
TCP
Transmission Control Protocol (TCP) output option allows you to establish a connection, where you can write a specific message you want to send or put context from the application into the message by ticking the ‘Context to message’ checkbox. Then specify the destination IP address and port to which the message is supposed to be sent. It is also possible to specify the timeout, by which the data transmission must be finished.
Make sure to send something back, PEKAT VISION awaits a response message to make sure the transmission was successful. It can be anything, such as “DONE”.
Siemens S7 PLC
Another option is to establish a connection specifically for Siemens S7 PLC.
In the message field, you can choose where the value should be set - you can choose between areas I, Q, M, and specific byte and bit. Logical 0 or Logical 1 values can be written to that particular bit.
Example of setting area M, byte 1, bit 3:
Then specify the destination IP address and port to which the message is supposed to be sent.