Character String Data - Mitsubishi MELSEC iQ-F FX5 series Programming Manual

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

Character 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
Character string data is stored in devices or an array in ascending order of device numbers or array element numbers.
Device number
or array element
Lower
number
Data range
The following table summarizes the ranges of character string data.
Type
Character string
*1 When specifying a character string in the program, enclose it in single quotes (').
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 character string bytes
0 byte
Odd number of bytes
Even number of bytes
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
D0
string)
'ABC'
D0
D1
'ABCD'
D0
D1
D2
1 OVERVIEW
32
1.2 Data Specification Method
Character code
ASCII code
Upper
Character
Null code
code string
ABC ∙∙∙ XYZ
'ABC ∙∙∙ XYZ'
Maximum number of character strings
255 single-byte characters (excluding the last NULL
character)
Number of words required for storing character strings
1 [word]
(Number of character string bytes+1) 2 [words]
(Number of character string bytes2) +1 [words]
NULL
NULL
B
A
NULL
C
B
A
D
C
NULL
NULL
Last character
NULL(00H)
*1
Maximum number of character strings that can
be handled in the program
16383 characters (excluding the last NULL character)
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
NULL
A
C
A
C
NULL

Advertisement

Table of Contents
loading

Table of Contents