Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 99

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

Advertisement

■Converting Unicode character string to Shift JIS character string
Instruction symbol
Processing details
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).
WS2SJISP
■Converting shift JIS character string to Unicode character string (without byte order mark)
Instruction symbol
Processing details
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).
SJIS2WSP
■Converting shift JIS to Unicode (with byte order mark)
Instruction symbol
Processing details
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).
SJIS2WSBP
■Detecting a string length
Instruction symbol
Processing details
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).
LENP
■Extracting string data from the right/left
Instruction symbol
Processing details
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).
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).
LEFTP
■Extracting/replacing the specified string data
Instruction symbol
Processing details
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
MIDRP
specified by (d).
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
MIDWP
the device specified by (d).
■Searching string data
Instruction symbol
Processing details
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
INSTRP
specified by (d).
■Inserting string data
Instruction symbol
Processing details
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).
STRINSP
■Deleting string data
Instruction symbol
Processing details
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).
STRDELP
Reference
Page 681 WS2SJIS(P)
Reference
Page 683 SJIS2WS(P)
Reference
Page 685
SJIS2WSB(P)
Reference
Page 687 LEN(P)
Reference
Page 689 RIGHT(P)
Page 691 LEFT(P)
Reference
Page 693 MIDR(P)
Page 695 MIDW(P)
Reference
Page 698 INSTR(P)
Reference
Page 700 STRINS(P)
Reference
Page 702 STRDEL(P)
2 CPU MODULE INSTRUCTIONS
2.3 Application Instructions
2
97

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents