LoadGeoLocationFromFile (FB)

FUNCTION_BLOCK LoadGeoLocationFromFile EXTENDS CBML.ETrig

Loads an old, original API result, that contains location data, from a file.

InOut:

Scope

Name

Type

Initial

Comment

Inherited from

Input

xExecute

BOOL

Rising edge: Starts defined operation
FALSE: Resets the defined operation after ready condition was reached

ETrig

Output

xDone

BOOL

TRUE: Ready condition reached

ETrig

xBusy

BOOL

TRUE: Operation is running

ETrig

xError

BOOL

TRUE: Error condition reached

ETrig

Input

sFilePath

STRING(255)

pGeoLocation

POINTER TO GeoLocation

Provide a “GeoLocation” structure to load the loaction data into.

sLanguageCode

LANGUAGE_CODE

‘’

Optional ISO 3166 country code to extract a local city name in the specifiec language, if available.

Output

eError

ERROR

Methods:

Structure: