Download Print this page

Omron NS Reference Manual page 53

Hide thumbs Also See for NS:

Advertisement

Section2 Functions
NS series Macro Reference
STRCPY(W)
Applicable versions
Format
Function
Return Value
Example
Reference
'null' matches for "00" in ASCII code, and "0000" in Unicode.
Care must be taken to set string to $W32767 because copy is performed including null.
When executing STRCPY(W), string data and null may not be executed $W32767
because null is copied. (If data is exceeded $W32767, communication error occurs).
STRM2W
Converts character string from ASCII code to Unicode
Applicable versions
Format
Function
Return Value
Example
Copies Character string
System version 2 or higher
STRCPY (D,S)
STRCPYW(D,S)
Copy character string from D to S
Copy is performed including null.
None
STRCPYW ($W0",ABC");
'Set "ABC" to $W0 to $W2
$W100=H6400;STRCPY($W110,$W100);
'Set "d" to $W110
System version 2 or higher
STRM2W (D,S)
Convert character string specified in "S" from ASCII code to Unicode and copy to
"D".
Copy is performed including null.
None
STRM2W($W0", ABC");
'Convert "ABC" to Unicode, and copy to $W0 to $W2
;ASCII code
;Uni code
33

Advertisement

loading

This manual is also suitable for:

Ns-series