YASKAWA DX100 Operator's Manual page 553

For material handling, press tending, cutting, and other applications
Hide thumbs Also See for DX100:
Table of Contents

Advertisement

DX100
ASC
Function
Additional
Item
Example
CHR$
Function
Additional
Item
Example
MID$
Function
Additional
Item
Example
LEN
Function
Additional
Item
Example
CAT$
Function
Additional
Item
Example
11
Table of Basic Instructions
11.5 Operating Instructions
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"
Combines the character string (ASCII) of Data2 and Data3, and stores the
result in Data1.
Format:CAT$<Data1><Data2><Data3>
Data1
S <variable number>
Data2
Character string,
S <variable number>
Data3
Character string,
S <variable number>
CAT$ S000 "ABC" "DEF"
11-15
553 of 554

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents