Advanced Function Instruction
7-91
FUN107
D
P
T_FIL
TABLE FILL
FUN107
D
P
T_FIL
Rs : Source data to fill, can be a constant or a register
Td : Starting register of destination table
L :Table length
Rs, Td 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
V
、
Z
P0~P9
Ts
○
○
○
○
○
○
○
○
○
○
○
○
○
○
Td
○
○
○
○
○
○
○
○
*
○
*
○
○
L
○
○
*
○
2~256
z
When fill control "EN" = 1 or "EN
↑
" (
P
instruction) has a transition from 0 to 1, the Rs data will be filled into all
the registers of the table Td.
z
This instruction is mainly used for clearing the table (fill 0) or unifying the table (filling in the same values). It
should be used with the P instruction.
X0
EN
T
S
:
Td :
L :
107P.T_FIL
5555
R 0
10
z
The instruction at left will fill 5555 into the whole table
Td. The results are as shown in the diagram below.
Td Td
R0
1 5 4 7
R0
5 5 5 5
R1
2 3 1 4
R1
5 5 5 5
R2
7 7 2 5
R2
5 5 5 5
Rs
R3
0 0 1 3
R3
5 5 5 5
5 5 5 5
R4
5 2 4 7
R4
5 5 5 5
R5
1 9 2 5
R5
5 5 5 5
R6
6 7 4 4
R6
5 5 5 5
R7
5 3 1 9
X0
=
Ö
R7
5 5 5 5
R8
9 7 8 8
R8
5 5 5 5
R9
2 7 9 6
R9
5 5 5 5
Before execution
After execution
Содержание FBs-CBE
Страница 78: ...MEMO ...
Страница 111: ...4 6 X0 X1 Node A Y0 Y1 Node B differential down Incerse differential up t Scan time Inverse t t ...
Страница 141: ...Basic Function Instruction 6 16 FUN 2 SKP SKIP START FUN 2 SKP Y2 Y1 Y0 T201 10S X0 X1 X2 0 10 0 ...
Страница 305: ...MEMO ...
Страница 348: ...MEMO ...