Mitsubishi Electric MELSEC FX3U Programming Manual page 653

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
5) [
+1,
D
D
2
For the character string located in
the sign and the first number other than "0" are ignored in the conversion to 32-bit binary data.
-
6 5
Ignored
0
0 0 0
Ignored
Sign
Related instructions
Instruction
ESTR(FNC116)
EVAL(FNC117)
STR(FNC200)
Caution
Store sign data, "space (20H)" or "- (2DH)", must be stored in the 1st byte (lower order 8 bits of the head
device set in
S
Only the ASCII code 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
If "- (2DH)" is stored in the 2nd byte or later, an operation error (error code: K6706) occurs.
Errors
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is
stored in D8067.
• When the number of characters of the character string to be converted (
following ranges (error code: K6706)
16-bit operation
32-bit operation
• When the number of characters after the decimal point of the character string to be converted (
later) is outside the following ranges (error code: K6706)
16-bit operation
32-bit operation
• When the relationship between the number of all characters in the character string to be converted (
and later) and the number of characters after the decimal point does not satisfy the following (error code:
K6706)
(Number of all characters -3) ≥ Number of characters after the decimal point
• When the sign is set to any ASCII code other than "space" (20H) and "-" (2DH) (error code: K6706)
• When a digit of a number is set to any ASCII code other than "0" (30H) to "9" (39H) or a decimal point "."
(2EH) (error code: K6706)
• When the decimal point "." (2EH) is set two or more times in the character string to be converted (
and later) (error code: K6706)
] stores 16-bit data (bin) converted from a character string with the decimal point ignored.
2
S
Total number of digits
Number of digits after
4
3
2 1
the decimal point
32-bit binary data
Total number of digits
Number of digits after
5
4
3
2 1
the decimal point
32-bit binary data
Converts binary floating point data into a character string (ASCII code) with a specified number
of digits.
Converts a character string (ASCII code) into binary floating point data.
Converts binary data into a character string (ASCII code).
).
Setting range
2 to 8
2 to 13
Setting range
0 to 5
0 to 10
26 Character String Control – FNC200 to FNC209
26.2 FNC201 – VAL / Character String to BIN Conversion
and later, the "space" (20H) and "0" (30H) characters between
12
2
-654321
11
8
54321
Description
.
S
and later) is outside the
S
S
S
651
21
22
23
24
25
26
27
and
28
S
29
30

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents