Example - Ladder Diagram
HOUR
The HOUR instruction converts a DWORD second-formatted value, S, into hour, minute, and second date-format and saves the conversion into an assigned WORD data register, D.
Ladder Diagram Example
When the contact, M4.5, is powered ON (1), the DWORD value, 40,000, is converted into hour, minute, and second notation.
The result of the conversion is saved in the WORD date value data registers, D48, D49, and D50.
Memory Monitor
![]()
HOURP
The HOURP one-shot instruction converts a DWORD second-formatted value, S, into hour, minute, and second date-format and saves the conversion into an assigned WORD data register, D.
Every time this instruction executes, it energizes the output only once.
Ladder Diagram Example
When the contact, M4.0, is powered ON (1), the DWORD value, 86,355, is converted into hour, minute, and second notation.
The result of the conversion is saved in the WORD date value data registers, D43, D44, and D45.
Memory Monitor
![]()