Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
26 Applied Instructions (Character String Control)
26.2 VAL / Character String to BIN Conversion
626
FXCPU Structured Programming Manual
[Basic & Applied 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 characters of the character string to be converted (device specified by and
later) is outside the following ranges.
(Error code: K6706)
2) When the number of characters after the decimal point of the character string to be converted (device
specified by and later) is outside the following ranges.
(Error code: K6706)
3) When the relationship between the number of all characters in the character string to be converted
(device specified by 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
4) When the sign is set to any ASCII code other than "space" (20H) and "-" (2DH).
(Error code: K6706)
5) 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)
6) When the decimal point "." (2EH) is set two or more times in the character string to be converted (device
specified by and later).
(Error code: K6706)
7) When the binary data acquired by conversion is outside the following ranges. (Error code: K6706)
8) When "00H" is not present in the location from the device specified by to the final device number.
(Error code: K6706)
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
Setting range
16-bit operation -32768 to 32767
32-bit operation -2,147,483,648 to 2,147,483,647