Sometimes I think my little ideas and projects might be interesting to someone else. Maybe even someone far away, or far in the future. [Considering how fast the Earth is moving, the future is pretty far away.]
Enjoy!
Do NOT set the Omron V430 reader "End Cycle On" to "New Trigger" if its "Trigger mode" is "Continuous". Set the "End Cycle On" to "Timeout or New Trigger".
Without the timeout option the CPU does not get a chance to accept the WebLink connection.
I was stumped on why the web page would not come up.
It goes without saying, check the IP address and subnet mask.
The default IP of the Omron Microscan V430 is 192.168.188.2 subnet mask 255.255.0.0
I could ping it. I could Telnet into it. But the webpage wouldn't connect.
Answer: Cover the lens.
WHAT? How does covering the lens fix a connection problem?
The camera was in continuous acquisition. It was spending all of its CPU time on finding and decoding a barcode. There was no time left to allow connection requests.
Covering up the lens blanks the image. The barcode search fails immediately, allowing the CPU to perform other tasks.
Hey, just want to document the way I'm using Labview to trigger a Cognex In sight camea.
Basically, the Cognex In sight is a Telnet server. The Labview program makes a TPC connection to the camera's IP address on port 21. The username admin followed by carriage return and line feed is transmitted from Labview. Then the password, which is blank, so just a carriage return and line feed are sent. That initialization of the connection is made every time. While the connection is maintained (open) any of the Native Mode commands can be sent. See in sight explorer help for a full list of Native Mode commands. The camera can be triggered by sending SE8\r\n [note: the \r\n is the escape or slash character representation of Carriage return and line feed respectively.] The camera will return a number and \r\n that encodes any error in reading or executing the command. If you get a 1\r\n everything was OK. After the inspection has completed you need to read out the result. The native mode command to get a value is GV. For example, GVc013\r\n will return the value in spreadsheet cell c013. If you are using easybuilder you need to create a format string in the "Communication" section. Get the content of the format string using the command GVJob.Robot.FormatString\r\n
The video shows how the Labview portion of the code works. There is a .VI in the form of a functional global variable that encapsulates the communication as a state machine. It handles the connection, login, command, and closing. If you want the code let me know in the comments of the video.
This link is a LabVIEW example. It is written in LabVIEW 2018