![Mitsubishi Electric MELSEC iQ-F FX5 Скачать руководство пользователя страница 928](http://html.mh-extra.com/html/mitsubishi-electric/melsec-iq-f-fx5/melsec-iq-f-fx5_programming-manual_239114928.webp)
926
18 TYPE CONVERSION FUNCTIONS
18.24 Converting INT to STRING
18.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, FBD/LD
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(IN)
Input
Input variable
INT
ENO
Output status (TRUE: Normal, FALSE: Abnormal)
Output variable
BOOL
d(INT_TO_STRING(_E))
Output
Output variable
STRING(6)
(1): "00H" is stored when "SM701" (output character number selector) is off.
s
d
EN
ENO
d
s
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
+1
+2
+3
+0
High-order byte
Low-order byte
(1)
(s)
(d)
INT
31H (1)
-123
20H (SP)
33H (3)
32H (2)
00H
20H (SP)
2DH (-)
+1
+2
+3
+0
High-order byte
Low-order byte
(s)
(d)
Содержание MELSEC iQ-F FX5
Страница 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Страница 2: ......
Страница 17: ...15 CONTENTS ...
Страница 24: ...22 MEMO ...
Страница 25: ...23 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW 2 PRECAUTIONS ON PROGRAMMING ...
Страница 126: ...124 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 132: ...130 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 140: ...138 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 191: ...7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions 189 7 Operation error There is no operation error ...
Страница 202: ...200 7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions Operation error There is no operation error ...
Страница 278: ...276 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 280: ...278 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 915: ...18 TYPE CONVERSION FUNCTIONS 18 13 Converting DWORD to WORD 913 18 Operation error There is no operation error ...
Страница 917: ...18 TYPE CONVERSION FUNCTIONS 18 14 Converting DWORD to INT 915 18 Operation error There is no operation error ...
Страница 932: ...930 18 TYPE CONVERSION FUNCTIONS 18 26 Converting DINT to WORD Operation error There is no operation error ...
Страница 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Страница 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Страница 1107: ...I 1105 MEMO ...
Страница 1111: ......