This function will delete an avoidance area from the navigation device.
Input:
id : INT
Unique ID to identify the area.
Returns: INT
0
|
- Success.
|
-1
|
- Navigation interface is not open.
|
-2
|
- Error communicating with navigation device.
|
-4
|
- The navigation device rejected the command.
|
-11
|
- Avoidance areas are not supported.
|
-12
|
- Navigation interface is busy.
|
Declaration:
FUNCTION navAvoidAreaEnable : INT;
VAR_INPUT
ID : DINT;
END_VAR;
Example:
INCLUDE rtcu.inc
PROGRAM NavigationExample;
BEGIN
...
navAvoidAreaDelete(id := 1);
...
END;
END_PROGRAM;
|