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
BOOL
Rising edge: Starts defined operationFALSE
: Resets the defined operation after ready condition was reachedETrig
Output
xDone
BOOL
TRUE
: Ready condition reachedETrig
xBusy
BOOL
TRUE
: Operation is runningETrig
xError
BOOL
TRUE
: Error condition reachedETrig
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: