String Data - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

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

Advertisement

String data

Format of character string data
The following table lists the types of character string data, each of which ends with a NULL code to be handled as a character
string.
Type
Character string
Unicode character string
Character string data is stored in devices or an array in ascending order of device numbers or array element numbers.
Lower
(1)
ABC ∙∙∙ XYZ
"ABC ∙∙∙ XYZ"
(1) Character code string
Notation of character string
The following shows the notation of character strings in ladder programs.
Data type
String
STRING
Character string
WSTRING
[Unicode]
The following shows the notation of character strings in ST programs.
Data type
String
STRING
Character string
WSTRING
[Unicode]
The following shows the notation of character strings in FBD/LD programs.
Data type
String
STRING
Character string
WSTRING
[Unicode]
Data range
The following table summarizes the ranges of character string data.
Type
Character string
*1
Unicode character string
*1 For the Unicode character string, characters up to the basic multilingual plane can be used.
Character code
ASCII code, Shift JIS code
Unicode (UTF-16 (little endian))
Upper
NULL
Notation
Enclose a string (ASCII, Shift JIS) and Unicode string in double quotation
marks (").
Notation
Enclose a string (ASCII, Shift JIS) in single quotation marks (').
Enclose a Unicode string in double quotation marks (").
Notation
Enclose a string (ASCII, Shift JIS) in single quotation marks (').
Enclose a Unicode string in double quotation marks (").
Maximum number of character strings
255 single-byte characters (excluding the last NULL
character)
255 characters (excluding the last NULL character)
Last character
NULL(00H)
NULL(0000H)
Example
"ABC"
Example
Stest:='ABC';
Stest:="ABC";
Example
Maximum number of character strings that can
be handled in the program
16383 characters (excluding the last NULL character)
1 OVERVIEW
1.2 Data Specification Method
1
51

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents