24.04.2013 Views

Conceptos de PLC

Conceptos de PLC

Conceptos de PLC

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Manual <strong>de</strong> operación <strong>de</strong> DVP-ES2/EX2/SS2/SA2/SX2 - Programación<br />

Puntos a tomar en cuenta:<br />

1. Una matriz consiste <strong>de</strong> más <strong>de</strong> 1 registro <strong>de</strong> 16 bits consecutivo. El número <strong>de</strong> registros se<br />

indica como la longitud matriz (n). Una matriz contiene 16 × n bits (puntos) y las instrucciones<br />

<strong>de</strong> matriz realizan operación <strong>de</strong> bit, por ejemplo, la operación se realiza bit por bit.<br />

2. Las instrucciones <strong>de</strong> matriz <strong>de</strong>signan un solo bit <strong>de</strong> los16 × n bits (b0 ~ b16n-1) para operación.<br />

Los bits en la matriz no son operados como operación <strong>de</strong> valor.<br />

3. Las instrucciones <strong>de</strong> matriz procesan el movimiento, copiado, comparación y búsqueda <strong>de</strong><br />

una a muchas o muchas a muchas operaciones <strong>de</strong> matriz, las cuales son instrucciones <strong>de</strong><br />

aplicación muy útiles e importantes.<br />

4. La operación <strong>de</strong> matriz requiere <strong>de</strong> un registro <strong>de</strong> 16 bits para <strong>de</strong>signar un bit entre los 16n<br />

bits en la matriz. El registro es el Indicador (Pr) <strong>de</strong> la matriz, <strong>de</strong>signado por el usuario en la<br />

instrucción. El rango válido <strong>de</strong> Pr es 0 ~ 16n -1, correspondiente a b0 ~ b16n-1 en la matriz.<br />

5. El número bit disminuye <strong>de</strong> izquierda a <strong>de</strong>recha (ver figura <strong>de</strong> abajo). Con el número bit, la<br />

operación <strong>de</strong> matriz como por ejemplo bit cambia a izquierda, bit cambia a <strong>de</strong>recha, rotación<br />

<strong>de</strong> bit pue<strong>de</strong> ser realizada e i<strong>de</strong>ntificada.<br />

Izquierda Ancho: 16 bits<br />

Derecha<br />

3-424<br />

D0<br />

D1<br />

D2<br />

Dn-1<br />

b15<br />

b31<br />

b47<br />

b16n-1<br />

1 1 1 1 1 1 1 1 1 1 0 0 0 0 1 1<br />

1 1 1 1 1 1 1 1 1 1 0 0 0 0 1 1<br />

1 1 1 1 1 1 1 1 1 1 0 0 0 0 1 1<br />

0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0<br />

0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0<br />

6. El ancho <strong>de</strong> matriz (C) se establece a 16 bits.<br />

7. Pr: indicador <strong>de</strong> matriz. Por ejemplo, si Pr es 15, el bit <strong>de</strong>signado es b15.<br />

8. Longitud <strong>de</strong> matriz (R) es n: n = 1 ~ 256.<br />

Ejemplo: Esta matriz se compone <strong>de</strong> D0, n = 3; D0 = HAAAA, D1 = H5555, D2 = HAAFF<br />

C15 C14 C13 C12 C11 C10 C9 C8 C7 C6 C5 C4 C3 C2 C1 C0<br />

R0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 D0<br />

R1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 D1<br />

R2 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 D2<br />

Ejemplo: Esta matriz se compone <strong>de</strong> K2X20, n = 3; K2X20 = H37, K2X30 = H68, K2X40 = H45<br />

C15 C14 C13 C12 C11 C10 C9 C8 C7 C6 C5 C4 C3 C2 C1 C0<br />

R0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 1 1 X20~X27<br />

R1 0 0 0 0 0 0 0 0 0 1 1 0 1 0 0 0 X30~X37<br />

R2 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 1 X40~X47<br />

b0<br />

b16<br />

b32<br />

Llenar “0” en el virgen en R0(C15-C8), R1(C15-C8), y R2(C15-C8).<br />

Longitud: n

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

Saved successfully!

Ooh no, something went wrong!