LoadWeatherDataFromFile (FB)¶
FUNCTION_BLOCK LoadWeatherDataFromFile EXTENDS CBML.ETrig
Loads an old, original API result, that contains weather data, from a file.
- InOut:
- Scope - Name - Type - Initial - Comment - Inherited from - Input - xExecute- BOOLRising 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, that will be integrated into the weather data structure(-s). - pCurrentData- POINTER TO CurrentWeatherData - 0 - Provide a “CurrentWeatherData” structure, if you want to retrieve the according data from the file. - pForecastBatch- POINTER TO ForecastWeatherBatch - 0 - Provide a “ForecastWeatherBatch” structure, if you want to retrieve the according data fro this file. - Output - eError
Methods:
Structure: