Mitsubishi Electric MELSEC-Q/L Programming Manual page 96

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

• When double word (unsigned)/32-bit string type is specified for output argument.
Converts string type 8-character-string data input to (s) into BCD type data, and outputs the operation result from (d).
s
" 99999999 "
String type
When '20H' (space) exists in the character string, the conversion is executed ignoring '20H'.
'20H' (space) and '30H' (0) in the character string are counted as one character.
The value to be input to (s) is string type data within the following range.
ASCII code: '30H' to '39H', '20H', and '00H'
• Word (unsigned)/16-bit string, double word (unsigned)/32-bit string type can be specified for (d). Bit type cannot be
specified.
Output from (d) cannot be used with connecting to input of function and operator in double word (unsigned)/
32-bit string type. In this case, use the DDABCD instruction.
■Operation result
• Function without EN/ENO
The following table shows the operation results.
Operation result
No operation error
Operation error
• Function with EN/ENO
The following table shows the executing conditions and operation results.
EN
TRUE (Operation execution)
FALSE (Operation stop)
*1 When FALSE is output from ENO, the data output from (d) is undefined. In this case, create a program so that the data output from (d) is
not used.
Operation error
• An operation error occurs in the following cases.
Error
Description
code
4100
The input character string is outside the range of ASCII code '30H' to '39H',
"20H", and "00H".
5 APPLICATION FUNCTIONS
94
5.1 Type Conversion Functions
d
99999999
H
Double word (unsigned)/32-bit string type
ENO
TRUE (No operation error)
*1
FALSE
(d)
Operation output value
Undefined value
(d)
Operation output value
Undefined value
Q00J/
QnH
Q00/
Q01
QnPH
QnPRH
QnU
LCPU

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents