Mitsubishi MELSEC Q Series Programming Manual page 73

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

Category
Hexadecimal
ASC
BIN
ASCP
ASCII
ASCII
HEX
Hexadecimal
HEXP
BIN
RIGHT
RIGHTP
LEFT
LEFTP
MIDR
MIDRP
Character
MIDW
string
MIDWP
INSTR
INSTR
INSTRP
INSTRP
STRINS
STRINSP
STRDEL
STRDELP
Floating
EMOD
decimal point
EMODP
BCD
BCD
EREXP
Floating
EREXPP
decimal point
Table 2.28 Character String Processing Instructions (Continued)
Symbol
• Converts the 1-word BIN value at the
ASC
S D
n
device numbers designated by (S) to
hexadecimal ASCII, and stores n
characters of them at the device numbers
ASCP
S D
n
designated by (D) and after.
• Converts n hexadecimal ASCII
HEX
S D
n
characters of the device numbers
designated by (S) and after to BIN
values, and stores them at the device
HEXP
S D
n
numbers designated by (D).
• Stores n characters from the end of a
RIGHT
S D
n
character string designated by (S) at the
device designated by (D).
RIGHTP
S D
n
• Stores n characters from the beginning
LEFT
S D
n
of a character string designated by (S) at
the device designated by (D).
LEFTP
S D
n
• Stores the designated number of
MIDR
S1
D
S2
characters in the character string
designated by (S1) from the position
designated by (S2) at the device
MIDRP
S1
D
S2
designated by (D).
• Stores the character string of (S1) in the
MIDW
S1
D
S2
specified number to the character string
of (D) at the position specified by (S2).
MIDWP
S1
D
S2
• Searches character string (S1) from the
S1 S2 D
n
nth character of character string (S2),
and stores matched positions at (D).
S1 S2 D
n
• Inserts the character string data
STRINS
S D n
specified by (S) to the (n)th character
(insert position) from the initial character
STRINSP S D n
string data specified by (D).
• Deletes the (n2) characters data
STRDEL
D n1 n2
specified by (D) starting from the
device(insert position) specified by n1.
STRDELP D n1 n2
• Converts 32-bit floating decimal point
EMOD
S1 S2 D
data (S1) to BCD data with number of
decimal fraction digits designated by
(S2) , and stores at device designated
EMODP
S1 S2 D
by (D).
• Converts BCD data (S1) to 32-bit
EREXP
S1 S2 D
floating decimal point data with the
number of decimal fraction digits
designated by (S2), and stores at device
EREXPP S1 S2 D
designated by (D).
Processing Details
Execution
Condition
4
-
7-227
4
-
7-229
4
-
7-231
4
-
7-234
5
-
7-238
4
-
7-240
4
-
7-242
4
-
7-244
4
-
7-247
2-45
1
2
4
4
2
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents