The Day of the Week function block is used for weekday functions, e.g. Monday, Tuesday.
The programmer uses this function to select on which day(s) to activate a task.
If the RTC coincides with a selected day of the week: power will flow through the function block.
If the RTC does not coincide with a selected day of the week: power will not flow through the function block.
To link a Direct Clock function:
Click Clock on the Ladder toolbar.
The Clock drop-down menu opens.
Select Direct Clock Functions.
Select Day Of The Week from the Direct Clock Functions menu.
Move the Day of the Week element to the desired net.
Select the desired days from the Day Of The Week window and click OK.
The selected days appear in blue highlights in the element on the net.
According to the above example, the net result will be true (logic 1) only when MB 6 = 1 and on Monday or Tuesday.
The Indirect Day of the Week function comprises:
Indirect Day of the Week function block
Time Function Variable in the Day of the Week format (CW)
Display for entering values
The Indirect Day of the Week function values are entered by the user via the
Up and Down scroll arrow keys for scrolling through the days of the week
+/- keys for selecting the desired days of the week
Enter key for confirming selection
The Indirect Day of the Week values are entered into a 7-bit bitmap in the linked MI.
According to the above example:
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).