Using Character String Data - Mitsubishi MELSEC QCPU Programming Manual

Programmable logic controller
Table of Contents

Advertisement

3 CONFIGURATION OF INSTRUCTIONS

3.2.5 Using character string data

Character string data is character data used by basic instructions and application instructions.
It encompasses all data from the designated character to the NULL code (00
(1) When designated character is the NULL code.
One word is used to store the NULL code.
M0
(2) When character string is even
Uses (number of characters/2 + 1) words, and stores character string and NULL code.
For example, if "ABCD" is transferred to D0, the character string ABCD is stored at D0 and D1,
and the NULL code is stored at D2.
M0
(3) When number of characters is odd
Uses (number of characters/2) words (rounds up decimal fractions) and stores the character
string and NULL code.
For example, if "ABCDE" is transferred to D0, the character string (ABCDE) and the NULL
code are stored from D0 to D2.
M0
3 - 9
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
$MOV
" "
D0
$MOV "ABCD"
D0
$MOV "ABCDE"
D0
MELSEC-Q/QnA
D0 NULL
NULL code (00
) designation
H
Character string data transfer
D0
42
41
H
H
D1
44
43
H
H
NULL
D2
Designation of an even number
character string
Character string data transfer
D0
42
41
H
H
D1
44
43
H
H
D2
NULL
45
H
Designation of an odd number
character string
Character string data transfer
).
H
3 - 9

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents