beautypg.com

Inserting an instruction – Rockwell Automation 1772-LP3 PLC - 2/30 Programmable Controller Programming and Operations Manual User Manual

Page 84

background image

Introduction to Programming

Chapter 4

4Ć20

Table 4.D

Editing Functions

1

Function

Mode

Key Sequence

Description

Inserting a Condition

Instruction

Program

[INSERT] [Instruction]

[Address]

or

[INSERT] [

] [Instruction]

[Address]

Position the cursor on the instruction that will precede the

instruction to be inserted. Then press key sequence.

2

Position the cursor on the instruction that will follow the

instruction to be inserted. Then press key sequence.

2

Removing a Condition

Instruction

Program

[REMOVE] [Instruction]

Position the cursor on the instruction to be removed and

press the key sequence.

Inserting a Rung

Program

[INSERT] [RUNG]

Position the cursor on any instruction in the preceding rung

and press the key sequence. Enter the appropriate

instructions to complete the rung.

Removing a Rung

Program

[REMOVE] [RUNG]

Position the cursor anywhere on the rung to be removed

and press the key sequence.
NOTE: Only addresses corresponding to OUTPUT

ENERGIZE, LATCH, and UNLATCH instructions are

cleared to zero when the rung is removed.

Change data of a word or

block instruction

Program

[INSERT] [Data]

[CANCEL COMMAND]

Position the cursor on the word or block instruction whose

data is to be changed. Press the key sequence.
To terminate.

Change data of a word or

block instruction ONĆLINE

Run/Program

[SEARCH] [5] [1] [Data]

[INSERT]
[CANCEL COMMAND]

Position the cursor on the word or block instruction whose

data is to be changed. Press the key sequence. Cursor

keys can be used as needed.
Press [INSERT] to enter the new data into memory.
To terminate.

Change the address of a

word or block instruction

Program

[INSERT] [First Digit] [

]

[Address]

[CANCEL COMMAND]

Position the cursor on a word or block instruction with data

and press [INSERT]. Enter the first digit of the first data

value of the instruction. Then use the [

] and [

] key as

needed to cursor up to the word address. Enter the

appropriate digits of the word address.
To terminate.

1

These functions can also be used during OnĆLine Programming (Refer to Section 4.4.5).

2

When bit address exceeds 5 digits, press the [EXPAND ADDR] key before entering address and enter a leading zero, if necessary.

Inserting an Instruction

Only nonoutput instructions can be inserted in a rung. There are two ways
of doing this.

One way is to press the key sequence [INSERT] [Key sequence of
instruction] [Key sequence of address]. The new instruction will be
inserted after the cursor’s present position. If an instruction is to be entered
at the beginning of a rung, the cursor can be positioned on the previous
rung’s output instruction. If the cursor is on the END statement, however,