13.07.2015 Views

[Instruction] Contents

[Instruction] Contents

[Instruction] Contents

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Advanced Function <strong>Instruction</strong>FUN160 D PRWFRREAD/WRITE FILE REGISTERFUN160 D PRWFRSa: Starting address of data registerSb: Starting address of file registerPr : Record pointer registerL : Quantity of register to form a record, 1~511Sa operand can combine V、Z、P0~P9 for indexaddressing.OperandRangeWX WY WM WS TMR CTR HR IR OR SR ROR DR K XR FRWX0∣WX240WY0∣WY240WM0∣WM1896WS0∣WS984T0∣T255C0∣C255R0∣R3839R3840∣R3903R3904∣R3967R3968∣R4167R5000∣R8071D0∣D4095Sa ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○SbPr ○ ○ ○ ○ ○ ○ ○ ○* ○* ○L ○ ○* ○ 1~511V、ZP0~P9F0∣F8191○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 beoverwritten by the content of file registers addressed by the base file register Sb and record pointer Pr; whilewriting, the content of file registers addressed by the base file register Sb and record pointer Pr will beoverwritten by the content of data registers starting from Sa; L is the operation quantity or record size. Theaccess 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 belowSbSaR0 ~ R9(L=10)F0 ~ F9(L=10)F10 ~ F19(L=10)F20 ~ F29(L=10)F30 ~ F39(L=10)Pr = 0Pr = 1Pr = 2Pr = 37-124

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!