yeah i totally misunderstood the poster. hold on, i will try again.
toggle quoted message
Show quoted text
--- In Crestron@..., "Witmarquzot" <tdurrant420@...> wrote:
check file section.
It could be that I misunderstood the poster.
If not then the equ 1 would go to sio "!PRS01\r" etc etc
If we use a div mod, 2 ascale w/o zero pass, and a sos, we get the value to come out as two analog values that can be input to an analog to serial. I am also guessing that the "!PRS" and "\r" are static.
--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:
Still can't sleep, and a little confused by your answer, would you mind posting an example? Wouldn't you need a way to determine the right offset since the difference between ASCII digits and letters are different?
--- In Crestron@..., "l_codd" <lindsayc@> wrote:
Hi Andy,
You need to use the Div/Mod symbol to obtain Tens and Units, then a pair of ASUM's to add ASCII offset using an INIT. You will then have two analogs to feed into an ATOS to generate the strings. Trigger the ATOS using a SOS on the ASCII Units analog.
Lindsay
--- In Crestron@..., Andy Maxey <amaxey@> wrote:
I have an analog value that varies from 1 to 40 that I need to insert
into a serial string as hex. My first thought was to use an ascalel to
convert the analog to hex then I build my string with an atos. What I
need is !1PRS01\x0D, but what I'm getting is !PRS\x01\x0D. Is there a
way to do what I want without S+?
Andy