fun160 file reg read write en


New Instruction
FUN160 0 FUN160 0
Read/Write File Register
RW FR RW FR
Sa: Starting address of data register
Sb: Starting address of file register
Pr : Pointer register
L : Quantity of register, 1~511
Sa operand can combine V0Åš0P0~P9
for index addressing.
FR
WX WY WM WS TMR CTR HR IR OR SR ROR DR K XR
F0
WX0 WY0 WM0 WS0 T0 C0 R0 R3840 R3904 R3968 R5000 D0
Range
V0Z
#"
#" #" #" #" #" #" #" #" #" #" #" #"
P00P9
F8191
WX240 WY240 WM1896 WS984 T255 C255 R3839 R3903 R3967 R4167 R8071 D4095
Operand
Sa Ë% Ë% Ë% Ë% Ë% Ë% Ë% Ë% Ë% Ë% Ë% Ë% Ë%
Ë%
Sb
Pr Ë% Ë% Ë% Ë% Ë% Ë% Ë% Ë%* Ë%* Ë%
L Ë% Ë%* Ë% 1~511
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 staring from the Sb and pointer pointed; while
writing, the content of file registers staring from the Sb and pointer pointed will
be overwritten by the content of data registers starting from Sa; L is the
operation quantity. The access of file register applies the concept of RECORD
data structure to implement. For example, Sa=R0, Sb=F0, L=10, the read/write
details shown as below :
0
0
0 0
0
9-81
New Instruction
FUN160 FUN160
Read/Write File Register
RW FR RW FR
For ladder program application, only this instruction can access the file
registers.
The pointer will be increased by 1 after execution while pointer control input
"INC"=1.
This instruction will not be executed and error indicator  ERR" will be 1 while
incorrect quantity (L=0 or > 511) or the operation out of the file register's
range (F00 F8191).
.When M0 changes from 0 1, the
content of file registers starting from
F100 and pointer (D0) pointed will be
overwritten by the content of data
registers R0~R49; the record length
is 50.
.Pointer will be increased by 1 after
operation.
.When M0 changes from 0 1, the
content of data registers R0~R49 will
be overwritten by the content of file
registers starting from F100 and
pointer (D0) pointed; the record
length is 50.
.Pointer will be increased by 1 after
operation.
9-82


Wyszukiwarka

Podobne podstrony:
u2270b read write base station RFID
read write c (3)
fun93 hsct write en
read write memory
fun114 zone write en
read write c
File,2761,en
WRITE HEX File Format
Kaspersky Lab KMS9 v9 0 19 S60v3 S60v5 SymbianOS9 x Cracked Read NFO Symbian REG INFO
READ HEX File Format
read if you can t play the movie [en, fr]
write&read
UFO Unclassified Documents (EN) FBI File on Dr McDonald

więcej podobnych podstron