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

The text of a manual · part 47 of 59

Mini-PLC-2/02, 2/16, 2/17 Processor (cat. no. 1772-LZ, LZP, LX, LXP, LW, LWP) User Manual: 24 - Program Editing, pages 383 to 390

Pages 383 to 390 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 383

Chapter 24 Program Editing

Searching for the First Condition or Output Instruction in a Rung When the processor is operating in the Remote Program mode, you can access the first condition instruction of a rung from anywhere in the rung by performing the following steps. 1.

Press [Search][←].

When the processor is not in the Program mode, the cursor moves off the screen to the left. To bring it back on the screen: 2.

Press [→].

When the processor is operating in any mode, you can access the output instruction by performing the following step. 1.

Press [Search][→].

Searching for a Single Rung Single Rung Display Upon power-up, a multiple rung display appears on the screen. You can select the single rung format by performing the following steps. 1.

Press [Search][Display].

You can return to the multiple rung display. 2.

Press [Search][Display] again.

Searching for an Incomplete Rung You can locate an incomplete rung caused by an interruption in programming in any processor operating mode. Perform the following step. 1.

24-10

Press [Shift][Search].

Page 384

Chapter 24 Program Editing

Searching for the First and Last Rung and User Boundaries You can locate the program boundaries including the first or last rung from any point in the program. Perform the following step. 1.

Press [Search][↑] or [Search][↓].

The user program could contain a Temporary End instruction boundary and/or a subroutine area boundary. It always contains an END statement boundary. When you press [Search][↑], the cursor goes directly to the first rung from anywhere in the program. When you press [Search] [↓], the display goes to the next boundary in the direction indicated. By pressing the [SEARCH] [↓] key sequence again, a subsequent boundary is displayed until the program end statement is reached. Boundaries are displayed at the top of the screen with subsequent program rungs displayed beneath. No rungs follow the END statement.

Clearing Memory

You can clear the data table, user program and messages using various clear memory functions. When memory write protect is active, the data table cannot be cleared except between and including addresses 010-177 (Table 24.C).

24-11

Page 385

Chapter 24 Program Editing

Table 24.C Clear Memory Functions Function Data table clear

Key Sequence

Mode

[CLEAR MEMORY] [7][7] (Start Address) (End Address)

Remote Prog

Description Displays a start address and an end address field. Start and end word addresses determine boundaries for data table clearing.

[CLEAR MEMORY]

Clears the data table within and including addressed boundaries.

User program clear

[CLEAR MEMORY] [8][8]

Remote Prog

Position the cursor at the desired location in the program. Clears user program from the position of the cursor to the first boundary: i.e. temporary end, subroutine area or end statement. Does not clear data table or messages.

Partial memory clear

[CLEAR MEMORY] [9][9]

Remote Prog

Clears user program and messages from position of the cursor. Does not clear data table.

Total memory clear

[CLEAR MEMORY] [9][9]

Remote Prog

Position the cursor on the first instruction of the program. Clears user program and messages. Does not clear data table, unless the cursor is on the first program instruction.

IMPORTANT: When memory write protect is active, memory cannot be cleared except for data table addresses 010-177 with a programmed EEPROM installed.

Data Table Clear You can clear all or part of the data table. Perform the following steps. 1.

Press [Clear Memory] [7] [7].

2.

Enter a start and end word address.

3.

Press [Clear Memory].

The data table is cleared between and including these two word addresses. When memory write protect is active, the data table cannot be cleared except between and including addresses 010-177.

User Program Clear You can clear all or part of the user program. Perform the following step. 1.

Press [Clear Memory] [8] [8].

The user program is cleared from the cursor position to the first boundary: temporary end instruction, subroutine area or END statement. Neither the data table nor messages are cleared.

24-12

Page 386

Chapter 24 Program Editing

Partial Memory Clear You can clear part of the program and the messages. Perform the following step. 1.

press [Clear Memory] [9] [9].

The user program and messages are cleared from the cursor position which can not be on the first instruction. None of the bits in the data table are cleared.

Total Memory Clear You can clear the complete memory. Perform the following steps. 1.

Position the cursor on the first instruction of the program.

2.

Press [Clear Memory] [9] [9].

This resets all the data table bits to zero. Perform a total memory clear before entering the program.

Special Programming Aids

Special programming aids include: help directories online data change online programming online programming procedure data initialization key

24-13

Page 387

Chapter 24 Program Editing

Help Directories The 1770-T3 help directories list the functions or instructions common to a single multipurpose key such as the [Search] or [File] (Table 24.D). A master help directory is also available which lists the eight function and instruction directories for the processors and the key sequence to access them. You can display the master help directory by pressing [Help]. You can press [Help] any time during a multi-key sequence. The remaining keys in the sequence can be pressed then without having to press [Cancel Command]. Table 24.D Help Directories Function

Key Sequence

Mode

Description

Help directory

[HELP]

Any

Displays a list of the keys that are used with the [HELP] key to obtain further directories.

Control function directory

[SEARCH] [HELP]

Any

Provides a list of all control functions that use the [SEARCH] key.

Record function directory

[RECORD] [HELP]

Any

Provides a list of functions that use the [RECORD] KEY.

Clear memory directory

[CLEAR MEMORY] [HELP]

Remote Prog

Provides a list of all functions that use the [CLEAR MEMORY] key.

Data monitor directory

[DISPLAY] [HELP]

Any

Provides the choice of data monitor display accessed by the [DISPLAY] key.

File instruction directory

[FILE] [HELP]

Any

Provides a list of all instructions that use the [FILE] key.

Sequencer instruction directory

[SEQ][HELP]

Any

Provides a list of all instructions that use the [SEQ] key.

Block transfer directory

[BLOCK XFER] [HELP]

Any

Provides a list of all instructions that use the [BLOCK XFER] key.

[CANCEL COMMAND]

Any

To terminate.

All directories

Important: If a particular function or instruction directory or an item in a directory is not available with the processor, the industrial terminal displays the message FUNCTION NOT AVAILABLE WITH THIS PROCESSOR.

24-14

Page 388

Chapter 24 Program Editing

Online Programming

Online programming allows you to change the program during machine operation (processor is operating in the Run/Program mode and memory write protect is not active).

ATTENTION: Assign the task of online programming only to an experienced programmer who understands the nature of Allen-Bradley programmable controllers and the machinery being controlled. Check and re-check proposed online changes for accuracy. Assess all possible sequences of machine operation resulting from the change in advance. Be absolutely certain that the change must be done online and that the change solves the problem without introducing additional problems. Notify personnel in the machine area before changing machine operation online.

To minimize the chances of error, maintain accurate data table assignments sheets and use the data initialization key described in this section.

Online Programming Procedure You can make the following changes to your program in the online programming mode: insert an instruction remove an instruction insert a rung remove a rung change an instruction or instruction address The online programming mode is accessible from the industrial terminal by pressing the key sequence [Search] [5] [2]. The processor module must be in the run/program mode. The heading, ON-LINE PROGRAMMING appears in the top right-hand corner of the screen highlighted in reverse video. You can not enter the following instructions during online programming: subroutine area temporary end MCR ZCL JMP JSR block transfer read and write

24-15

Page 389

Chapter 24 Program Editing

The procedure for online programming in run/program mode is similar to the procedure for editing in program mode. However, the following three keys have a special purpose in online programming: [Record] [Cancel Command] [Data Init] Use the [Record] key to enter a change to your program. Once pressed, the changed program is active. Use the [Cancel Command] key to abort any online programming operation prior to pressing the [Record] key. Pressing [Cancel Command] restores the ladder diagram display and program logic to its original state prior to the online programming operation. You can also use it to terminate the online programming mode.

Data Initialization Key

The [Data Init] key performs two functions in the online programming mode: It allows entry of BCD data values (stored at the instruction address). It resets status bits. Use the [Data Init] key when programming a data instruction whose address is not currently being used in the program. If you do not use [Data Init], data at the new address (possibly remaining from previous programming) may interfere with proper machine operation when you insert the new instruction into the program.

ATTENTION: When the address of a new instruction duplicates the address of other instructions in the program, the [Data Init] key should not be used without first assessing the consequences. Pressing the [Data Init] key zeros out the status bits stored at the existing instruction address. This may cause unwanted machine motion and result in equipment damage and/or injury to personnel.

24-16

Page 390

Chapter 24 Program Editing

You must enter the data to be stored at the instruction’s address and its operating parameters when programming the following instructions: Get Equal To Less Than Timers Counters Files Sequencers The data stored at the instruction address is divided into two sections: BCD values (bits 00-13) status bits (bits 14-17) During program execution,these bits are constantly changing to reflect current states and values of program instructions. Therefore, when programming on line, you must decide whether to use the current data or enter new data. In summary, use [Data Init] to: enter a data instruction with an unused address enter new data clear the status bits of an already used address

24-17