Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

The following example is for when In is
LD
abc[0]
In
Precautions for Correct Use
• NULL characters at the end of In are not converted. They are also not counted for the number of con-
verted elements.
• If the In text string contains only the NULL character, the value of Out will be 0 and SJISCode[] will
not change.
• The elements of SJISCode[] past the number of elements specified in Out do not change. For exam-
ple, if the number of converted elements is 5, SJISCode[5] and later elements do not change.
• An error occurs in the following cases. ENO will be FALSE, and Out and SJISCode[] will not change.
• The number of elements in the conversion result exceeds the size of the output parameter that is
connected to SJISCode[].
• The contents of In includes characters that cannot be converted.
Version Information
A CPU Unit with unit version 1.01 or later and Sysmac Studio version 1.02 or higher are required
to use this instruction.

NY-series Instructions Reference Manual (W560)

.
ST
def:=UTF8ToSJIS(
UTF8ToSJIS
EN
ENO
def
In
SJISCode
abc[0]
SJISCode[0]=abc[0]
BYTE#16#82
SJISCode[1]=abc[1]
BYTE#16#A0
Out=def
UINT#2
2 Instruction Descriptions
, abc[0]);
2
2-423

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents