8.3 Character String Instructions
8.3.1 [F253 SSET] (Character Constant → ASCII Code Conversion:
With Storage Area Size)
Instruction format
R0
Operands
Items
Settings
S1
Storage area size (permissible range: K1 to K32767)
S2
Character constant to be converted (permissible range: 0 to 256 characters)
D
Starting device address of the destination
Devices that can be specified (indicated by ●)
Opera
WX WY WR WL
nds
S1
●
●
●
S2
D
●
●
(*1): A character constant cannot be specified.
Outline of operation
• The storage area size specified in [S1] is stored in [D].
• The character constant specified in [S2] is converted into ASCII code. The number of
characters (1 word) is stored in [D+1], and ASCII converted character data is stored in the
subsequent area, in ascending order from lower bytes.
• A character constant is bracketed in "" (double quotation marks).
• Character constants can be set from 0 to 256 characters.
• A string that consists of "" (double quotation marks) only is regarded as NULL characters.
• NULL(00) is not added to the end of characters during setting.
F253 SSET
SV
EV
DT
●
●
●
●
●
●
●
●
8.3 Character String Instructions
K11
"ABC1230DEF"
S1
S2
LD
FL
I
SWR SDT
●
●
●
●
DT0
D
Constant
Index
modifier
K
H
M
(*1)
●
●
●
●
●
8-19