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

S<br />

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

M1095<br />

D<br />

Después <strong>de</strong> la rotación<br />

a la izquierda<br />

M1095<br />

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

MBR<br />

M1097=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 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1<br />

D0<br />

D1<br />

D2<br />

D20<br />

D21<br />

D22<br />

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

Cuando X1 = ON, M1097 = ON, indicando que se realiza una rotación <strong>de</strong> matriz a la <strong>de</strong>recha. Los<br />

registros <strong>de</strong> 16 bits D0 ~ D2 realizarán una rotación <strong>de</strong> matriz a la <strong>de</strong>recha y el resultado será<br />

almacenado en la matriz <strong>de</strong> los registros <strong>de</strong> 16 bits D20 ~ D22. La ban<strong>de</strong>ra <strong>de</strong> acarreo positivo <strong>de</strong><br />

matriz M1095 estará OFF (0)<br />

X1<br />

M1097<br />

S<br />

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

MBRP D0 D20 K3<br />

D0<br />

D1<br />

D2<br />

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

MBR<br />

M1097=1<br />

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

Después <strong>de</strong> la D21<br />

rotación a la<br />

<strong>de</strong>recha D22<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 />

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

1<br />

1<br />

b0<br />

M1095<br />

M1095

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

Saved successfully!

Ooh no, something went wrong!