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
xExecuteBOOLRising edge: Starts defined operationFALSE: Resets the defined operation after ready condition was reachedETrig
Output
xDoneBOOLTRUE: Ready condition reachedETrig
xBusyBOOLTRUE: Operation is runningETrig
xErrorBOOLTRUE: Error condition reachedETrig
Input
sFilePathSTRING(255)pGeoLocationPOINTER TO GeoLocation
Provide a “GeoLocation” structure, that will be integrated into the weather data structure(-s).
pCurrentDataPOINTER TO CurrentWeatherData
0
Provide a “CurrentWeatherData” structure, if you want to retrieve the according data from the file.
pForecastBatchPOINTER TO ForecastWeatherBatch
0
Provide a “ForecastWeatherBatch” structure, if you want to retrieve the according data fro this file.
Output
eError
Methods:
Structure: