This function is used to customize the text of certain Fleet Management user interface elements.
Input:
ID : INT
The ID of the user interface element.
0
|
- The "Dispatch" menu.
|
100-105
|
- The text fields above the map. Only available on NMP v3.10 and above, see the NMP User Guide for more details.
|
text : STRING
The new text of the menu element. Max. 49 characters.
Returns: INT
0
|
- Success.
|
-1
|
- Navigation interface is not open.
|
-2
|
- Error communicating with navigation device.
|
-4
|
- The navigation device rejected the command.
|
-12
|
- Navigation interface is busy.
|
Declaration:
FUNCTION navSetUIText : INT;
VAR_INPUT
ID : INT;
text : STRING;
END_VAR;
Example:
INCLUDE rtcu.inc
PROGRAM NavigationExample;
BEGIN
...
IF navPresent() THEN
navSetUIText(id := 0, text := "Logic IO");
...
END_IF;
...
END;
END_PROGRAM;
|