7 APPLICATION INSTRUCTIONS
7.8 String Processing Instructions
681
7
Converting Unicode character string to Shift JIS character string
WS2SJIS(P)
These instructions convert a Unicode character string to a Shift JIS character string.
■Execution condition
■Description, range, data type
■Applicable devices
Ladder ST
ENO:=WS2SJIS(EN,s,d);
ENO:=WS2SJISP(EN,s,d);
FBD/LD
Instruction Execution condition
WS2SJIS
WS2SJISP
Operand Description Range Data type Data type (label)
(s) Start device containing the character string to be converted Unicode string ANYSTRING_DOUBLE
(d) Start device for storing the converted character string String ANYSTRING_SINGLE
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB,
FX, FY
J\ T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
U\G, J\,
U3E\(H)G
Z LT, LST,
LC
LZ K, H E $
(s)
(d)
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)