Programming

 

 

 

 

 

Appendix A

 

 

 

 

 

 

 

 

 

 

 

 

Data

Operand

Data form

Symbol

Range

Application example

 

 

 

 

 

 

 

 

 

 

 

 

Text string

Text string data is stored in ASCII

---

 

 

'ABCDE'

 

 

(one byte except for special charac-

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ters) in order from the leftmost to the

 

 

 

 

 

 

 

 

 

 

 

 

'A'

 

'B'

 

 

 

rightmost byte and from the right-

 

 

 

 

 

 

 

 

 

 

'C'

 

'D'

 

 

 

most (lower) to the leftmost word.

 

 

 

 

 

 

 

 

 

 

'E'

 

NUL

 

 

 

00 hex (NUL code) is stored in the

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

rightmost byte of the last word if

 

 

 

 

 

 

 

 

 

 

 

 

41

42

 

 

 

there is an odd number of charac-

 

 

 

 

 

 

 

 

 

43

44

 

 

 

ters.

 

 

 

 

 

 

 

 

 

 

 

45

00

 

 

 

0000 hex (2 NUL codes) is stored in

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

the leftmost and rightmost vacant

 

 

 

'ABCD'

 

 

bytes of the last word + 1 if there is

 

 

 

 

 

an even number of characters.

 

 

 

 

 

 

 

'A' 'B'

'C' 'D'

NUL NUL

41 42

43 44

00 00

ASCII characters that can be used in a text string includes alphanumeric characters, Katakana and sym- bols (except for special characters). The characters are shown in the following table.

Upper 4 bits

Lower 4 bits

275

Page 298
Image 298
Omron FQM1-MMA21, FQM1-CM001, FQM1-MMP21 operation manual Abcde, Nul Nul