Jprogramming examples – Yaskawa MP900 Series Motion Programming Manual User Manual

Page 157

Advertising
background image

Sequence Commands

4.5.5 ASCII CONVERSION 1 (ASCII)

4 -24

J

Programming Examples

The following illustration provides a programming example for the ASCII command.

When character string “ABCD” is stored in MW00100 to
MW00101

ASCII ‘ABCD’ MW00100;

Upper byte

Lower byte

MW00100

42H(‘B’)

41H(‘A’)

MW00100 = 4241H

MW00101

44H(‘D’)

43H(‘C’)

MW00101 = 4443H

When character string “ABCDEFG” is stored in MW00100 to
MW00103

ASCII ‘ABCDEFG’ MW00100;

Upper byte

Lower byte

MW00100

42H(‘B’)

41H(‘A’)

MW00100 = 4241H

MW00101

44H(‘D’)

43H(‘C’)

MW00101 = 4443H

MW00102

46H(‘F’)

45H(‘E’)

MW00102 = 4645H

MW00103

00H

47H(‘G’)

MW00103 = 0047H

"

0 will be entered in the

remaining byte.

4

Advertising
This manual is related to the following products: