Get and Put Help using BS2SX
Guido
Posts: 195
I seem to be as usual having problems with the GET and PUT statements using a [url=mailto:BS@SX]BS2SX[/url]. I am trying to save temperature (TEMPF) from Program Run0 and reading information on Run1.
RUN0 has TempF identified in it's program as a Word variable, so I use a simple:
PUT 0,TEMPF
In the RUN1 program I use the following:
GET 0, TEMPF
Debug DEC TEMPF
It does not work and I am wondering what I am forgetting?. Do I need to identify the Bank in the statements?
Thanks
Guido
·
RUN0 has TempF identified in it's program as a Word variable, so I use a simple:
PUT 0,TEMPF
In the RUN1 program I use the following:
GET 0, TEMPF
Debug DEC TEMPF
It does not work and I am wondering what I am forgetting?. Do I need to identify the Bank in the statements?
Thanks
Guido
·
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
DTQ
PUT 0, Word tempF
then, in slot 1:
GET 0, Word tempF
By adding the Word modifier to PUT and GET, the compiler will cause both bytes of the value to be used.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA