RIEVTECH STUDIO SOFTWARE MANUAL int error = CallMacro("Macro_1"); 6.2.2.2 Get Error Code: GetError intGetError( ): Get error code. No input parameters. Return Value: int type, the corresponding error code. 0-Not executed 1-Success 2-Timeout 3-Error 4-Socket word error 5-Communication failure Example: int error =GetError(); 6.2.2.3 Delay Function: Delay Delay(ms): Delay Function, the input parameter is the number of mili-seconds, unsigned int type. Return Value: None. Example: Delay(1000)://Delay 1000ms. 6.2.2.4 Set Com Parameters: SetComParam intSetComParam( Port Number,BaudRate,databit,stopbit,checkbit,communication mode); Port Number: the ID of com port, unsigned int type.
0-COM1, 1-COM2, 2-COM3... 586