Skip to main content

Example - Ladder Diagram

DDABIN


The DDABIN instruction converts 3 DWORD data registers, S, from ASCII code to binary decimal notation. The conversion result is saved in an assigned DWORD data register, D.

Ladder Diagram Example


When the contact, M1.0, is powered ON (1), the DDABIN instruction converts six ASCII data registers, D30, D31, D32, D33, D34, and D35, into binary.



The result of the conversion is saved in two binary data registers, D37 and D38.

Memory Monitor

DDABINP


The DDABINP one-shot instruction converts 3 DWORD data registers, S, from ASCII code to binary decimal notation. The conversion result is saved in an assigned DWORD data register, D.
Every time this instruction executes, it energizes the output only once.

Ladder Diagram Example


When the contact, M1.1, is powered ON (1), the DDABINP instruction converts six ASCII data registers, D40, D41, D42, D43, D44, and D45, into binary.



The result of the conversion is saved in two binary data registers, D47 and D48.

Memory Monitor