Conversion From Character String To Bin 16-Bit Or 32-Bit Data (Val(P),Dval(P)) - Mitsubishi MELSEC Q Series Programming Manual

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

Advertisement

7.11.10
Conversion from character string to BIN 16-bit or 32-bit
data (VAL(P),DVAL(P))
VAL(P),DVAL(P)
VAL,DVAL
VALP,DVALP
Setting
Data
S
D1
D2
Function
VAL
(1) Converts character strings stored in the device numbers starting from that designated at
to BIN 16-bit data, and stores the number of digits and BIN data in
For conversions from character strings to BIN, all data from the device number designated
by
S
S
+1
S
+2
S
+3
S
+4
S
Basic model QCPU: The upper five digits of the serial No. are "04122" or larger
Command
Command
: Character string to be converted to BIN data or head number of the devices where the character string is
S
stored (character string)
: Head number of the devices where the number of digits of the converted BIN data will be stored (BIN 16 bits)
D1
: Head number of the devices where the converted BIN data will be stored (BIN 16/32 bits)
D2
Internal Devices
R, ZR
Bit
Word
––
to the device number where "00
b15
b8b7
ASCII code for the 1st character
ASCII code for the sign
ASCII code for the 3rd character
ASCII code for the 2nd character
ASCII code for the 5th character
ASCII code for the 4th character
ASCII code for the 7th character
ASCII code for the 6th character
00
H
Indicates the end of character string
Ver.
High
Basic
performance
(Correspording GX Seveloper :Version 8.00 A or later).
indicates an instruction symbol of VAL/DVAL.
S
P
S
J
\
U
\G
Bit
Word
––
––
" is stored will be processed as character strings.
H
b0
.
Sign 1st
2nd
7th
char-
char-
char-
acter
acter
acter
VAL(P),DVAL(P)
Process
Redundant Universal
LCPU
D1
D2
D1
D2
Constants
Zn
Other
$
––
––
––
––
––
S
and
.
D1
D2
Total number
D1
of digits
Number of digits
+1
D1
in decimal fraction
Integer value
ignoring decimal
D2
point
BIN 16 bits
7-211
1
2
3
4
6
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents