Diese Funktion konvertiert einen Temperatur Wert von einer Einheit in eine andere Einheit unter Verwendung eines gegeben mode Parameters.
| LGF_ConvertTemperature (FC) | ||||||||
|---|---|---|---|---|---|---|---|---|
| Int | mode | Ret_Val | Real | |||||
| Real | value | error | Bool | |||||
| status | Word | |||||||
| Bezeichner | Datentyp | Beschreibung |
|---|---|---|
| mode | Int | 1: Celsius zu Fahrenheit, 2: Fahrenheit zu Celsius, 3: Celsius zu Kelvin, 4: Kelvin zu Celsius, 5: Fahrenheit zu Kelvin, 6: Kelvin zu Fahrenheit, 7: Rankine zu Kelvin, 8: Kelvin zu Rankine |
| value | Real | Umzurechnender Temperaturwert |
| Bezeichner | Datentyp | Beschreibung |
|---|---|---|
| Ret_Val | Real | Umgerechnetes Temperatur Ergebnis |
| error | Bool | FALSE: Kein Fehler TRUE: Während der Ausführung des FB ist ein Fehler aufgetreten |
| status | Word | 16#0000-16#7FFF: Status des FB 16#8000-16#FFFF: Fehleridentifikation (siehe folgende Tabelle) |
| Code / Wert | Bezeichner / Beschreibung |
|---|---|
| 16#8200 | ERR_WRONG_MODE Fehler: Kein korrekter Modus am Eingang "mode", siehe Beschreibung der Eingangsparameter |
| Version & Datum | Änderungsbeschreibung | |
|---|---|---|
| 01.00.00 | Siemens Industry Online Support | |
| 19.08.2015 | First released version | |
| 01.00.01 | Siemens Industry Online Support | |
| 02.01.2017 | Upgrade: TIA Portal V14 Update 1 | |
| 01.00.02 | Siemens Industry Online Support | |
| 17.08.2018 | Upgrade: TIA V15 Update 2 | |
| 01.00.03 | Siemens Industry Online Support | |
| 23.11.2018 | Upgrade: TIA V15.1 | |
| 02.00.00 | Simatic Systems Support | |
| 16.12.2018 | Rename from "LGF_TemperatureConvert" to "LGF_ConvertTemperature" to start with the verb include the Rankine conversion Code refactoring, regions, commends and constants | |
| 03.00.00 | Simatic Systems Support | |
| 23.04.2020 | Set version to V3.0.0 harmonize the version of the whole library | |
| 03.00.01 | Simatic Systems Support | |
| 22.02.2021 | Insert documentation | |