Weekday Numbering
Original instructions
Different Numbering
In Control Expert the numbering of weekdays is different than Concept:
Number
Control Expert
Concept
1
Monday
Sunday
7
Sunday
Saturday
SET_TOD / GET_TOD
Function blocks: SET_TOD and GET_TOD will be converted to Control Expert as DFBs, which work in both directions.
Because SET_TOD expects a "Concept" numbered weekday and translates it as a Control Expert coded value. Also the GET_TOD reads Control Expert value and returns to User the Concept value.
System Word %SW49
NOTE: We do not recommend that you mix GET_TOD and SET_TOD programming with the use of system words (e.g. %SW49) in the same application.