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.

M1002<br />

Pulse para<br />

solicitud <strong>de</strong> envío<br />

Pulse<br />

X0<br />

M1318<br />

MOV H87 D1120<br />

SET M1136<br />

MOV K100 D1252<br />

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

Configurar protocolo <strong>de</strong> comunicación<br />

a 9600, 8, E, 1<br />

Retener protocolo <strong>de</strong> comunicación<br />

Escribir datos <strong>de</strong> transmisión con anticipación<br />

SET M1316<br />

Envío <strong>de</strong> datos: (<strong>PLC</strong>→Equipo externo)<br />

D100L D101L D102L D103L<br />

S<br />

m<br />

Configurar tiempo <strong>de</strong> espera <strong>de</strong><br />

comunicación a 100ms<br />

RS D100 K4 D120 K7<br />

Registro <strong>de</strong> datos fuente,<br />

iniciando <strong>de</strong>s<strong>de</strong> los 8 bits más<br />

bajos <strong>de</strong> D100<br />

Longitud = 4<br />

Procesamiento <strong>de</strong> datos recibidos<br />

RST M1318<br />

Recepción <strong>de</strong> datos: (Equipo externo→<strong>PLC</strong>)<br />

Solicitud <strong>de</strong> envío<br />

Recepción completada y ban<strong>de</strong>ra<br />

restablecida<br />

D120L D121L D122L D123L D124L D125L D126L<br />

S<br />

n<br />

Registros para datos recibidos iniciando <strong>de</strong>s<strong>de</strong><br />

los 8 bits más bajos <strong>de</strong> D120<br />

Longitud = 7<br />

3-213

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

Saved successfully!

Ooh no, something went wrong!