The Function Block WEEKNUM returns the calendar week.
At the input, a date can be specified in DT#. If no value is set, the current time is used.
The output returns the calendar week. The value ranges between 1 and 53.