Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 686

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 a Unicode character string, and
store the converted data in the device specified by (d).
• The shift JIS character string in the device specified by (s) should be specified in little endian.
• The SJIS2WS(P) instruction does not add a byte order mark to the beginning of the data in the device specified by (d). To
add a byte order mark, use the SJIS2WSB(P) instruction.
Page 685 SJIS2WSB(P)
• 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
684
7.8 String Processing Instructions
$MOVP
"123"
D0
(s)
(d)
SJIS2WSP
D0
D100
(s)
b15
∙∙∙
b8 b7
∙∙∙
b0
D0
32H
31H
(21)
D1
00H
33H
(3)
*1
(d)
b15
∙∙∙
b0
D100
3100H
(1)
D101
3200H
(2)
D102
3300H
(3)
D103
0000H

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents