Description: Resets MAC motor to last flashed values If Wait input is true the function returns when MAC motor is ready, or timeout after 5 seconds max. If Wait input is false the function returns as soon as the Reset command has been sent to the MAC motor. It will try 3 times before returning Timeout. Author : Rune Rafn (Quickwood Automation) 8/1-2004 Supported : Target from version 0.0.0.10 and later. Parameters: Input: PORTID : ID from MAC_com_open function MOTORADDR : Address of the MAC motor (Use 255 to broadcast) WAIT : Flag for waiting for reset. See description. Output: READY : Returns true if Reset was successful or motor ready. Depend on WAIT flag. STATUS : Status for function block. See Status explanation Status explanation: 0 Done Reset. If ready true, reset done. 1 Sending message. 2 Retransmitting to motor. Following values are errors. Reset attempt aborted when error occurs. Motor is left in unknown state. -1 Timeout. -2 Unknown error. -3 Transmit error -4 Error reading response.