Converting Decimal String Data To 16-Bit Binary Data - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Converting decimal string data to 16-bit binary data

VAL(P)(_U)
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
These instructions convert character strings to 16-bit binary data.
Ladder
(s)
(d1) (d2)
FBD/LD
EN
ENO
s
d1
d2
■Execution condition
Instruction
VAL
VAL_U
VALP
VALP_U
Setting data
■Description, range, data type
Operand
Description
(s)
String data to be converted to binary data or
the start device where the string data is stored
(d1)
VAL(P)
Start device for storing the number of binary
digits after conversion
VAL(P)_U
(d2)
VAL(P)
Device for storing the binary data after
conversion
VAL(P)_U
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L,
J\
SM, F, B, SB,
FX, FY
(s)
(d1)
(d2)
RnSFCPU RnSFCPU
(Standard)
(Safety)
Execution condition
Word
T, ST, C, D, W,
U\G, J\,
SD, SW, FD, R,
U3E\(H)G
ZR, RD
ST
ENO:=VAL(EN,s,d1,d2);
ENO:=VALP(EN,s,d1,d2);
Range
Data type
String
16-bit signed binary
16-bit unsigned binary
16-bit signed binary
16-bit unsigned binary
Bit
Bit
Double word Indirect
Z
LT, LST,
LZ
LC
ENO:=VAL_U(EN,s,d1,d2);
ENO:=VALP_U(EN,s,d1,d2);
Data type (label)
ANYSTRING_SINGLE
ANY16_S_ARRAY
(Number of elements: 2)
ANY16_U_ARRAY
(Number of elements: 2)
ANY16_S
ANY16_U
BOOL
BOOL
Constant
specification
K, H E
$
6 BASIC INSTRUCTIONS
6.6 Data Conversion Instructions
6
Others
457

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents