peterzomer
New Member
Hi !
Does someone know if it is possible to do simple math with the SerRxd input variables with the 18M2 ??
The adding of b1 + b2 in this example is not b3 of course because these variables are ASCII codes and not decimal numbers.
There are some functions to convert BCD to ASCII, but not from ASCII to DEC ??
Hope to hear you soon.
PeterZ
Does someone know if it is possible to do simple math with the SerRxd input variables with the 18M2 ??
The adding of b1 + b2 in this example is not b3 of course because these variables are ASCII codes and not decimal numbers.
Code:
Main:
SerTxd ("Enter 2 decimal numbers: ", 13, 10)
SerRxd b1, b2
Let b3 = b1 + b2
SerTxd (#b3, 13, 10)
goto main
Hope to hear you soon.
PeterZ