Example - Ladder Diagram
BINHA
The BINHA instruction converts a WORD value, S, from Hexadecimal notation into ASCII code. The conversion result is saved in 2 assigned WORD data registers starting at the data register, D.
Ladder Diagram Example
When the contact, M2.0, is powered ON (1), the BINHA instruction converts the Hexadecimal data register, D50, into ASCII code.
The result of the conversion is saved in two ASCII data registers, D52 and D53.
Memory Monitor
![]()
BINHAP
The BINHAP one-shot instruction converts a WORD value, S, from Hexadecimal notation into ASCII code. The conversion result is saved in 2 assigned WORD 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.2, is powered ON (1), the BINHAP instruction converts the Hexadecimal data register, D55, into ASCII code.
The result of the conversion is saved in two ASCII data registers, D57 and D58.
Memory Monitor
![]()