Hi Guys,
Question:
I'm using an Omron CJ2M to recieve a 40 character tekst string from a Keyence CV-X 420 vision camera.
The keyence uses two words for one ASCII character which I can not change.
So the first character is stored in D24, the second in D26, third in D28 etc.
When I send the character '1' to D24, which is set to STRING, it is stored in the lowest 8 bits, so the HEX value is 0031.
For some reason it is not regonised as an ASCII character. When I shift 8 bits to the left making the HEX value 3100, it's regonised as a '1'.
I'm pretty lost here, offcourse I can move the lowest 8 bits to the highest 8 bits and loop it for all adresses but I have a feeling I'm missing something here.
Any ideas? Thanks in advance!
Question:
I'm using an Omron CJ2M to recieve a 40 character tekst string from a Keyence CV-X 420 vision camera.
The keyence uses two words for one ASCII character which I can not change.
So the first character is stored in D24, the second in D26, third in D28 etc.
When I send the character '1' to D24, which is set to STRING, it is stored in the lowest 8 bits, so the HEX value is 0031.
For some reason it is not regonised as an ASCII character. When I shift 8 bits to the left making the HEX value 3100, it's regonised as a '1'.
I'm pretty lost here, offcourse I can move the lowest 8 bits to the highest 8 bits and loop it for all adresses but I have a feeling I'm missing something here.
Any ideas? Thanks in advance!