If data_in = "a" then xxxx....
is a valid statement in PBP, so long as 'data_in' is a declared variable and 'xxxx....' is also a valid PBP statement.
As far as sending the numbers, just send the ASCII equivlalent of the numbers, then send it's inverted form. 'AND' the two together, should come up with $FF. Quick and dirty form of doing a data check. Or send the number more than once in a packet. I.E. '11111' is valid data for 1, '22221' isn't valid data for anything. Something like that. Or make something up yourself and call it KEDP (kenpo's error detection protocol).
Bookmarks