Skip to main content

Example - Ladder Diagram

DBINHA


The DBINHA instruction converts a DWORD value, S, from Hexadecimal notation into ASCII code. The conversion result is saved in 2 assigned DWORD data registers starting at the data register, D.

Ladder Diagram Example


When the contact, M2.5, is powered ON (1), the DBINHA instruction converts two Hexadecimal data registers, D60 and D61, into ASCII code.



The result of the conversion is saved in four ASCII data registers, D63, D64, D65, and D66.

Memory Monitor

DBINHAP


The DBINHAP one-shot instruction converts a DWORD value, S, from Hexadecimal notation into ASCII code. The conversion result is saved in 2 assigned DWORD data registers starting at the data register, D.
Every time this instruction executes, it energizes the output only once.

Ladder Diagram Example


When the contact, M2.6, is powered ON (1), the DBINHAP instruction converts two Hexadecimal data registers, D65 and D66, into ASCII code.



The result of the conversion is saved in four ASCII data registers, D68, D69, D70, and D71.

Memory Monitor