22 ascii conversion 2 instruction (binasc), Outline, Format „ parameter – Yaskawa MP900 Series Machine Controller New Ladder Editor User Manual

Page 62

Advertising
background image

1 Ladder Program Instructions

1.2.22 ASCII CONVERSION 2 Instruction (BINASC)

1-52

The character string "ABCDEFG" is stored in MW00100 to MW00103.

1.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

„

Parameter

MW00100

MW00101

Upper

Lower

MW00102

MW00103

"0" is entered in the extra byte.

MW00100 = 4241H

MW00101 = 4443H

MW00100 = 4645H

MW00101 = 0047H

42H ('B')

44H ('D')

46H ('F')

00H

41H ('A')

43H ('C')

45H ('E')

47H ('G')

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 reg-

ister)

Symbol: BINASC
Full Name: Convert Binary to ASCII
Category: MATH
Icon:

Advertising
This manual is related to the following products: