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.

3. Conjunto <strong>de</strong> instrucciones<br />

2. Ecuación: D10 = [(500 – 200) × (500 – 30)] ÷ (3000 – 200) + 30 = 80.35. Redon<strong>de</strong>o <strong>de</strong>l<br />

resultado a entero, D10 = 80.<br />

X0<br />

X0<br />

Valor <strong>de</strong><br />

<strong>de</strong>stino<br />

máximo<br />

Valor <strong>de</strong><br />

<strong>de</strong>stino<br />

mínimo<br />

MOV<br />

MOV<br />

MOV<br />

MOV<br />

Valor <strong>de</strong> <strong>de</strong>stino<br />

= 500<br />

D<br />

= 30<br />

0<br />

K3000<br />

K200<br />

K500<br />

K30<br />

D0<br />

D1<br />

D2<br />

D3<br />

SCLP K500 D0 D10<br />

Valor<br />

fuente<br />

mínimo<br />

S 1=500<br />

=200<br />

Valor fuente<br />

Valor<br />

fuente =3000<br />

máximo<br />

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

1. Se asume que el valor fuente S1 = 500, valor fuente máx. D0 = 3000, valor fuente mín. D1 =<br />

200, valor <strong>de</strong> <strong>de</strong>stino máx. D2 = 30, y valor <strong>de</strong> <strong>de</strong>stino mín. D3 = 500. Cuando X0 = ON, se<br />

ejecuta la instrucción SCLP y el resultado <strong>de</strong>l cálculo proporcional se almacenará en D10.<br />

2. Ecuación: D10 = [(500 – 200) × (30 -500)] ÷ (3000 – 200) + 500 = 449.64. Redon<strong>de</strong>o <strong>de</strong>l<br />

resultado a entero, D10 = 450.<br />

X0<br />

X0<br />

MOV<br />

MOV<br />

MOV<br />

MOV<br />

K3000<br />

K200<br />

K30<br />

K500<br />

D0<br />

D1<br />

D2<br />

D3<br />

SCLP K500 D0 D10<br />

3-479

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

Saved successfully!

Ooh no, something went wrong!