YASKAWA NX100 Operator's Manual page 475

Hide thumbs Also See for NX100:
Table of Contents

Advertisement

149235-1CD
Function
ASC
Additional
Item
Example
Function
CHR$
Additional
Item
Example
Function
MID$
Additional
Item
Example
Function
LEN
Additional
Item
Example
Obtains the character code of the first letter of the character string
(ASCII) of Data2, and stores the result in Data1.
Format:ASC<Data1><Data2>
Data1
B <variable number>, I <variable
number>, D <variable number>
Data2
Character string, S <variable
number>
ASC B000 "ABC"
Obtains the character (ASCII) with the character code of Data2,
and stores the result in Data1.
Format:CHR$<Data1><Data2>
Data1
S <variable number>
Data2
Constant, B <variable number>
CHR$ S000 65
Obtains the character string (ASCII) of any length (Data 3, 4) from
the character string (ASCII) of Data2, and stores the result in
Data1.
Format:MID$<Data1><Data2><Data3><Data4>
Data1
S <variable number>
Data2
Character string, S <variable
number>
Data3
Constant, B <variable number>, I
<variable number>, D <variable
number>
Data4
Constant, B <variable number>, I
<variable number>, D <variable
number>
MID$ S000 "123ABC456" 4 3
Obtains the total number of bytes of the character string (ASCII) of
Data2, and stores the result in Data1.
Format:LEN<Data1><Data2>
Data1
B <variable number>, I <variable
number>, D <variable number>
Data2
Character string, S <variable
number>
LEN B000 "ABCDEF"
10-20
10 Table of Basic Instructions
10.5 Operating Instructions
RE-CSO-A031
475 of 493

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents