EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - String Data

Mitsubishi Electric MELSEC iQ-R Series
2110 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
1 OVERVIEW
1.2 Data Specification Method
51
1
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.
Character string data is stored in devices or an array in ascending order of device numbers or array element numbers.
Notation of character string
The following shows the notation of character strings in ladder programs.
The following shows the notation of character strings in ST programs.
The following shows the notation of character strings in FBD/LD programs.
Data range
The following table summarizes the ranges of character string data.
*1 For the Unicode character string, characters up to the basic multilingual plane can be used.
Type Character code Last character
Character string ASCII code, Shift JIS code NULL(00H)
Unicode character string Unicode (UTF-16 (little endian)) NULL(0000H)
(1) Character code string
Data type Notation Example
String STRING Enclose a string (ASCII, Shift JIS) and Unicode string in double quotation
marks (").
"ABC"
Character string
[Unicode]
WSTRING
Data type Notation Example
String STRING Enclose a string (ASCII, Shift JIS) in single quotation marks ('). Stest:=’ABC’;
Character string
[Unicode]
WSTRING Enclose a Unicode string in double quotation marks ("). Stest:=”ABC”;
Data type Notation Example
String STRING Enclose a string (ASCII, Shift JIS) in single quotation marks (').
Character string
[Unicode]
WSTRING Enclose a Unicode string in double quotation marks (").
Type Maximum number of character strings Maximum number of character strings that can
be handled in the program
Character string 255 single-byte characters (excluding the last NULL
character)
16383 characters (excluding the last NULL character)
Unicode character string
*1
255 characters (excluding the last NULL character)
ABC  XYZ
"ABC  XYZ"
NULL
(1)
UpperLower

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals