Folks - I have got myself into a loop.
In a previous thread a question was asked regarding Serrxd and Hippy posted a reply which included the following comment:
'SERRXD #variable
Will take a series of "0" to "9" bytes which are converted into a number which is stored in the variable when a terminating non-digit byte is received. So if "6" and "5" then "X" were sent, the variable would hold the value 65.'
My question is:
When including the # in the Serrxd command the digits entered are not displayed - as they are when using just Serrxd.
I need to enter a digit like 123 (one hundred and twenty three) and enter it into a variable but I need to see the individual digits as they are being entered.
I can do this if I omit the # but I only get a single digit per entry.
eg.
Serrxd [10000,timeout], b0
Serrxd [10000,timeout], b1
Serrxd [10000,timeout], b2
This gives me b0 = 1, b1 = 2, b2 = 3.
What I actually need is for b0 to hold 123.
Any help is appreciated as always.
In a previous thread a question was asked regarding Serrxd and Hippy posted a reply which included the following comment:
'SERRXD #variable
Will take a series of "0" to "9" bytes which are converted into a number which is stored in the variable when a terminating non-digit byte is received. So if "6" and "5" then "X" were sent, the variable would hold the value 65.'
My question is:
When including the # in the Serrxd command the digits entered are not displayed - as they are when using just Serrxd.
I need to enter a digit like 123 (one hundred and twenty three) and enter it into a variable but I need to see the individual digits as they are being entered.
I can do this if I omit the # but I only get a single digit per entry.
eg.
Serrxd [10000,timeout], b0
Serrxd [10000,timeout], b1
Serrxd [10000,timeout], b2
This gives me b0 = 1, b1 = 2, b2 = 3.
What I actually need is for b0 to hold 123.
Any help is appreciated as always.
Last edited: