CurrentDateTime Function Block
The Current Date Time function block determines the current date, time, and some other useful values that can be configured for various outputs. This function block ensured that the outputs were completely correct for a DDC cycle, even if time synchronization occurred and the synchronization lasted longer than one DDC cycle.
Figure 1: CurrentDateTime Function Block |
Figure 2: CurrentDateTime Property Sheet |
Input
Input Name |
Description |
NA |
|
Table 1:Inputs of CurrentDateTime Function
Output
Output Name |
Description |
Out1 |
The value depends on Format Out 1 Parameter. Numeric: unassigned int value |
Out2 |
The value depends on Format Out 2 Parameter. Numeric: unassigned int value |
Out3 |
The value depends on Format Out 3 Parameter. Numeric: unassigned int value |
Table 2: Outputs of CurrentDateTime Function
Parameter
Parameter Name |
Description |
Format Out 1 |
ss=Seconds, mm=Minutes, hh=Hours, MM=Month, YYYY=Year. Default= YYYYMMDD Enums: 1: Always 0: 0 2: Second ss: 0-59 (1) 3: Minutes mm: 0-59 (0) 4: Minute Second mmss: 0-5959(1) 5: Hour hh: 0-23 (0) 6: Hour Minute hhmm: 0-2359 (0) 7: Hour Minute Second hhmmss: 0-235959 (1) 8: Day DD: 1-31 (1) 9: Month MM: 1-12 (1) 10: Month Day MMDD: 101-1231 (101) 11: Year YYYY: 0-9999 (1970) 12 Year Month YYYYMM: 0-999912 (197001) 13: Year Month Day YYYYMMDD: 101-99991231 (19700101) 14: Day of the Year: 1-366 (1) 15: Minutes since Midnight: 0-1440 (0) 16: Week of the Year ISO 8601: 1-53 (1) 17: Week of the Year US: 1-53 (1) 18: Day of the Week ISO 8601: 1-7 (4) (1=Monday) 19: Day of the Week US: 1-7 (5) (1=Sunday) 20: Daylight Saving Active: 0=Not active, 1=Active. (Not active) (*1) Note: For implementation, use a Floating Output without decimal. |
Format Out 2 |
Same Enumeration as Format Out 1. Default: hhmmss |
Format Out 3 |
Same Enumeration as Format Out 1. Default: Minutes since midnight |
Out Save |
Master Sync Enabled : If you set it to "true" the last output will be set as output for one cycle after the controller restarts. The application can use it to return to the same state before the controller restart. Out1: To enable or disable the Out1 feature. Out2:To enable or disable the Out2 feature. Out3:To enable or disable the Out3 feature. |
Table 3: Parameters of CurrentDateTime Function
Refer to General Description for general information about IRM N4 Function Blocks.