EasyManua.ls Logo

FATEK FBs-CB2 - BIT MOVE (FUN 42 BITMV)

FATEK FBs-CB2
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-17
FUN 42 D P
BITMV
BIT MOVE
FUN 42 D P
BITMV
S : Source data to be moved
Ns : Assign Ns bit within S as source bit
D : Destination register to be moved
Nd : Assign Nd bit within D as target bit
S, Ns, D, Nd 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
16/32-bit
+/- number
VZ
P0~P9
S
Ns 031
D * *
Nd 031
z When move control "EN" = 1 or "EN" ( P instruction) changes from 0 to 1, will move the bit status specified
by Ns within S into the bit specified by Nd within D.
z When the operand is 16 bit, the effective range of N is 0~15. For 32 bit ( D instruction) operand the effective
range is 0~31. N beyond this range will set the N value error flag "ERR" to 1, and do not carry out this
instruction.
X0
EN
S :
Ns :
11
WX 0
42P.BITMV
ERR
D :
Nd :
R 0
7
z The instruction at left moves the status of B11 (X11)
within S into the B7 position within D. Except bit B7,
other bits within D does not change.
X15 X11 X0
S
WX0 1
Ns11─────
Ø
X0
Nd7 ────────
D R0 1
B15 B7 B0

Other manuals for FATEK FBs-CB2

Related product manuals