EasyManua.ls Logo

Mitsubishi MELSEC Q Series

Mitsubishi MELSEC Q Series
268 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
5-98
5.1 Type Conversion Functions
5.1.32 String type
→
BCD type conversion
STR_TO_BCD(_E)
5.1.32 String type → BCD type conversion
STR_TO_BCD(_E)
Function
Operation processing
(1) Converts string type data input to into BCD type data, and outputs the operation result
from .
(2) When '20
H' (space) exists in the character string, the conversion is executed ignoring '20H'.
(3) String type data can contain up to 50 characters.
'20
H' (space) and '30H' (0) in the character string are counted as one character.
(4) The value to be input to is string type data within the following range.
ASCII code: '30
H' to '39H', '45H', '2BH', '2DH', '2EH', '20H', and '00H'
STR_TO_BCD(_E)
_E: With EN/ENO
indicates any of the following
functions.
STR_TO_BCD STR_TO_ BCD _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
Universal
UD
High
Performance
EN ENO
ds
STR_TO_BCD_E
(EN, s, d);ENO:=
Structured ladder
ST
STR_TO_BCD_E
s
d
String type
'9999'
Word (unsigned)/16-bit string type
9999
H
s

Table of Contents

Other manuals for Mitsubishi MELSEC Q Series

Related product manuals