Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 688

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

Advertisement

Processing details
• These instructions convert the shift JIS character string in the device specified by (s) to the Unicode character string, add a
byte order mark to the start of the converted data, and store it in the device specified by (d).
• The shift JIS character string in the device specified by (s) should be specified in little endian.
• The following figure shows the operation for converting shift JIS to Unicode.
SM402
M0
Operation error
Error code
Description
(SD0)
2821H
The ranges of data in the devices specified by (s) and (d) are overlapping.
3401H
The range of data in the device specified by (s) includes a character code that cannot be converted.
3405H
The character string in the device specified by (s) exceeds 16383 characters.
*1 A two-byte character such as a kanji character represented in shift JIS code should be counted 2.
7 APPLICATION INSTRUCTIONS
686
7.8 String Processing Instructions
$MOVP
"123"
D0
(s)
(d)
SJIS2WSBP
D0
D100
(s)
b15
∙∙∙
b8 b7
∙∙∙
b0
D0
32H
31H
(21)
D1
00H
33H
(3)
*1
(d)
b15
∙∙∙
b0
Byte order
D100
FFFEH
mark
D101
3100H
(1)
D102
3200H
(2)
D103
3300H
(3)
D104
0000H

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents