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

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

Advertisement

Converting string type to word (unsigned)/16-bit string, double
word (unsigned)/32-bit string type
STR_TO_WORD(_E), STR_TO_DWORD(_E)
High
Basic
Process
performance
Structured ladder/FBD
STR_TO_WORD_E
EN
ENO
s
The following function(s) can go in the dotted squares.
STR_TO_WORD, STR_TO_WORD_E, STR_TO_DWORD, STR_TO_DWORD_E
■Argument
Input/output
argument
Input argument
Output argument
Processing details
■Operation processing
• STR_TO_WORD, STR_TO_WORD_E
Converts string type data input to (s) into word (unsigned)/16-bit string type data, and outputs the operation result from (d).
s
"0000"
"0012"
String type
• STR_TO_DWORD, STR_TO_DWORD_E
Converts the string type data input to (s) into double word (unsigned)/32-bit string type data, and outputs the operation result
from (d).
s
"00000000"
"00000012"
String type
5 APPLICATION FUNCTIONS
88
5.1 Type Conversion Functions
LCPU
Redundant Universal
ST
ENO:=
STR_TO_WORD_E
d
Name
Description
EN
Executing condition (TRUE: Execution, FALSE:
Stop)
s(_STRING)
Input
ENO
Execution result (TRUE: Normal, FALSE: Error)
d
Output
Word (unsigned)/16-bit string type
Double word (unsigned)/32-bit string type
(EN, s, d);
d
0
H
12
H
d
0
H
12
H
Data type
Bit
String(4)/(8)
Bit
Word (unsigned)/16-bit string,
Double word (unsigned)/32-bit string

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents