2 CPU MODULE INSTRUCTIONS
2.3 Application Instructions
97
2
■Converting Unicode character string to Shift JIS character string
■Converting shift JIS character string to Unicode character string (without byte order mark)
■Converting shift JIS to Unicode (with byte order mark)
■Detecting a string length
■Extracting string data from the right/left
■Extracting/replacing the specified string data
■Searching string data
■Inserting string data
■Deleting string data
Instruction symbol Processing details Reference
WS2SJIS Converts 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).
Page 681 WS2SJIS(P)
WS2SJISP
Instruction symbol Processing details Reference
SJIS2WS Converts the shift JIS character string in the device specified by (s) to a Unicode character string,
and stores the converted data in the device specified by (d).
Page 683 SJIS2WS(P)
SJIS2WSP
Instruction symbol Processing details Reference
SJIS2WSB Converts the shift JIS character string in the device specified by (s) to the Unicode character string,
add a byte order mark to the head of the converted data, and stores it in the device specified by (d).
Page 685
SJIS2WSB(P)
SJIS2WSBP
Instruction symbol Processing details Reference
LEN Stores the length (the number of characters) of the character string data, which is stored in the
device specified by (s), in the device specified by (d).
Page 687 LEN(P)
LENP
Instruction symbol Processing details Reference
RIGHT Stores the (n) characters from the last character of the character string, which is stored in the
device specified by (s), in the device specified by (d).
Page 689 RIGHT(P)
RIGHTP
LEFT Stores the (n) characters from the first character of the character string, which is stored in the
device specified by (s), in the device specified by (d).
Page 691 LEFT(P)
LEFTP
Instruction symbol Processing details Reference
MIDR Retrieves the character string in the device specified by (s1) by the number of specified characters
from the location in the device specified by (s2), and stores the retrieved data in the device
specified by (d).
Page 693 MIDR(P)
MIDRP
MIDW Retrieves the specified number of characters from the character string in the device specified by
(s1), and stores the retrieved data at the location specified by (s2) in the character string stored in
the device specified by (d).
Page 695 MIDW(P)
MIDWP
Instruction symbol Processing details Reference
INSTR Searches the character string in the device specified by (s2), starting from the (s3)th character, for
the character string in the device specified by (s1), and stores the matching location in the device
specified by (d).
Page 698 INSTR(P)
INSTRP
Instruction symbol Processing details Reference
STRINS Inserts the character string data in the device specified by (s1) to the (s2)th character (insertion
position) from the head of the character string data in the device specified by (d).
Page 700 STRINS(P)
STRINSP
Instruction symbol Processing details Reference
STRDEL Deletes the (n) characters starting from the position (deletion start position) specified by the (s)th
character from the head of the character string data in the device specified by (d).
Page 702 STRDEL(P)
STRDELP