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 />

3-436<br />

b15<br />

b0<br />

S<br />

Antes <strong>de</strong> la ejecución<br />

1<br />

1<br />

0<br />

0<br />

1<br />

1<br />

0<br />

0<br />

1<br />

1<br />

0<br />

0<br />

1 0<br />

1 0<br />

1<br />

1<br />

0<br />

0<br />

1<br />

1<br />

0<br />

0<br />

1<br />

1<br />

0<br />

0<br />

1<br />

1<br />

0<br />

0<br />

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

D<br />

Después que los bits<br />

cambian a la izquierda<br />

M1095<br />

1<br />

MBS M1097=0<br />

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

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

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

0<br />

M1096<br />

Ejemplo <strong>de</strong> programa 2:<br />

Cuando X1 = ON, M1097 = ON, indicando que se realiza un cambio <strong>de</strong> matriz a la <strong>de</strong>recha. Asuma<br />

que la ban<strong>de</strong>ra <strong>de</strong> acarreo negativo <strong>de</strong> matriz M1096 = ON (1) y los registros <strong>de</strong> 16 bits D0 ~ D2<br />

realizarán un cambio <strong>de</strong> matriz a la <strong>de</strong>recha y el resultado será almacenado en la matriz <strong>de</strong> los<br />

registros <strong>de</strong> 16 bits D20 ~ D22, mientras tanto la ban<strong>de</strong>ra <strong>de</strong> acarreo positivo <strong>de</strong> matriz M1095<br />

estará OFF (0).<br />

X1<br />

S<br />

Antes <strong>de</strong> la ejecución<br />

M1097<br />

MBSP D0 D20 K3<br />

D0<br />

D1<br />

D2<br />

b15<br />

b0<br />

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

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

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

1 M1096<br />

MBS M1097=1<br />

D0<br />

D1 D1<br />

D2<br />

D20<br />

D21<br />

D22<br />

D D20 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0<br />

Después que los bits<br />

cambian a la <strong>de</strong>recha<br />

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

D22<br />

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

M1095<br />

M1095

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

Saved successfully!

Ooh no, something went wrong!