RS-232 programming

The RS-232 instructions are shown in RS-232 serial instructions.

RS-232 serial instructions

Instruction Function
SerialFlush() Clears the buffer.
Scan() Establish a scan rate.
SerialOut() Send command to sensor.
SerialIn() Set up the COM port to receive the incoming serial data. Note that in the beginning of the CRBasic program, the variable used in SerialIn() instruction needs to be declared as an ASCII string format.
SplitStr() Split out digital count value from the input string.