Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual ยท part 18 of 59

Mini-PLC-2/02, 2/16, 2/17 Processor (cat. no. 1772-LZ, LZP, LX, LXP, LW, LWP) User Manual: 10 - Program Control Instructions

Pages 138 to 145 of 490, from Mini-PLC-2/02, 2/16, 2/17 Processor (cat. no. 1772-LZ, LZP, LX, LXP, LW, LWP) User Manual

The original document is the PDF (2.4 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Allen-Bradley 1772-LW /LWD, Allen-Bradley 1772-LWP, Allen-Bradley 1772-LX / LXP and Allen-Bradley 1772-LZP

Page 138

Chapter

10

Program Control Instructions

Chapter Objectives

This chapter describes these program control instructions: output override immediate I/O update

Introduction

Some applications need programming techniques designed to override a group of non-retentive outputs or update I/O ahead of the usual I/O scan time. The program control instructions satisfy this need. The output override, or zone type instructions, operate similarly to a hardwired master control relay in that they affect a group of outputs in the user program. But these instructions are not a substitute for a hardwired master control relay, which provides emergency I/O power shutdown. The following table illustrates specific instructions for these categories:

Output Override Instructions

Output Override

Immediate Update I/O

Master Control Reset

Immediate Input Update

Zone Control Last State

Immediate Output Update

Master Control Reset and Zone Control Last State ATTENTION: Do not place a LABEL instruction in an MCR or ZCL zone. When jumping over a start fence, the processor will execute the program from the label to the end fence as if the start fence had been true. The start fence may have been false, so that all outputs within the zone are controlled by the output override instruction (i.e. OFF for MCR or last state for ZCL instructions). Failure to observe this warning could cause unexpected operation with possible damage to equipment and/or injury to personnel.

10-1

Page 139

Chapter 10 Program Control Instruction

A Master Control Reset (MCR) establishes a zone in the user program in which all non-retentive outputs are turned off simultaneously. Important: Retentive instructions (-(U)-, -(L)-, -(RTO)-) should not be placed within an MCR zone, because the MCR zone maintains retentive instructions in the last active state when the start fence goes false.

ATTENTION: A programmable controller should not be operated without a hard-wired master control relay and emergency stop switches to provide emergency I/O power shutdown. Emergency stop switches can be monitored but should not be controlled by the user program. These devices should be wired as described in chapter 4. The purpose of the devices is to guard against damage to equipment and/or injury to personnel.

A Zone Control Last State (ZCL) instruction allows control of one or a group of outputs in more than one manner in the same program. It establishes a zone in the user program which controls the same outputs, through separate rungs, at different times. To override a group of output devices, you must use two MCR (Figure 10.1) or ZCL (Figure 10.2) instructions: one each to begin the zone and one each to end the zone. The start fence is always programmed with a set of input conditions. The end fence must be programmed unconditionally. When the input conditions of the start fence of an MCR zone are false, nonretentive outputs are turned off and held off. When the input conditions of the start fence of a ZCL zone are false, all outputs within the zone are left in their last state. The end fence must be programmed unconditionally.

10-2

Page 140

Chapter 10 Program Control Instructions

Figure 10.1 Master Control Reset 010

011

012

00

00

00

MCR

010

010

00

00

015

017

011

00 016

00

00

00 020

021

012

00

00

00

022

023

013

00 024

00 025

00

00

00 014

026 00 End Fence

00 MCR

10-3

Page 141

Chapter 10 Program Control Instruction

Figure 10.2 Zone Control Reset 010

011

012

00 010

00

00

ZCL 010

00

00

015

017

011

00 016

00

00

021

012

00 022

00

00 013

00 024

00 025

00

00

00 020

023

00

026

014

00

00 End Fence

ZCL

If the start fence becomes: True - Each rung condition controls their output instruction. False - All output instructions within the zone are left in their last state.

ATTENTION: MCR or ZCL zones must not overlap or nest. Each zone must be separate and complete. Overlapping MCR or ZCL zones could result in unpredictable machine operation with possible damage to equipment and/or injury to personnel.

Keystrokes Enter an MCR or ZCL instruction by performing the following steps. 1.

10-4

Press either -(MCR)- or -(ZCL)-.

Page 142

Chapter 10 Program Control Instructions

Editing in a Completed Rung Edit these instructions by performing the following steps:

Immediate I/O Update Instructions

1.

Position the cursor over the MCR or ZCL instruction you want to change.

2.

Press either -(MCR)- or -(ZCL)- or any other appropriate instruction type key.

3.

Enter any parameters that may be required by a new instruction.

Immediate I/O update instructions interrupt the program scan to update I/O data before the normal I/O update sequence. Use these instructions where I/O modules interface with I/O devices that operate in a shorter time period than the processor scan. Important: You can have as many as 8 Immediate Input and 8 Immediate Output instructions per rack.

Immediate Input/Immediate Output Update An Immediate Input Update instruction interrupts the program scan to update input image table with data from the corresponding module group. The image table is updated before the normal I/O scan and executed each program scan (Figure 10.3). This instruction is always considered logic true and execution takes place whether or not other rung conditions allow logic continuity.

10-5

Page 143

Chapter 10 Program Control Instruction

Figure 10.3 Immediate Input Instruction I/O scan

Program scan

Immediate Input instruction interrupts program scan

2-slot I/O group Examine bits in word 112 here in program

Returns to program scan

Word 112 16 bits from one module group written into input image table word module group (input) 10129

An Immediate Output Update instruction interrupts the program scan to update the module group with data from corresponding output image table word address (Figure 10.4). The image table is updated before the normal I/O scan and executed each program scan when the rung is true. It can be programmed unconditionally. This instruction immediately transfers output data from the selected 16-bit word in the output image table without waiting for the normal I/O scan.

10-6

Page 144

Chapter 10 Program Control Instructions

Figure 10.4 Immediate Output Instruction I/O Scan

Program Scan control bits of word 014 here in program Immediate Output instruction interrupts program scan returns to program scan word 014 writes all 16 bits from one output image table word to one module group

2-slot I/O group module group (output)

10130

Keystrokes Enter an Immediate Input or Immediate Output instruction by performing the following steps. 1.

Press either -[I]- or -[IOT]-.

2.

Enter <address>.

10-7

Page 145

Chapter 10 Program Control Instruction

Removing an Immediate Output Instruction The only way to remove an Immediate Output Update instruction is to remove the entire rung. See chapter 11. Removing an Immediate Input Instruction Remove an Immediate Input Update instruction by performing the following steps. 1.

Position the cursor over the Immediate Input Update instruction you want to remove.

2.

Press [REMOVE]-[I]-.

Editing a Partially Completed Rung or a Completed Rung Edit an Immediate Input or Immediate Output instruction by performing the following steps. If you are editing a completed rung, proceed to step 1. If you are editing a partially completed rung, enter the next instruction and proceed to step 1.

10-8

1.

Position the cursor over the Immediate Input or Immediate Output Update instruction you want to change.

2.

Press -(I)-, -[IOT]-, or any other appropriate instruction type key.

3.

Enter <address>.