EasyManua.ls Logo

FATEK FBs-CB2 - BIT WRITE (FUN 41 BITWR)

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-16
FUN 41 D P
BITWR
BIT WRITE
FUN 41 D P
BITWR
D : Register for bit write
N : The bit number of the D register to be
written.
D, N 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
0 0
or
15 31
VZ
P0~P9
D * *
N
z When write control "EN" = 1 or "EN" ( P instruction) changes from 0 to 1, will write the write bit (INB) into
the Nth bit of register D.
z When the operand is 16 bit, the effective range of N is 0~15. For 32 bit ( D instruction) operand it is 0~31. N
beyond this range, will set the N value error flag "ERR" to 1, and do not carry out this instruction.
EN
41P.BITWR
D : R 0 ERR
X0
3
N :
X1
INB
z The instruction at left writes the status of the write bit
INB into B3 of R0. Assuming
X1 = 1, the result will be as follows:
X1 1
N3─────────────
Ø
X0
D
R0 1
B15 B3 B0
Bits other than B3 remain unchanged

Other manuals for FATEK FBs-CB2

Related product manuals