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

The text of a manual · part 19 of 29

1772 Mini PLC-2/05 Processor (Cat. No. 1772-LS, LSP) Programming and Operations Manual, pages 181 to 190

Pages 181 to 190 of 289

The original document is the PDF (1.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-LSP

Page 181

Chapter 16 Program Editing

Inserting a Rung A rung can be inserted anywhere within a program. The cursor can be positioned on any instruction of a rung. The new rung is inserted after the rung which contains the cursor. The rung appears as an unconditional rung. you must complete the rung. You cannot edit instructions in the new rung until the rung is complete. Keystrokes: To insert a rung in a program, perform the following steps. 1.

Press [INSERT][RUNG].

2.

Insert <output instruction>.

Then: 3.

Press [INSERT][←].

4.

Insert <instruction>.

5.

Insert <address>.

If the cursor is on the END statement, the rung need not be inserted. You can enter the rung as in initial program entry. if, at any time, the memory is full, a MEMORY FULL message is displayed you cannot enter more instructions. Removing a Rung Removing a rung is the only way an output instruction can be removed. you can remove any rung, except the last one containing the END statement. Keystrokes: To remove a rung, perform the following steps. 1.

Position the cursor anywhere on the rung you want to remove.

2.

Press [REMOVE][RUNG].

Only bits corresponding to Output Energize, Latch, or Unlatch instructions are cleared to zero. All other word and bit addresses are not cleared when a rung is removed. Changing Data in a Word or Block Instruction You can change the data of any word or block instruction, except Mathematics and Put instructions, in the program mode without removing and re-entering the instruction.

16-4

Page 182

Chapter 16 Program Editing

Keystrokes: To change the data of any word or block instruction, perform the following steps. 1.

Position the cursor on the appropriate word instruction.

2.

Press [INSERT]<data>.

When the last digit of the data is entered, the function is terminated and the data is entered into memory. Once you have entered the first digit, the [→][←] keys can be used. The function can also be terminated and entered into memory before the last digit is entered if you press [CANCEL COMMAND]. Changing the Address of a Word or Block Instruction You can change the address of a word or block instruction with data, excluding Mathematics and Put instructions, without removing and re-entering the instruction. Keystrokes: To change the address of a word or block instruction, perform the following steps. 1.

Position the cursor on the instruction you want to change.

2.

Press [INSERT].

The cursor, although not displayed, positions itself on the first data digit. Enter that digit to display the cursor. 3.

Cursor back to the address digits using the [←] key.

4.

Change <address> as needed. Use a leading zero if required.

Changing an Instruction or Changing the Address of an Instruction Without Data You can change an instruction or the address of an instruction without data. Keystrokes: To change an instruction or the address of an instruction without data, perform the following steps. 1.

Place the cursor on the instruction you are going to change.

2.

Press the instruction key or key sequence of the desired instruction and the required address(es).

This procedure also can be used when changing the address of an instruction that does not contain data.

16-5

Page 183

Chapter 16 Program Editing

Online Data Change Certain data of a word or block instruction, excluding Mathematics and Put instructions, can be changed while the processor is in the run/program mode. Keystrokes: You can change data while the processor is in the run/program mode by performing the following steps. 1.

Position the cursor on the appropriate instruction.

2.

Press [SEARCH] 51.

The key sequence displays the message ON-LINE DATA CHANGE, ENTER DIGITS FOR: <Required information> near the bottom of the screen. The new digits are displayed in a command buffer as they are entered. After the new data is displayed: 3.

Press [INSERT] to enter the data into memory.

4.

You can terminate this function by pressing [CANCEL COMMAND].

ATTENTION: When the address of an instruction whose data is to be changed duplicates the address of other instructions in the user program, this could cause unwanted machine motion. This could result in damage to the equipment and/or injury to personnel. The consequences of the change of each instruction should be thoroughly explored.

Important: When the memory write protect is activated, online data change is not be allowed for addresses above 177. If you attempt to change data above address 177, the industrial terminal displays the error message MEMORY PROTECT ENABLED. Searching You can use the 1770-T3 terminal to search your program for: specific instruction and specific word addresses first condition or output instruction in a rung single rung display incomplete rung first and last rung and user boundaries remote mode select See Table 16.B for a summary of search functions.

16-6

Page 184

Chapter 16 Program Editing

Table 16.B Search Functions Function

Key Sequence

Mode

Locate first rung of program

[SEARCH][↑]

Any

Positions cursor on the first instruction of the program.

Locate last rung of program area

[SEARCH][↓]

Any

Positions cursor on the temporary end instruction, subroutine area boundary, or the end statement depending on the cursor's location. Press key sequence again to move to the next boundary.

Locate first instruction of current rung

[SEARCH][←]

Remote Prog

Positions cursor on first instruction of the current rung.

Move cursor off screen

[SEARCH][←]

Remote Test Run/Program

Moves cursor off screen to left.

Locate output instruction of current rung

[SEARCH][→]

Any

Positions cursor on the output instruction of the current rung.

Locate rung without an output instruction

[SHIFT] [SEARCH]

Any

Locates any rung left incomplete due to an interruption in programming.

[SEARCH] [Instruction key] (Address)

Any

Locates instruction searched for. Press [SEARCH] to locate the next occurrence of instruction.

Locate specific word address

[SEARCH] (address)

Any

Locates this address in the program (excluding -| |- and -| / |- instructions and addresses in files). Press [SEARCH] to locate the next occurrence of this address. 1

Single rung display

[SEARCH] [DISPLAY]

Any

Displays the first rung of a multiple rung display by itself. Press key sequence again to view multiple rungs.

Print

[SEARCH] [4][3]

Any

Prints a single rung.

Print

[SEARCH] [4][4]

Any

Prints a ladder diagram dump.

Print

[SEARCH] [4][5]

Remote Prog

Prints a total memory dump.

Print

[SEARCH] [5][0]

Any

Prints the first 20 lines of data table configuration.

Print

[SEARCH] [5][3]

Any

Prints the first 20 lines of bit manipulation.

Print

[SEARCH] [5][4]

Any

Prints the first 20 lines of memory layout display.

Program controls outputs

[SEARCH] [5][9][0]

Run/Program

Places the processor in run/program mode.

Program executes outputs disabled

[SEARCH] [5][9][1]

Remote Test

Places the processor in remote test mode.

Processor awaits commands

[SEARCH] [5][9][2]

Remote Program

Locate specific instruction

1

Description

Places the processor in remote program mode.

Enter leading zeros when bit address exceeds 5 digits or word address exceeds 3 digits.

16-7

Page 185

Chapter 16 Program Editing

Specific Instructions and Specific Word Addresses You can locate any instruction in your program by using methods described in this section. you can search for a block instruction searching for the counter address or the first entered address in the block. Keystrokes: You can locate any instruction in your program by performing the following steps. 1.

Press [SEARCH].

2.

Insert <instruction>.

3.

insert <address>. Enter leading zeros before the address if necessary.

Keystrokes: You can locate any address (excluding those associated with Examine On and Examine Off instructions and those contained within files) by performing the following steps. 1.

Press [SEARCH] 8.

2.

Enter <address>.

The address you enter is the word address for the Output instructions. The industrial terminal locates all uses of the word addresses associated with the word address except for -] [- and -]/[-. Once either key sequence is pressed, this information and an EXECUTING SEARCH message is displayed near the bottom of the screen. The industrial terminal begins to search for the address and/or instruction from the cursor’s position. It looks past the temporary end and subroutine area boundaries to the END statement. Then it continues searching from the beginning of the program to the point where the search began. If found, the rung containing the first occurrence of the address and/or instruction is displayed as well as the rungs after it. If the SEARCH key is pressed again, the next occurrence of the address and/or instruction is displayed. When it cannot be located or all addresses and/or instructions have been found, a NOT FOUND message is displayed. If the instruction is found in the subroutine area or past the temporary end instruction, the area in which it is found is displayed in the lower portion of the screen. This function can be terminated at any time by pressing [CANCEL COMMAND]. All other keys are ignored during the search.

16-8

Page 186

Chapter 16 Program Editing

First Condition or Output Instruction in a Rung Keystrokes: 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 [→].

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

Press [SEARCH][→].

Single Rung Display Upon power-up, a multiple rung display appears on the screen. Keystrokes: 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.

Incomplete Rung You can locate an incomplete rung caused by an interruption in programming in any processor operating mode. Keystrokes: You can locate the incomplete rung by performing the following steps. 1.

Press [SHIFT][SEARCH].

First and Last Rung and User Program Bounds You can locate the program boundaries including the first or last rung from any point in the program. Keystrokes: You can locate these boundaries by completing the following steps. 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. 16-9

Page 187

Chapter 16 Program Editing

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. Processor Mode Select You must use an industrial terminal to change the processor mode of operation. Keystrokes: To change the processor mode of operation, use the following keystrokes. Run/Program Mode

Press [SEARCH]590.

Remote Test Mode

Press [SEARCH]591.

Remote Program Mode

Press [SEARCH]592.

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 16.C).

16-10

Page 188

Chapter 16 Program Editing

Table 16.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 EPROM installed.

Data Table Clear You can clear all or part of the data table. Keystrokes: To clear all or part of the data of the data table, perform the following steps. 1.

Press [CLEAR MEMORY] 77.

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. Keystrokes: To clear all or part of the program, perform the following steps. 1.

Press [CLEAR MEMORY] 88.

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.

16-11

Page 189

Chapter 16 Program Editing

Partial Memory Clear You can clear part of the program and the messages. Keystrokes: To clear part of the memory, perform the following steps. 1.

press [CLEAR MEMORY] 99.

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. Keystrokes: To clear the complete memory, perform the following steps. 1.

Position the cursor on the first instruction of the program.

2.

Press [CLEAR MEMORY] 99.

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

16-12

Page 190

Chapter 16 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 16.D). A master help directory is also available which lists the eight function and instruction directories for the Mini-PLC-2/05 processor 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 16.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 Mini-PLC-2/05 processor, the industrial terminal displays a “FUNCTION NOT AVAILABLE WITH THIS PROCESSOR” message. Online Data Change While the processor is in the run/program mode, you can change the lower 12 bits of a word or word instruction. This excludes Mathematics and Put instructions, or certain data of a block instruction.

16-13