2.5 Application Instructions
2.5.11 String processing instructions
2-29
2
INSTRU
CTION
TABLES
Table 2.28 String processing instructions (continued)
Category
Instruction name
Argument
Processing details
Executing
condition
Page
Character
string length
detection
LEN
,
• Stores the length (number of
characters) of character string data
stored in the device specified for to
the device specified for .
BIN data
to
decimal
character
string data
conversion
STR
, ,
• Converts 1 word of BIN value specified
for to character string data according
to the total number of digits and number
of digits for decimal fraction specified for
, and stores the result to the device
specified for .
DSTR
, ,
• Converts 2 words of BIN value specified
for to character string data according
to the total number of digits and number
of digits for decimal fraction specified for
, and stores the result to the device
specified for .
Decimal
character
string data
to
BIN data
conversion
VAL
, ,
• Converts character string data contain a
decimal point specified for to 1 word
of BIN value and number of digits for
decimal fraction, and stores the result to
the devices specified for and .
DVAL
, ,
• Converts character string data contain a
decimal point specified for to 2 words
of BIN data and number of digits for
decimal fraction, and stores the result to
the devices specified for and .
Floating-
point data
to
character
string data
conversion
ESTR
, ,
• Converts floating-point data specified
for to character string data and
stores the result to the device specified
for .
Character
string data
to
floating-point
data
conversion
EVAL
,
• Converts character string data specified
for to floating-point data and stores
the result to the device specified for .
Hexadecimal
BIN data
to
ASCII data
conversion
ASC
, n,
• Converts 1 word of BIN value in and
the following word devices to
hexadecimal ASCII data and stores the
number of characters specified for n to
and the following word devices.
ASCII data
to
hexadecimal
BIN data
conversion
HEX
, n,
• Converts n numbers of hexadecimal
ASCII data in and the following word
devices to BIN data and stores the
result to and the following word
devices.
s
d
s
d
s
1
s
2
d
s
2
s
1
d
s
1
s
2
d
s
2
s
1
d
s
d
1
d
2
s
d
1
d
2
s
d
1
d
2
s
d
1
d
2
s
1
s
2
d
s
d
s
d
s
d
s
d
s
d
s
d
s
d
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......