' port$ is set earlier so that I can use various comm ports
' comms can be set to 9600, 19200 or 28800 in my program
' outputs to a CSV file opened as #2
'receive data in buffer when LOC > 0
IF (ASC(bytestr
) = 13 AND (style
= 1 OR style
= 5)) THEN bytestr
= ","
ck$ = ck$ + bytestr
IF (ptime2
>= (ptime
+ 8)) THEN ck$
= "end of data"