Converting Word (Unsigned)/16-Bit String, Double Word (Unsigned)/32-Bit String Type To String Type - Mitsubishi Electric MELSEC-Q/L Programming Manual

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

Advertisement

Converting word (unsigned)/16-bit string, double word
(unsigned)/32-bit string type to string type
WORD_TO_STR(_E), DWORD_TO_STR(_E)
High
Basic
Process
Redundant Universal
performance
Structured ladder/FBD
WORD_TO_STR_E
EN
ENO
s
d
The following function(s) can go in the dotted squares.
WWORD_TO_STR, ORD_TO_STR_E, DWORD_TO_STR, DWORD_TO_STR_E
■Argument
Input/output
Name
argument
Input argument
EN
s(_WORD, _DWORD)
Output argument
ENO
d
Processing details
■Operation processing
• WORD_TO_STR, WORD_TO_STR_E
Converts word (unsigned)/16-bit string type data input to (s) into string type data, and outputs the operation result from (d).
s
0
H
1567
H
Word (unsigned)/16-bit string type
When SM701 (signal for switching the number of output characters) is OFF, "00H" is stored to the end of the character string.
• DWORD_TO_STR, DWORD_TO_STR_E
Converts double word (unsigned)/32-bit string type data input to (s) into string type data, and outputs the operation result from
(d).
s
0
H
12345678
H
Double word (unsigned)/32-bit string type
When SM701 (signal for switching the number of output characters) is OFF, "00H" is stored to the end of the character string.
LCPU
ST
ENO:=
(EN, s, d);
WORD_TO_STR_E
Description
Executing condition (TRUE: Execution, FALSE:
Stop)
Input
Execution result (TRUE: Normal, FALSE: Error)
Output
d
' 0 '
' 1567 '
String type
d
' 0 '
' 12345678 '
String type
Data type
Bit
Word (unsigned)/16-bit string,
Double word (unsigned)/32-bit string
Bit
String(4)/(8)
5 APPLICATION FUNCTIONS
5.1 Type Conversion Functions
5
75

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents