22 ascii conversion 2 instruction (binasc) – Yaskawa Ladder Works Programming Manual User Manual
Page 52

2.22 ASCII CONVERSION 2 Instruction (BINASC)
2-35
2.22 ASCII CONVERSION 2 Instruction (BINASC)
[Outline]
The BINASC instruction converts the 16-bit binary data stored in the Source into four-digit
hexadecimal ASCII character codes and stores them in the designated Dest (two words).
[Format]
Symbol : BINASC
Full Name : Convert Binary to ASCII
Category : MATH
Icon :
[Parameter]
Parameter Name
Setting
Source
· Any integer type register
· Any integer type register with subscript
· Constant
Dest
· Any integer type register (except for # and C register)
· Any integer type register with subscript (except for # and C register)
[Program Example]
The "1234H" binary is converted to a for digit hexadecimal ASICII code and stored in MW00100 to
MW00101.
MW00100
MW00101
MW00100 = 3231H
MW00101 = 3433H
Upper
Lower
32H ('2')
34H ('4')
31H ('1')
33H ('3')