Mitsubishi MELSEC QCPU Programming Manual page 58

Programmable logic controller
Table of Contents

Advertisement

2 INSTRUCTION TABLES
Table 2.28 Character String Processing Instructions (Continued)
Category
ASC
Hexadeci-
mal BIN to
ASCII
ASCP
HEX
ASCII to
hexadeci-
mal BIN
HEXP
RIGHT
RIGHTP
LEFT
LEFTP
MIDR
Character
string
MIDRP
processing
MIDW
MIDWP
INSTR
INSTRP
Floating
EMOD
decimal
point to
EMODP
BCD
BCD to
EREXP
floating
decimal
EREXPP
point data
2 - 38
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Symbol
• Converts 1-word BIN values of the device
ASC
S D
n
number and later designated by (S) to
ASCII, and stores only n characters of
them at the device number designated by
ASCP
S D
n
(D).
• Converts only n ASCII characters of the
HEX
S D
n
device number and later designated by (S)
to BIN values, and stores them at the
device number designated by (D).
HEXP
S D
n
• 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 of
LEFT
S D
n
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 designated number of
MIDW
S1
D
S2
characters in the character string
designated by (S1) from the position
MIDWP
S1
D
S2
designated by (S2) at the device
designated by (D).
• Searches character string (S1) from the
INSTR
S1 S2 D
n
nth character of character string (S2), and
stores matched positions at (D).
INSTRP
S1 S2 D
n
• Converts floating decimal point data (S1)
EMOD
S1 S2 D
to BCD data with number of decimal
fraction digits designated by (S2) , and
EMODP
S1 S2 D
stores at device designated by (D).
• Converts BCD data (S1) to floating
EREXP
S1 S2 D
decimal point data with the number of
decimal fraction digits designated by (S2),
EREXPP S1 S2 D
and stores at device designated by (D).
Processing Details
MELSEC-Q/QnA
Execution
Condition
4
7-218
4
7-220
4
7-222
4
7-225
5
7-229
4
7-231
4
7-233
2 - 38

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents