String Type → Word (Signed), Double Word (Signed) Type Conversion - Mitsubishi Melsec-Q Series Structured Programming Manual

Application functions, qcpu
Hide thumbs Also See for Melsec-Q Series:
Table of Contents

Advertisement

5.1.28
String type → word (signed), double word (signed) type
conversion
STR_TO_INT(_E)
STR_TO_DINT(_E)
Structured ladder
STR_TO_INT_E
EN
ENO
s
d
Input argument,
EN:
Executing condition (TRUE: Execution, FALSE: Stop)
s:
Input
Output argument,
ENO:
Output status (TRUE: Normal, FALSE: Error)
d:
Output
Function
Operation processing
(1) STRING_TO_INT, STRING_TO_INT_E
(a) Converts string type data input to
operation result from
String 1st word
2nd word
3rd word
4th word
(b) The value to be input to
ASCII code: '30
String type data: '−32768 to 32767'
5.1.28 String type
STR_TO_INT(_E), STR_TO_DINT(_E)
ST
ENO:=
(EN, s, d);
STR_TO_INT_E
into word (signed) type data, and outputs the
s
.
d
High-order byte
Low-order byte
ASCII code of ten-thousands place
ASCII code of hundreds place ASCII code of thousands place
ASCII code of units place ASCII code of tens place
00
(Indicates the end of the character string.)
H
is string type data within the following range.
s
' to '39
', '20
', '2D
', and '00
H
H
H
H
word (signed), double word (signed) type conversion
STR_TO_INT(_E), STR_TO_DINT(_E)
_E: With EN/ENO
indicates any of the following
functions.
STR_TO_INT
STR_TO_DINT
:Bit
:String
:Bit
:Word (signed), double word (signed)
Sign data
Word (signed) type
'
H
5.1 Type Conversion Functions
High
Performance
Universal
UD
STR_TO_INT_E
STR_TO_DINT_E
5
5-85

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q-kp-ok-e13jw08

Table of Contents