replace a variable and DAT sections
Tumbler
Posts: 323
Hello
I want to replace a byte, word or long value into a dat section.
example:
is there a way to do this in a simple way?
I want to replace a byte, word or long value into a dat section.
example:
DAT temp_in byte "Inside temp : ---",0 temp_out byte "Outside temp: ---",0 VAR byte in byte out PUB Main in := 22 out := 16 ' replace --- in temp_in with variable in ' and --- in temp_out with variable out
is there a way to do this in a simple way?
Comments
You may want to take a look at JonnyMac's "jm-strings" object. There are a lot of very handy string and conversion routines in there. Binary number to ascii numeric string like you need here is only one of them.
Thanks all
Have testing Ariba, JonnyMac's (without a h) code: works perfect.
Thx Tracy for the link for the Peter's format object. (have to test this one)
cluso: the fullduplexserial object only accepts 16 bytes for the buffer. I need more (Gsm/cellphone modem needs 264 bytes)
At the moment i use the FullDuplexSerial4port object. But not testing for receive sms messages.
You would need a few more mods to make it larger.
i tried some objects, but all not working like i want. (incomplete or missing parts in data)