EasyManua.ls Logo

FATEK FBs-CBE - Page 269

FATEK FBs-CBE
348 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Advanced Function Instruction
7-105
FUN122 P
MXOR
MATRIX EXCLUSIVE ORXOR
FUN122 P
MXOR
Ma :
EN Operation control
Ladder symbol
122P.MXOR
Mb :
L :
Md :
Ma : Starting register of source matrix a
Mb : Starting register of source matrix b
Md : Starting register of destination matrix
L : Length of matrix (Ma, Mb and Md)
Ma, Mb, Md may combine with V, Z, P0~P9 to serve
indirect address application
WX WY WM WS TMR CTR HR IR OR SR ROR DR K XR
Range
Ope-
rand
WX0
WX240
WY0
WY240
WM0
WM1896
WS0
WS984
T0
T255
C0
C255
R0
R3839
R3840
R3903
R3904
R3967
R3968
R4167
R5000
R8071
D0
D4095
2
256
VZ
P0~P9
Ma
Mb
Md * *
L *
z When operation control "EN" = 1 or "EN" ( P instruction) has a
transition from 0 to 1, this instruction will performs a logic XOR (if
the 2 bits are different, then the result will be 1, otherwise it will be
0)between 2 source matrixes with a length of L, Ma and Mb. The
result will then be stored back into the destination matrix Md, which
also has a length of L. For example the XOR operation is done by
bits with the same bit numbers - for example, if Ma
0
= 0, Mb
0
= 1,
then Md
0
= 1; if Ma
1
= 1, Mb
1
= 1, then Md
1
= 0; etc, right up until
XOR reaches Ma
16L-1
and Mb
16L-1
.
L
Ma Mb Md
XOR
X0
EN
Ma :
Mb :
R 20
L : 5
R 10
R 0
Md :
122P.MXOR
z In the program at left, when X0 goes from 01, will
perform a XOR operation between matrix Ma, comprised
by R0 to R4, and matrix Mb, comprised by R10 to R14.
The results will then be stored in destination matrix Md,
comprised by R20 to R24. The results are shown at right
in the diagram below.
Ma15
Ma
Ma0
Mb
15
Mb
Mb0
Md15
Md
Md0
R0 0 0 0 0 0 0 0 0 0 0 0 0 00 0 0 R10 1111111111111111 R20 111 1 1 1 1 1 1 1 1 11111
R1 1 1 1 1 1 1 1 1 0 0 0 0 00 0 0 R11 0000000011111111 R21 111 1 1 1 1 1 1 1 1 11111
R2 0 0 0 0 0 0 0 0 1 1 1 1 11 1 1 R12 0000000011111111 R22 000 0 0 0 0 0 0 0 0 00000
R3 0 0 0 0 0 0 0 0 0 0 0 0 00 0 0 R13 0000000000000000 R23 000 0 0 0 0 0 0 0 0 00000
R4 1 1 1 1 1 1 1 1 1 1 1 1 11 1 1 R14 1111111111111111 R24 000 0 0 0 0 0 0 0 0 00000
Ma79
Ma64
Mb79
Mb64
Md79
Md64
Before execution After execution

Other manuals for FATEK FBs-CBE

Related product manuals