I've been using the Picaxe for simple digital and analog I/O, but I'm trying something new.
In my project I get a serial input that reads like:
000.0 00.0 119.9 60.0 0000 0000 000 206 13.37 000 100 0026 0000 001.7 00.00 00000 00010000 00 00 00000 0100 0000
Each value is separated by a space, and are consistent in their length (zeros replace no data). I only need SOME of the numbers to be manipulated.
My question is this: How do I take the data I need (say the 119.9 starting at character 12 ending at 16) and store it in W1 (yes, I can round the decimal)?
This kind of manipulation was easy with Visual Basic, but I can't figure out how to grab 'part' of a long value in the Picaxe editor. I'm sure it's something simple I'm missing.
Any help would be appreciated.
In my project I get a serial input that reads like:
000.0 00.0 119.9 60.0 0000 0000 000 206 13.37 000 100 0026 0000 001.7 00.00 00000 00010000 00 00 00000 0100 0000
Each value is separated by a space, and are consistent in their length (zeros replace no data). I only need SOME of the numbers to be manipulated.
My question is this: How do I take the data I need (say the 119.9 starting at character 12 ending at 16) and store it in W1 (yes, I can round the decimal)?
This kind of manipulation was easy with Visual Basic, but I can't figure out how to grab 'part' of a long value in the Picaxe editor. I'm sure it's something simple I'm missing.
Any help would be appreciated.