Skip to main content

Example - Ladder Diagram

HABIN​


The HABIN instruction converts an ASCII code value represented in 2 WORD Hexadecimal notation, S, into a binary WORD represented in Hexadecimal notation. The conversion value is saved as 0 ~ FFFF in an assigned WORD data register, D.

Ladder Diagram Example​


When the contact, M3.0, is powered ON (1), the DBINHA instruction converts two ASCII data registers, D70 and D71, into Hexadecimal.



The result of the conversion is saved in a Hexadecimal data register, D73.

Memory Monitor​

HABINP​

The HABINP one-shot instruction converts an ASCII code value represented in 2 WORD Hexadecimal notation, S, into a binary WORD represented in Hexadecimal notation. The conversion value is saved as 0 ~ FFFF in an assigned WORD data register, D.
Every time this instruction executes, it energizes the output only once.

Ladder Diagram Example​


When the contact, M3.1, is powered ON (1), the DBINHA instruction converts two ASCII data registers, D75 and D71, into Hexadecimal.



The result of the conversion is saved in a Hexadecimal data register, D78.

Memory Monitor​