Converting Bcd Type To String Type - Mitsubishi Electric MELSEC-Q/L Programming Manual

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

Advertisement

Converting BCD type to string type

BCD_TO_STR(_E)
High
Basic
Process
Redundant Universal
performance
Structured ladder/FBD
BCD_TO_STR_E
EN
ENO
s
d
The following function(s) can go in the dotted squares.
BCD_TO_STR, BCD_TO_STR_E
■Argument
Input/output
Name
argument
Input argument
EN
s(_BCD)
Output argument
ENO
d
Processing details
■Operation processing
• Converts BCD type data input to (s) into string type data, and outputs the operation result from (d).
When word (unsigned)/16-bit string type is specified for (s).
s
9999
H
Word (unsigned)/16-bit string type
When double word (unsigned)/32-bit string type is specified for (s).
s
99999999
H
Double word(unsigned)/32-bit string type
• Word (unsigned)/16-bit string type, double word (unsigned)/32-bit string type data can be specified for (d). Bit type cannot
be specified.
• When SM701 (signal for switching the number of output characters) is OFF, "00H" is stored to the end of the character
string.
■Operation result
• Function without EN/ENO
An operation is executed and the operation value is output from (d).
• 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.
LCPU
ST
ENO:=
(EN, s, d);
BCD_TO_STR_E
Description
Executing condition (TRUE: Execution, FALSE:
Stop)
Input
Execution result (TRUE: Normal, FALSE: Error)
Output
d
"9999"
String type
d
"99999999"
String type
ENO
TRUE
*1
FALSE
Data type
Bit
ANY_BIT
Bit
String (8)
(d)
Operation output value
Undefined value
5 APPLICATION FUNCTIONS
5.1 Type Conversion Functions
5
99

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents