262
4
4 Instructions4.6.4 Matrix Rotation and Shift
MIDW: String replacement at any position
◆
Overview
The MIDW instruction replaces one string with another contained in a designated string.
MIDW S1 D S2
String replacement at any
position
Applicable model:
H3U
S1 Source data
Start number of elements that store the string that will
replace another string
16-bit instruction (7
steps)
MIDW: Continuous
execution
MIDWP: Pulse
execution
D
Replacement
result
Start number of elements that store the string after
replacement
S2
Replacement
position
Start number of elements that indicate the start position of
replacement and the number of replaced characters
S2: Initial character to be replaced
S2+1: Number of replaced characters
◆
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
D 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
Note: The elements in gray background are supported.
◆
Function