Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 684

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

Advertisement

Processing details
• These instruction convert the Unicode character string in the device specified by (s) to the shift JIS character string, and
stores the converted data in the device specified by (d).
• The Unicode character string in the device specified by (s) should be specified in little endian.
• When a byte order mark is not used, conversion from Unicode to shift JIS occurs as follows.
SM402
M0
• When a byte order mark (FEFFH) is added, conversion from Unicode to shift JIS occurs as follows.
SM402
M0
Operation error
Error code
Description
(SD0)
2821H
The ranges of data in the devices specified by (s) and (d) are overlapping.
3401H
Byte order mark FEFFH (big endian) is added to the character string in the device specified by (s).
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
682
7.8 String Processing Instructions
$MOVP_WS
"ABC"
D0
(s)
(d)
WS2SJISP
D0
D100
$MOVP_WSB
"123"
D0
(s)
(d)
WS2SJISP
D0
D100
(s)
b15
∙∙∙
b0
D0
4100H
(A)
D1
4200H
(B)
D2
4300H
(C)
D3
0000H
(s)
b15
∙∙∙
b0
Byte order
D0
FFFEH
mark
(1)
D1
3100H
D2
3200H
(2)
D3
3300H
(3)
D4
0000H
*1
(d)
b15
∙∙∙
b8 b7
∙∙∙
b0
D100
42H
41H
(BA)
D101
00H
43H
(C)
(d)
b15
∙∙∙
b8 b7
∙∙∙
b0
(21)
D100
32H
31H
D101
00H
33H
(3)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents