Issue
When numerically evaluating in a program, what day = 1?
Is Sunday or Monday the first day of the week?
Product Line
EcoStruxure Building Operation
Environment
- Building Operation Script Editor
- Building Operation Builder for Function Block
- Building Operation Function Block Editor
Cause
What is the first day of the week in EBO, this may be required when using ">" or "<" logic in the program.
Resolution
Script programs handle this differently from Function Block programs.
Function Block programs use Monday as the first day of the week and therefore assign a value of 1 to Monday. Refer to: WDAY – Week Day
Script program uses Sunday as the first day of the week and therefore assigns a value of 1 to Sunday. These differences are not handled by the regional settings of the local workstation. WEEKDAY
*Exercise caution when using Script or Function Block programming which relates to the first day of the week.