navETAReceive (Functionblock) |
Top Previous Next |
This function block returns information about the Estimated Time of Arrival. Note that the ETA is only valid after an "ETA" event is raised; the event will be removed when this function block is called. An "ETA" event is raised: when the navigation device calculates a route to the active destination, at regular intervals (when enabled with navETAAutoSet), or when requested with navETARequest.
Input: None.
Output: time : DINT The estimated time of arrival for destination.
distance : DINT The distance in meters from the current position to the active destination. -1 if no destination is active.
latitude : DINT The latitude of the active destination.
longitude : DINT The longitude of the active destination.
ID : INT The unique ID of the active destination. -1 if stop is not set with navStopSet.
ready : BOOL
Declaration: FUNCTION_BLOCK navETAReceive;
Example: INCLUDE rtcu.inc |