One of the parts that I work on is wrote on with a laser. The laser burns on a 2D Data Matrix and some human-readable text. The barcode is then read into a CompactLogix PLC with a Cognex camera. From there the data is stored and manipulated for our customer.
The data is supposed to be Hexadecimal. Unfortunately, software for the laser was updated and settings were changed from being to write in Hexadecimal to Alpha-Numerical. This means it will serialize the parts using 0...9.a...z. Thus, no longer being Hexadecimal.
What I need to do is put in a verification program in the PLC to make sure the STRING from the camera is Hexadecimal.
Is there a simple way to check the string?
The data is supposed to be Hexadecimal. Unfortunately, software for the laser was updated and settings were changed from being to write in Hexadecimal to Alpha-Numerical. This means it will serialize the parts using 0...9.a...z. Thus, no longer being Hexadecimal.
What I need to do is put in a verification program in the PLC to make sure the STRING from the camera is Hexadecimal.
Is there a simple way to check the string?