The Day of the Week function block enables you to assign tasks or run programs on specific days, such as Monday or Tuesday, according to the RTC calendar embedded in the controller..
T
According to the above example:
On Monday, Tuesday, Wednesday, Thursday, and Friday the function block's output will be logic "1" (ON).
On Saturday and Sunday the function block's output will be logic "0" (OFF).
Indirect Clock functions are linked to registers. Values may be placed into the linked register by your application, or may be entered via the controller keypad.
The Indirect Day of Week function is linked to a 16-bit register that provides a 7-bit bitmap in the linked MI. The MI value shown below contains the decimal value 42 (hexadecimal 2A). According to this value:
On Monday, Wednesday and Friday the function block will go to logic "1" (ON).
On Sunday, Tuesday, Thursday and Saturday the function block will go to logic "0" (OFF).

Place an Indirect Day of Week function in the Ladder.

Create HMI Displays that include keyboard-entry variables.
This type of variable accepts a number entered via the controller keyboard, and stores the number in a linked MI, SI, ML or SL.

To select the days using the controller's keyboard, the operator uses:
Up and Down scroll arrow keys to scroll through the days of the week,
The <Enter>key to select the desired days of the week.