Wattman
Electrical
- May 2, 2001
- 24
I have a project, which utilizes an MVI46-GSC that is basically a RS232 serial communications card. (RSLogic, SLC505 Processor) I'm receiving data from a multiplexer, which communicates to up to 4 other field devices. The multiplexer in only capable of sending the information in an ASCI format. I have established communications and worked out the logic to extract from the ASCII string a value which is metric, and the logic converts this seven character text value (floating decimal example 000.001 or 0.00001 or 00000.0) to an integer then into a floating decimal point value all of which works.
The problem is within the string the value will also contain the polarity of the value "+ or -" it is always the character just before the value. I cannot determine how to identify or detect when this value changes.
If I extract the value with an AEX command then move it to an integer with a AIC command it shows up within the integer as "3356" for both a + and - value. Does anyone know how to I can determine the state of the value + or - from a ASCII string (also a : equals a value of 3320)
Any help greatly appreciated
Thanks in advance
The problem is within the string the value will also contain the polarity of the value "+ or -" it is always the character just before the value. I cannot determine how to identify or detect when this value changes.
If I extract the value with an AEX command then move it to an integer with a AIC command it shows up within the integer as "3356" for both a + and - value. Does anyone know how to I can determine the state of the value + or - from a ASCII string (also a : equals a value of 3320)
Any help greatly appreciated
Thanks in advance