Example - Ladder Diagram
DHABIN
The DHABIN instruction converts an ASCII code value represented in 2 DWORD Hexadecimal notation, S, into a binary DWORD represented in Hexadecimal notation. The conversion value is saved as 0 ~ FFFFFFFF in an assigned DWORD data register, D.
Ladder Diagram Example
When the contact, M3.5, is powered ON (1), the DBINHA instruction converts four ASCII data registers, D80, D81, D82, and D83, into Hexadecimal.
The result of the conversion is saved in two Hexadecimal data registers, D85 and D86.
Memory Monitor
![]()
DHABINP
The DHABINP one-shot instruction converts an ASCII code value represented in 2 DWORD Hexadecimal notation, S, into a binary DWORD represented in Hexadecimal notation. The conversion value is saved as 0 ~ FFFFFFFF in an assigned DWORD data register, D.
Every time this instruction executes, it energizes the output only once.
Ladder Diagram Example
When the contact, M3.6, is powered ON (1), the DBINHA instruction converts four ASCII data registers, D90, D91, D92, and D93, into Hexadecimal.
The result of the conversion is saved in two Hexadecimal data registers, D95 and D96.
Memory Monitor
![]()