Advanced Function Instruction
7 -8 7
FUN103
D
P
BT_M
BLOCK TABLE MOVE
FUN103
D
P
BT_M
Ts :Starting register for source table
Td : Starting register for destination table
L: Lengths of source and destination tables
Ts, Rd may combine with V, Z, P0~P9 to serve indire
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
V
、
Z
P0~P9
Ts
○
○
○
○
○
○
○
○
○
○
○
○
○
Td
○
○
○
○
○
○
○
○
*
○
*
○
○
L
○
○
*
○
○
z
In this instruction the source table and destination table are the same length. When this instruction was
executed all the data in the Ts table is completely copied to Td. No pointer is involved in this instruction.
z
When move control "EN" = 1 or "EN
↑
" (
P
instruction) have a transition from 0 to 1, all the data from source
table Ts (length L) is copied to the destination table Td, which is the same length.
z
One table is completely copied every time this instruction is executed, so if the table length is long, it will be
very time consuming. In practice, P modifier should be used to avoid time waste caused by each scan
repeating the same movement action.
X0
EN
T
S
: R 0
Td : R 10
L :
10
103P.BT_M
z
The diagram at left below is the status before execution. When
X0 from 0
→
1, the content of R0~R9 in Ts table will copy to
R10~R19.
Ts
Td
Td
R0
0 0 0 0
──→
R10
0 0 0 0
R10
0 0 0 0
R1
1 1 1 1
──→
R11
0 0 0 0
R11
1 1 1 1
R2
2 2 2 2
──→
R12
0 0 0 0
R12
2 2 2 2
R3
3 3 3 3
──→
R13
0 0 0 0
R13
3 3 3 3
R4
4 4 4 4
──→
R14
0 0 0 0
R14
4 4 4 4
R5
5 5 5 5
──→
R15
0 0 0 0
R15
5 5 5 5
R6
6 6 6 6
──→
R16
0 0 0 0
R16
6 6 6 6
R7
7 7 7 7
──→
R17
0 0 0 0
X0
=
Ö
R17
7 7 7 7
R8
8 8 8 8
──→
R18
0 0 0 0
R18
8 8 8 8
R9
9 9 9 9
──→
R19
0 0 0 0
R19
9 9 9 9
Before executed
Execute
result
Содержание 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 ...