FB_BAFWeatherStationAnalogDigitalSignals

FB_BAFWeatherStationAnalogDigitalSignals 1:

Function-block for controlling a Weather station with analog / digital signals directly out of the PLC-program.

VAR_INPUT

uiId                    : UINT;
bStartExecution         : BOOL;
bStopExecution          : BOOL;

uiId: Object id of the instance ( see object id).

bStartExecution: Starts the instance of the analog / digital weather station.

bStopExecution: Stops the instance of the analog / digital weather station.

VAR_OUTPUT

uiErrorId                                   : UINT;
iErrorParameter                             : INT;
eExecutionState                             : E_BAF_ExecutionState;
lrTemperature                               : LREAL;
lrWindSpeed                                 : LREAL;
lrBrightnessEast                            : LREAL;
lrBrightnessSouth                           : LREAL;
lrBrightnessWest                            : LREAL;
lrDaylight                                  : LREAL;
lrRain                                      : LREAL;
lrRelativeHumidity                          : LREAL;
lrDampedTemperature                         : LREAL;
eTypeOfSeason                               : E_BAF_WeatherStationTypeOfSeason;
bThresholdSwitchTemperatureValue            : BOOL;
bThresholdSwitchTemperatureRisingEdge       : BOOL;
bThresholdSwitchTemperatureFallingEdge      : BOOL;
bThresholdSwitchWindSpeed1Value             : BOOL;
bThresholdSwitchWindSpeed1RisingEdge        : BOOL;
bThresholdSwitchWindSpeed1FallingEdge       : BOOL;
bThresholdSwitchWindSpeed2Value             : BOOL;
bThresholdSwitchWindSpeed2RisingEdge        : BOOL;
bThresholdSwitchWindSpeed2FallingEdge       : BOOL;
bThresholdSwitchWindSpeed3Value             : BOOL;
bThresholdSwitchWindSpeed3RisingEdge        : BOOL;
bThresholdSwitchWindSpeed3FallingEdge       : BOOL;
bThresholdSwitchBrightnessEastValue         : BOOL;
bThresholdSwitchBrightnessEastRisingEdge    : BOOL;
bThresholdSwitchBrightnessEastFallingEdge   : BOOL;
bThresholdSwitchBrightnessSouthValue        : BOOL;
bThresholdSwitchBrightnessSouthRisingEdge   : BOOL;
bThresholdSwitchBrightnessSouthFallingEdge  : BOOL;
bThresholdSwitchBrightnessWestValue         : BOOL;
bThresholdSwitchBrightnessWestRisingEdge    : BOOL;
bThresholdSwitchBrightnessWestFallingEdge   : BOOL;
bThresholdSwitchDaylightValue               : BOOL;
bThresholdSwitchDaylightRisingEdge          : BOOL;
bThresholdSwitchDaylightFallingEdge         : BOOL;
bThresholdSwitchRainValue                   : BOOL;
bThresholdSwitchRainRisingEdge              : BOOL;
bThresholdSwitchRainFallingEdge             : BOOL;
bThresholdSwitchRelativeHumidityValue       : BOOL;
bThresholdSwitchRelativeHumidityRisingEdge  : BOOL;
bThresholdSwitchRelativeHumidityFallingEdge : BOOL;

uiErrorId: Contains the error code of the last executed command (see Error codes).

iErrorParameter: Contains the specific parameter of the error code (see Error codes).

eExecutionState: Contains the actual execution state of the instance of the analog / digital weather station.

lrTemperature: Actual outside temperature.

lrWindSpeed: Current wind speed.

lrBrightnessEast: Brightness on the east side.

lrBrightnessSouth: Brightness on the south side.

lrBrightnessWest: Brightness on the west side.

lrDaylight: Displays brightness of the day.

lrRain: Shows intensity of rainfall.

lrRelativeHumidity: Measured relative humidity.

lrDampedTemperature: Average of temperature measured during the day.

eTypeOfSeason: Displays the season depending on damped temperature.

bThresholdSwitchTemperatureValue: State of the threshold value switch for monitoring the outside temperature.

bThresholdSwitchTemperatureRisingEdge: The output is set to TRUE for one PLC cycle, if the threshold value switch for monitoring the outside temperature is activated.

bThresholdSwitchTemperatureFallingEdge: The output is set to TRUE for one PLC cycle, if the threshold value switch for monitoring the outside temperature is deactivated.

bThresholdSwitchWindSpeed1Value: State of the first threshold value switch for monitoring the wind speed.

bThresholdSwitchWindSpeed1RisingEdge: The output is set to TRUE for one PLC cycle, if the first threshold value switch for monitoring the wind speed is activated.

bThresholdSwitchWindSpeed1FallingEdge: The output is set to TRUE for one PLC cycle, if the first threshold value switch for monitoring the wind speed is deactivated.

bThresholdSwitchWindSpeed2Value: State of the second threshold value switch for monitoring the wind speed.

bThresholdSwitchWindSpeed2RisingEdge: The output is set to TRUE for one PLC cycle, if the second threshold value switch for monitoring the wind speed is activated.

bThresholdSwitchWindSpeed2FallingEdge: The output is set to TRUE for one PLC cycle, if the second threshold value switch for monitoring the wind speed is deactivated.

bThresholdSwitchWindSpeed3Value: State of the third threshold value switch for monitoring the wind speed.

bThresholdSwitchWindSpeed3RisingEdge: The output is set to TRUE for one PLC cycle, if the third threshold value switch for monitoring the wind speed is activated.

bThresholdSwitchWindSpeed3FallingEdge: The output is set to TRUE for one PLC cycle, if the third threshold value switch for monitoring the wind speed is deactivated.

bThresholdSwitchBrightnessEastValue: State of the threshold value switch for monitoring the light intensity on the east side.

bThresholdSwitchBrightnessEastRisingEdge: The output is set to TRUE for one PLC cycle, if the threshold value switch for monitoring the light intensity on the east side is activated.

bThresholdSwitchBrightnessEastFallingEdge: The output is set to TRUE for one PLC cycle, if the threshold value switch for monitoring the light intensity on the east side is deactivated.

bThresholdSwitchBrightnessSouthValue: State of the threshold value switch for monitoring the light intensity on the south side.

bThresholdSwitchBrightnessSouthRisingEdge: The output is set to TRUE for one PLC cycle, if the threshold value switch for monitoring the light intensity on the south side is activated.

bThresholdSwitchBrightnessSouthFallingEdge: The output is set to TRUE for one PLC cycle, if the threshold value switch for monitoring the light intensity on the south side is deactivated.

bThresholdSwitchBrightnessWestValue: State of the threshold value switch for monitoring the light intensity on the west side.

bThresholdSwitchBrightnessWestRisingEdge: The output is set to TRUE for one PLC cycle, if the threshold value switch for monitoring the light intensity on the west side is activated.

bThresholdSwitchBrightnessWestFallingEdge: The output is set to TRUE for one PLC cycle, if the threshold value switch for monitoring the light intensity on the west side is deactivated.

bThresholdSwitchDaylightValue: State of the threshold value switch for monitoring the daylight level.

bThresholdSwitchDaylightRisingEdge: The output is set to TRUE for one PLC cycle, if the threshold value switch for monitoring the daylight level is activated.

bThresholdSwitchDaylightFallingEdge: The output is set to TRUE for one PLC cycle, if the threshold value switch for monitoring the daylight level is deactivated.

bThresholdSwitchRainValue: State of the threshold value switch for monitoring rainfall.

bThresholdSwitchRainRisingEdge: The output is set to TRUE for one PLC cycle, if the threshold value switch for monitoring rainfall is activated.

bThresholdSwitchRainFallingEdge: The output is set to TRUE for one PLC cycle, if the threshold value switch for monitoring rainfall is deactivated.

bThresholdSwitchRelativeHumidityValue: State of the threshold value switch for monitoring the relative humidity.

bThresholdSwitchRelativeHumidityRisingEdge: The output is set to TRUE for one PLC cycle, if the threshold value switch for monitoring the relative humidity is activated.

bThresholdSwitchRelativeHumidityFallingEdge: The output is set to TRUE for one PLC cycle, if the threshold value switch for monitoring the relative humidity is deactivated.