3) programming examples – Yaskawa MP2000 Series: User's Manual for Motion Programming User Manual

Page 242

Advertising
background image

8.8 Data Operations

8-135

8

Command Reference

(3) Programming Examples

ASCII command programming examples are shown below.

(a)

Storing the character string “ABCD” in

MW00100 to MW00101

(b)

Storing the character string “

ABCDEFG” in MW00100 to MW00103

ASCII ‘ABCD’ MW00100;

Upper Byte

Lower Byte

MW00100

42H(‘B’)

41H(‘A’)

MW00100 = 4241H

MW00101

44H(‘D’)

43H(‘C’)

MW00101 = 4443H

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.

EXAMPLE

EXAMPLE

Advertising