7 Applied Instructions
7.20 Character String Control
634
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
Related instruction
Error
An operation error is caused in the following cases. The error flag M8067 turns ON, and the error code is
stored in D8067.
1) When the number of all digits stored in is outside the following range (error code: K6706).
2) When the number of digits of the decimal part stored in + 1 is outside the following range (error
code: K6706).
3) When the relationship between the number of all digits stored in and the number of digits of the
decimal part stored in + 1 does not satisfy the following (error code: K6706).
(Number of all digits - 3) ≥ number of digits of decimal part
4) When the number of all digits stored in including the digit for sign and the digit for decimal point is
smaller than the number of digits of the binary data stored in (error code: K6706).
5) When the devices and later storing a character string exceed the corresponding device range (error
code: K6707).
Instruction Description
DESTR Converts binary floating point data into a character string (ASCII codes) with a specified number of digits.
DEVAL Converts a character string (ASCII codes) into binary floating point data.
VAL Converts a character string (ASCII codes) into binary data.
Setting range
16-bit operation 2 to 8
32-bit operation 2 to 13
Setting range
16-bit operation 0 to 5
32-bit operation 0 to 10