Advanced Function Instruction
7 -1 2 4
FUN160
D
P
RW FR
READ/WRITE FILE REGISTER
FUN160
D
P
RW FR
Sa: Starting address of data register
Sb: Starting address of file register
Pr : Record pointer register
L : Quantity of register to form a record, 1~511
Sa operand can combine V
、
Z
、
P0~P9 for index
addressing.
WX WY
WM
WS TMR CTR HR
IR
OR
SR
ROR
DR
K
XR
FR
Range
Operand
WX0
∣
WX2
40
WY0
∣
WY240
WM0
∣
WM18
96
WS0
∣
WS984
T0
∣
T255
C0
∣
C255
R0
∣
R383
9
R384
0
∣
R390
3
R390
4
∣
R396
7
R3968
∣
R4167
R5000
∣
R8071
D0
∣
D4095
V
、
Z
P0
~
P9
F0
∣
F8191
Sa
○
○
○
○
○
○
○
○
○
○
○
○
○
Sb
○
Pr
○
○
○
○
○
○
○
○
*
○
*
○
L
○
○
*
○
1~511
Description
●
When operation control "EN"=1 or "EN
↑
"(
P
instruction) changes from 0
→
1,it will perform the read ("R/W"=1)
or write ("R/W"=0) file register operation. While reading, the content of data registers starting from Sa will be
overwritten by the content of file registers addressed by the base file register Sb and record pointer Pr; while
writing, the content of file registers addressed by the base file register Sb and record pointer Pr will be
overwritten by the content of data registers starting from Sa; L is the operation quantity or record size. The
access of file register adopts the concept of RECORD data structure to implement. For example, Sa=R0,
Sb=F0, L=10, the read/write details shown as below
Sb
Sa
R0 ~ R9
(L=10)
F0 ~ F9
(L=10)
F10 ~ F19
(L=10)
F20 ~ F29
(L=10)
F30 ~ F39
(L=10)
Pr = 0
Pr = 1
Pr = 2
Pr = 3
Содержание 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 ...