217
4
4 Instructions 4.6.1 Matrix Operations
BK-: Matrix subtraction operation
◆
Overview
The BK- instruction subtracts the BIN number stored at one source address from another in matrix format.
BK-
S1 S2 D n
Matrix
subtraction
operation
Applicable model:
H3U
S1
Source
address
Start number of elements that store the data
subjected to a subtraction operation
16-bit instruction (9
steps)
BK-: Continuous
execution
BK-P: Pulse
execution
32-bit instruction (17
steps)
DBK-: Continuous
execution
DBK-P: Pulse
execution
S2
Source
address
Constant subjected to a subtraction operation,
or start number of elements that store the data
subjected to a subtraction operation
D
Destination
address
Start number of elements that store the operation
result
n Data count Number of data entries in an operation
◆
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
n 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
The n data entries (16- or 32-bit) from head address [S2] are subtracted from the n data entries (16- or 32-
bit) from head address [S1]. The result is stored in n units (16- or 32-bit) from head address [D].
[S1+0]
[S1+1]
[S1+n-2]
[S1+n-1]
...
K1111
K1111
K1111
K1111
...
[D+0]
[D+1]
[D+n-2]
[D+n-1]
...
K0
K3333
K-2222
K-3333
...
[S2+0]
[S2+1]
[S2+n-2]
[S2+n-1]
...
K1111
K-2222
K3333
K4444
...
A signed constant (16- or 32-bit) can be directly set in [S2].
[S1+0]
[S1+1]
[S1+n-2]
[S1+n-1]
...
K1111
K1111
K1111
K1111
...
K-2222
[D+0]
[D+1]
[D+n-2]
[D+n-1]
...
K3333
K3333
K3333
K3333
...