[Instruction] Contents

[Instruction] Contents [Instruction] Contents

servotechnica.ru
from servotechnica.ru More from this publisher
13.07.2015 Views

Advanced Function InstructionFUN 36 D PXNREXCLUSIVE NORFUN 36 D PXNRSa : Data a for XNR operationSb : Data b for XNR operationD : Register storing XNR resultsSa, Sb, D may combine with V, Z, P0~P9 to serveindirect address applicationOperandRangeWX WY WM WS TMR CTR HR IR OR SR ROR DR K XRWX0∣WX240WY0∣WY240WM0∣WM1896WS0∣WS984T0∣T255C0∣C255R0∣R3839R3840∣R3903R3904∣R3967R3968∣R4167R5000∣R8071D0∣D409516/32-bit± numberP0~P9Sa ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○Sb ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○D ○ ○ ○ ○ ○ ○ ○ ○* ○* ○ ○V、Z●When operation control "EN" = 1 or "EN↑" ( P instruction) changes from 0 to 1, will perform the logicalXNR (inclusive or) operation of data Sa and Sb. The operation of this function is to compare thecorresponding bits of Sa and Sb (B0~B15 or B1~B31), and if the bit has the same value, then set thecorresponding bit within D as 1. If not then set it to 0.● After the operation, if the bits in D are all 0, then set the 0 flag "D=0" to 1.X036P.XNREN Sa :Sb :RR01D=0• The instruction at left makes a logical XNR operationof the R0 and R1 registers, and the results are storedin the R2 register.D :R 2Sa R0 1 0 1 1 1 0 1 1 0 1 1 0 1 1 0 1Sb R1 1 1 1 0 1 1 1 0 1 0 1 0 0 1 1 0 X0=D R2 1 0 1 0 1 0 1 0 0 0 1 1 0 1 0 07-13

Advanced Function InstructionFUN 37 D PZNCMPZONE COMPAREFUN 37 D PZNCMPS : Register for zone comparisonSU : The upper limit valueSL : The lower limit valueS, SU, SL may combine with V, Z,P0~P9 to serve indirect addressapplicationOperandRangeWX WY WM WS TMR CTR HR IR OR SR ROR DR K XRWX0∣WX240WY0∣WY240WM0∣WM1896WS0∣WS984T0∣T255C0∣C255R0∣R3839R3840∣R3903R3904∣R3967R3968∣R4167R5000∣R8071D0∣D409516/32-bit+/-numberP0~P9S ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○SU ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○SL ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○V、Z• When operation control "EN" = 1 or "EN↑" ( P instruction) changes from 0 to 1, compares S with upperlimit SU and lower limit SL. If S is between the upper limit and the lower limit (S L≦S≦S U), then set theinside zone flag "INZ" to 1. If the value of S is greater than the upper limit S U, then set the higher thanupper limit flag "S>U" to 1. If the value of S is smaller then the lower limit S L, then set the lower than lowerlimit flag "S

Advanced Function <strong>Instruction</strong>FUN 36 D PXNREXCLUSIVE NORFUN 36 D PXNRSa : Data a for XNR operationSb : Data b for XNR operationD : Register storing XNR resultsSa, Sb, D may combine with V, Z, P0~P9 to serveindirect address applicationOperandRangeWX WY WM WS TMR CTR HR IR OR SR ROR DR K XRWX0∣WX240WY0∣WY240WM0∣WM1896WS0∣WS984T0∣T255C0∣C255R0∣R3839R3840∣R3903R3904∣R3967R3968∣R4167R5000∣R8071D0∣D409516/32-bit± numberP0~P9Sa ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○Sb ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○D ○ ○ ○ ○ ○ ○ ○ ○* ○* ○ ○V、Z●When operation control "EN" = 1 or "EN↑" ( P instruction) changes from 0 to 1, will perform the logicalXNR (inclusive or) operation of data Sa and Sb. The operation of this function is to compare thecorresponding bits of Sa and Sb (B0~B15 or B1~B31), and if the bit has the same value, then set thecorresponding bit within D as 1. If not then set it to 0.● After the operation, if the bits in D are all 0, then set the 0 flag "D=0" to 1.X036P.XNREN Sa :Sb :RR01D=0• The instruction at left makes a logical XNR operationof the R0 and R1 registers, and the results are storedin the R2 register.D :R 2Sa R0 1 0 1 1 1 0 1 1 0 1 1 0 1 1 0 1Sb R1 1 1 1 0 1 1 1 0 1 0 1 0 0 1 1 0 X0=D R2 1 0 1 0 1 0 1 0 0 0 1 1 0 1 0 07-13

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

Saved successfully!

Ooh no, something went wrong!