237
4
4 Instructions 4.6.4 Matrix Rotation and Shift
STR: Conversion from BIN to string format
◆
Overview
The STR instruction converts BIN numbers into ASCII-encoded strings.
STR
S1 S2 D
Conversion from
BIN to string
format
Applicable model:
H3U
S1
Character
count
Start number of elements that store the total
number of characters contained in a string after
conversion
16-bit instruction (7
steps)
STR: Continuous
execution
STRP: Pulse
execution
32-bit instruction
(13 steps)
DSTR: Continuous
execution
DSTRP: Pulse
execution
S2
Converted
data
Number of the element that stores the BIN
number to be converted
D Output
Start number of elements that store the string
after conversion
◆
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
S1 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
S2 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
D X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.
◆
Function
1) 16-bit operation (STR and STRP)
●
A decimal point is inserted into the 16-bit BIN number in [S2] to convert it to a string. The position of
insertion is specied collectively by [S1] (which indicates the total number of characters) and [S1+1]
(which indicates the number of characters in the fractional part). The result is stored in elements from
head address [D].