Skip to main content

Example - Ladder Diagram

SECOND


The SECOND instruction converts a WORD time data value, S, from hour, minute, and second into seconds and saves the conversion into an assigned DWORD second-formatted data register, D.

Ladder Diagram Example


When the contact, M3.0, is powered ON (1), the time data data registers, D30, D31, and D32, are converted into DWORD second format.



The result of the conversion is saved in the DWORD second-formatted data register, D34.

Memory Monitor

SECONDP


The SECONDP one-shot instruction converts a WORD time data value, S, from hour, minute, and second into seconds and saves the conversion into an assigned DWORD second-formatted data register, D.
Every time this instruction executes, it energizes the output only once.

Ladder Diagram Example


When the contact, M3.5, is powered ON (1), the time data data registers, D46, D47, and D48, are converted into DWORD second format.



The result of the conversion is saved in the DWORD second-formatted data register, D50.

Memory Monitor