52
1 OVERVIEW
1.2 Data Specification Method
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.
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).
■
Unicode character strings
In each Unicode character string storage image, "NULL" indicates a NULL code (0000H).
Number of
character string
bytes
Number of words required for storing character
strings
Number of words required for storing Unicode
character strings
0 byte
1 [word]
1 [word]
Odd number of bytes
(Number of character string bytes+1)
2 [words]
(because one character is an even number of bytes)
Even number of bytes
(Number of character string bytes
2) +1 [words]
Number of cha1 [words]
Character string
to be stored
Image of storing character string data from D0
Image of storing character string data from word type
label array arrayA[0]
Null character string
(("") or (''))
ABC
ABCD
Character string
to be stored
Image of storing character string data from D0
Image of storing character string data from word type
label array arrayA[0]
Null character string
("")
ABCD
D0
NULL
NULL
arrayA[0]
NULL
NULL
D0
D1
B
NULL
A
C
arrayA[0]
arrayA[1]
B
NULL
A
C
D2
B
D
A
C
NULL
NULL
D0
D1
arrayA[0]
arrayA[1]
arrayA[2]
B
D
A
C
NULL
NULL
D0
NULL
arrayA[0]
NULL
D2
A
B
C
D
NULL
D0
D1
D4
D3
arrayA[0]
arrayA[1]
arrayA[2]
arrayA[3]
arrayA[4]
A
B
C
D
NULL
Summary of Contents for MELSEC iQ-R Series
Page 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Page 34: ...32 MEMO ...
Page 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Page 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Page 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Page 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Page 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Page 2109: ......