24.04.2013 Views

Conceptos de PLC

Conceptos de PLC

Conceptos de PLC

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

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

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

1. Dibuje una elipse inclinada como en la figura <strong>de</strong> abajo.<br />

Y<br />

3-452<br />

(0,0)<br />

(26000,26000)<br />

(8000,-8000)<br />

(34000,18000)<br />

X<br />

2. Pasos:<br />

a) Encuentre las coor<strong>de</strong>nadas máximas y mínimas en los ejes X y Y (0,0), (26000,26000),<br />

(34000,18000), (8000,-8000) (como en la figura <strong>de</strong> abajo). Colóquelas respectivamente<br />

en los registros <strong>de</strong> 32 bits (D200,D202), (D204,D206), (D208,D210) y (D212,D214).<br />

b) Seleccione “dibujar arco en sentido <strong>de</strong>l reloj” y el “tiempo <strong>de</strong> movimiento”<br />

pre<strong>de</strong>terminado (S = D100 = K0).<br />

c) Ejecute el <strong>PLC</strong>. Establezca M0 a ON para iniciar el dibujo <strong>de</strong> la elipse inclinada.<br />

M0<br />

= D0 K1<br />

= D0 K2<br />

= D0 K3<br />

= D0 K4<br />

M0 M1029<br />

DCIMA D200 D202 D100 Y0<br />

DCIMA D204 D206 D100 Y0<br />

DCIMA D208 D210 D100 Y0<br />

DCIMA D212 D214 D100 Y0<br />

RST<br />

DMOV<br />

DMOV<br />

MOV<br />

MOV<br />

INCP<br />

END<br />

M1029<br />

K0 D1030<br />

K0 D1336<br />

K0 D100<br />

K1 D0<br />

D0

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

Saved successfully!

Ooh no, something went wrong!