EasyManuals Logo

Mitsubishi MELSEC iQ-F FX5 series User Manual

Mitsubishi MELSEC iQ-F FX5 series
888 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #718 background imageLoading...
Page #718 background image
716
15 TYPE CONVERSION FUNCTIONS
15.24 Converting INT to STRING
15.24 Converting INT to STRING
INT_TO_STRING(_E)
These functions convert INT type data to STRING type data.
Setting data
â– Descriptions, types, and data types
Processing details
â– Operation processing
• These functions convert the INT type data input to (s) to STRING type data and output from (d).
• A value input to (s) is the INT type data value.
• In "Sign data", 20H (space) is stored when the input value is positive, and 2DH (-) is stored when the input value is
negative.
• 20H (space) is stored in high-order digits when the number of significant figures is small.
Ex.
When "-123" is input
• 00H is stored at the end (4th word) of the character string when SM701 (output character number selector signal) is off.
Ladder diagram Structured text
[Without EN/ENO] [With EN/ENO] [Without EN/ENO]
d:=INT_TO_STRING(s);
[With EN/ENO]
d:=INT_TO_STRING_E(EN,ENO,s);
Argument Description Type Data type
EN Execution condition (TRUE: Execution, FALSE: Stop) Input variable BOOL
s Input Input variable INT
ENO Output status (TRUE: Normal, FALSE: Abnormal) Output variable BOOL
d Output Output variable STRING(6)
sd
EN ENO
ds
INT
ASCII code for hundreds place ASCII code for thousands place
ASCII code for ones place ASCII code for tens place
00H
ASCII code for ten-thousands place
Sign data
2nd word
3rd word
4th word
1st word of the character string
High-order byte Low-order byte
"00H" is stored when "SM701" (output character number selector) is off.
(s)
(d)
INT
31H (1)
-123
20H (space)
33H (3) 32H (2)
00H
20H (space) 2DH (-)
2nd word
3rd word
4th word
1st word of the character string
High-order byte Low-order byte
(s)
(d)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC iQ-F FX5 series and is the answer not in the manual?

Mitsubishi MELSEC iQ-F FX5 series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC iQ-F FX5 series
CategoryController
LanguageEnglish

Related product manuals