AM PM Conversion

This example logic group converts the time from 24h to 12h format.

Via the "Timer" element, the values for minutes and hours are output via separate outputs ("Output hour" and "Output minute").

The hourly value is checked once via a comparator to see if it is less than 12. If this is the case, the text "am" is output via a "translator" tool and if it is greater than or equal to "pm", the text is output via the "Output AM/PM" output.

The hourly value for the values "0" to "12" is passed on unchanged via another translator tool. For the hourly values "13" to "23", the values "1" (for 13) to "11" (for 23) are changed accordingly.

The values for the minutes are output 1:1.

AM PM Conversion

141
This logic group is compatible with: EP, LOM
*With the download you accept the Notes on use for logic groups.