Example: DCF77 Decoder
Product: CODESYS Control for Raspberry Pi
The library contains a function block which decodes a DCF77 time signal and releases the transmitted date and time as a DATE_AND_TIME
value. An example project shows how to use the library with the CODESYS Control for Raspberry Pi controller.
![]() |
Description
Library: DCF77_Decoder:
The DCF77_DECODER
function block checks whether or not the transmitted time signal is inverted and then waits for a marker which signals the beginning of a new time signal. The DCF77 time signal consists of 59 bits. Because one bit is transmitted per second, the function block outputs the first DATE_AND_TIME
value after two minutes at the latest. The DATE_AND_TIME
value is updated every minute.
Example: DCF77_Decoder_Example:
The sample project shows how to use the library with the CODESYS Control for Raspberry Pi runtime system and a DCF receiver. The output of the DCF receiver is connected to a GPIO
input of the Raspberry Pi.
System requirements and restrictions
Programming system | CODESYS Development System (version 3.5.14.0 or higher) |
Runtime system | CODESYS Control Win (version 3.5.14.0) |
Add-on components | DCF77 receiver, CODESYS Control for Raspberry Pi (for the sample project) |
Note
DOWNLOAD Project