Overview
The library contains useful function blocks for the PLC controller ( BCxxxx controller ). In addition to the RTC blocks, the library contains a function block for decoding the DCF-77 time signal, along with a number of conversion functions. Internally, PLC Controller system functions are called.
Requirements
Some of the functions are only supported by PLC controllers with a newer firmware version. The required firmware versions are listed in the PlcSystemBC library documentation.
Content of the library
Function blocks
Name | Description |
---|---|
Real Time Clock | |
Real Time Clock with an additional millisecond output | |
Read the DCF77 radio time | |
Access to the registers of the terminals | |
Random number generator | |
Simple PID controller |
Functions
Name | Description |
---|---|
Converting DATE_AND_TIME to Windows system time structure | |
Converting Windows system time structure to DATE_AND_TIME | |
Convert TIME to a structure with milliseconds, seconds, minutes, hours, days and weeks | |
Convert a structure with milliseconds, seconds, minutes, hours, days and weeks to a TIME variable | |
Sets a bit in a 32-bit variable to 1 | |
Sets / resets a bit in a 32-bit variable | |
Determines the value of a bit of a 32-bit variable | |
Sets a bit in a 32-bit variable to zero | |
Converts bus controller REAL numbers into the 4Byte REAL Intel format. | |
Verifies the formatting of a floating-point number in accordance with the IEEE |
Data structures
Name | Description |
---|---|
Windows system time structure | |
Operating time structure |