Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 54

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Number of words required for storing data
Character string data can be stored in word devices.
The following table lists the numbers of words required for storing character string data.
Number of
Number of words required for storing character
character string
strings
bytes
0 byte
1 [word]
Odd number of bytes
(Number of character string bytes+1) 2 [words]
Even number of bytes
(Number of character string bytes2) +1 [words]
Character string data storage location
An image of the character string data storage location is shown below.
■Character strings
In each character string storage image, "NULL" indicates a NULL code (00H).
Character string
Image of storing character string data from D0
to be stored
Null character string
D0
(("") or (''))
ABC
D0
D1
ABCD
D0
D1
D2
■Unicode character strings
In each Unicode character string storage image, "NULL" indicates a NULL code (0000H).
Character string
Image of storing character string data from D0
to be stored
Null character string
D0
("")
ABCD
D0
D1
D2
D3
D4
1 OVERVIEW
52
1.2 Data Specification Method
NULL
NULL
B
A
NULL
C
B
A
D
C
NULL
NULL
NULL
A
B
C
D
NULL
Number of words required for storing Unicode
character strings
1 [word]
 (because one character is an even number of bytes)
Number of characters+1 [words]
Image of storing character string data from word type
label array arrayA[0]
arrayA[0]
NULL
arrayA[0]
B
arrayA[1]
NULL
arrayA[0]
B
arrayA[1]
D
arrayA[2]
NULL
Image of storing character string data from word type
label array arrayA[0]
arrayA[0]
NULL
arrayA[0]
arrayA[1]
arrayA[2]
arrayA[3]
NULL
arrayA[4]
NULL
A
C
A
C
NULL
A
B
C
D

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents