5-92
5.1 Type Conversion Functions
5.1.30
String type
→
word (unsigned)/16-bit string, double word (unsigned)/32-bit string type conversion
STR_TO_WORD(_E), STR_TO_DWORD(_E)
5.1.30 String type → word (unsigned)/16-bit string, double word
(unsigned)/32-bit string type conversion
STR_TO_WORD(_E), STR_TO_DWORD(_E)
Function
Operation processing
(1) STR_TO_WORD, STR_TO_WORD_E
Converts string type data input to into word (unsigned)/16-bit string type data, and
outputs the operation result from .
STR_TO_WORD(_E)
STR_TO_DWORD(_E)
_E: With EN/ENO
indicates any of the following
functions.
STR_TO_WORD STR_TO_WORD_E
STR_TO_DWORD STR_TO_DWORD_E
Input argument, EN:
Executing condition (TRUE: Execution, FALSE: Stop) :Bit
s:
Input :String
Output argument, ENO:
Output status (TRUE: Normal, FALSE: Error) :Bit
d:
Output :Word (unsigned)/16-bit string, double word
(unsigned)/32-bit string
Basic
High
Performance
EN ENO
ds
STR_TO_WORD_E
(EN, s, d);ENO:=
Structured ladder
ST
STR_TO_WORD_E
s
d
String type
' 12 '
'0'
Word (unsigned)/16-bit string type
12
0