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.

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

Diagrama <strong>de</strong> escalera:<br />

X0<br />

RST<br />

Y5<br />

Mnemónico Operandos Función<br />

MC/MCR N0~N7<br />

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

Instrucción: Operación:<br />

LD X0 Cargar contacto NO X0<br />

RST Y5 Restablecer contacto Y5<br />

Inicio/Restablecimiento<br />

<strong>de</strong> control maestro<br />

Escalones <strong>de</strong><br />

programa<br />

3<br />

Controladores<br />

ES2/EX2 SS2 EX2 SX2<br />

Explicaciones:<br />

El MC es la instrucción <strong>de</strong> inicio <strong>de</strong> control maestro. Cuando la instrucción MC se ejecuta, la<br />

ejecución <strong>de</strong>l programa se dirige al nivel <strong>de</strong> nido <strong>de</strong>signado y ejecuta las instrucciones entre MC y<br />

MCR. Sin embargo, MCR es la instrucción <strong>de</strong> restablecimiento <strong>de</strong> control maestro puesta al final<br />

<strong>de</strong>l nivel <strong>de</strong> nido <strong>de</strong>signado y no se requiere ningún contacto <strong>de</strong> activación antes <strong>de</strong> MCR.<br />

Cuando MC/MCR no está activo, los dispositivos e instrucciones entre MC/MCR operan <strong>de</strong><br />

acuerdo a la siguiente tabla.<br />

Tipo <strong>de</strong> instrucción Explicación<br />

Temporizador <strong>de</strong> propósito<br />

general<br />

Temporizador <strong>de</strong> subrutina<br />

Temporizador acumulativo<br />

Contador<br />

Bobina activada por la<br />

instrucción OUT<br />

Dispositivos activados por las<br />

instrucciones SET/RST<br />

Instrucción <strong>de</strong> aplicación<br />

Valor presente = 0, Bobina está OFF, ninguna acción en el<br />

contacto asociado<br />

Valor presente = 0, Bobina está OFF, ninguna acción en el<br />

contacto asociado<br />

Bobina está OFF, el valor presente y el estado <strong>de</strong> contacto<br />

permanecen<br />

Bobina está OFF, el valor presente y el estado <strong>de</strong> contacto<br />

permanecen<br />

Todo OFF<br />

Mantenerse intacto<br />

Todo <strong>de</strong>shabilitado.<br />

El bucle anidado FOR-NEXT seguirá ejecutando <strong>de</strong> ida y vuelta N<br />

veces. Las instrucciones entre FOR-NEXT actuarán como otras<br />

instrucciones entre MC y MCR.<br />

Nota: La instrucción <strong>de</strong> control maestro MC-MCR es compatible con un máximo <strong>de</strong> 8 capas <strong>de</strong><br />

niveles <strong>de</strong> nido. Por favor use las instrucciones en or<strong>de</strong>n N0~ N7.<br />

3-9

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

Saved successfully!

Ooh no, something went wrong!