Mitsubishi MELSEC QCPU Programming Manual page 57

Programmable logic controller
Table of Contents

Advertisement

2 INSTRUCTION TABLES
Table 2.28 Character String Processing Instructions (Continued)
Category
DABCD
DABCDP
Decimal
ASCII to
BCD
DDABCD
DDABCDP
Device
COMRD
comment
read
COMRDP
operation
Character
LEN
string
length
LENP
detection
STR
STRP
BIN to
decimal
character
string
DSTR
DSTRP
VAL
VALP
Decimal
character
string to
BIN
DVAL
DVALP
Floating
ESTR
decimal
point to
character
ESTRP
string
Character
EVAL
string to
floating
decimal
EVALP
point
2 - 37
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Symbol
• Converts a 4-digit, decimal ASCII value
DABCD
S D
designated by (S) to a 1-word BCD
value, and stores it at a word device
DABCDP S D
number designated by (D).
• Converts an 8-digit, decimal ASCII
DDABCD S D
designated by (S) value to a 2-word
BCD value, and stores it at a word
DDABCDP S D
device number designated by (D).
• Stores comment from device designated
COMRD
S D
by (S) at a device designated by (D).
COMRDP S D
• Stores data length (number of
LEN
S D
characters) in character string
designated by (S) at a device designated
LENP
S D
by (D).
• Converts a 1-word BIN value designated
STR
S1 S2 D
by (S2) to a decimal character string with
the total number of digits and the
number of decimal fraction digits
designated by (S1) and stores them at a
STRP
S1 S2 D
device designated by (D).
• Converts a 2-word BIN value designated
DSTR
S1 S2 D
by (S2) to a decimal character string with
the total number of digits and the
number of decimal fraction digits
designated by (S1) and stores them at a
DSTRP
S1 S2 D
device designated by (D).
• Converts a character string including
decimal point designated by (S) to a 1-
VAL
S
D1 D2
word BIN value and the number of
decimal fraction digits, and stores them
at devices designated by (D1) and (D2).
VALP
S
D1 D2
• Converts a character string including
DVAL
S
D1 D2
decimal point designated by (S) to a 2-
word BIN value and the number of
decimal fraction digits, and stores them
at devices designated by (D1) and (D2).
DVALP
S
D1 D2
• Converts floating decimal point data
designated by (S1) to character string,
ESTR
S1 S2 D
and stores them in a device designated
by (D).
ESTRP
S1 S2 D
• Converts character string designated by
(S) to floating decimal point data, and
EVAL
S D
stores them in a device designated by
(D).
EVALP
S D
Processing Details
MELSEC-Q/QnA
Execution
Condition
3
7-187
3
7-187
3
7-190
3
7-194
4
7-196
4
7-196
4
7-202
4
7-202
4
7-207
3
7-214
2 - 37

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents