7 BASIC INSTRUCTIONS
7.5 Data Conversion Instructions
323
7
Ex.
When "20H" exists between the sign and the first non-zero number (a signed value is specified)
Ex.
When "30H" exists between the sign and the first non-zero number
Precautions
• Store sign data, "space (20H)" or "- (2DH)" in the 1st byte (low-order 8 bits of the head device set in (s)). Only the ASCII
data "0 (30H)" to "9 (39H)", "space (20H)" and "decimal point (2EH)" can be stored from the 2nd byte to the "00H" at the
end of the character string in (s). If "- (2DH)" is stored in the 2nd byte or later, an operation error occurs.
Operation error
Error code
(SD0/SD8067)
Description
2820H
The device specified by (d1) exceeds the corresponding device range.
When "00H" is not set in the corresponding device range after the device specified in (s).
3401H
The number of characters of the character string specified by (s) is other than 2 to 13 characters.
The number of characters of the decimal part of the character string specified by (s) is other than 0 to 10 characters.
The relationship between the total number of characters specified by (s) and the number of characters of the decimal part is other than
that described below.
Total number of characters - 3
Number of characters in the decimal part
An ASCII code other than 20H, 2DH is set in the sign.
Two or more decimal points are set.
The converted binary value exceeds the range that can be converted by each instruction.
Signed operation: -2147483648 to +2147483647, unsigned operation: 0 to 4294967295
6 5 4 3 .
2 1
12
2
6 5 4 3 2 1
-
-
Total number of digits
Number of digits of the decimal part
BIN32
Ignore
0
0 0 0 5 4 3 2 1
11
8
.
5 4 3 2 1
Total number of digits
Number of digits of the decimal part
BIN32
Ignore
Sign
Содержание 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: ......