• No results found

Editing Ladder Programs

6 ADDRESSES AVAILABLE TO CUSTOM PMC

8.2 EDITING LADDER PROGRAMS

8.2.2 Editing Ladder Programs

Ladder programs may be created between "SUB71" and "SUB72".

May be created in this area.

Press the rightmost soft key [+] to change the displayed soft keys.

CAUTION

Never delete or edit functional instructions "SUB71" and "SUB72".

Do not create ladder programs outside the "SUB71" to "SUB72" area.

Menu on the LADDER DIAGRAM EDITOR screen

Soft key Function

LIST Lists ladder programs. (Not used.)

SEARCH MENU Displays the search menu in the soft key area.

CREATE Displays the PMC LADDER NET EDITOR screen to add a new net at the cursor position.

ZOOM Reflects the results of the edit operations performed so far in the currently executed ladder program. If the changes are reflected normally, the edited version of the ladder program will be executed immediately.

CREATE NET Displays the PMC LADDER NET EDITOR screen to edit the net at the cursor position.

AUTO Executes the function which automatically enters unused addresses or parameter numbers.

SELECT Used to specify more than one net to perform an edit operation such as [DELETE], [CUT], and [COPY]. Press soft key [SELECT] to specify the start of the range to be selected, then use the cursor movement keys or the search function to specify the end of the range. After selecting nets, press the desired edit soft key to perform that edit operation.

DELETE Deletes a selected net. When deleted, the net will be lost. If you want to restore the deleted net, you must use soft key [RESTRE] to return the entire ladder program to the state in which it was before the edit operation.

CUT Removes a selected net and places it in the clipboard. To paste the net, use soft key [PASTE].

COPY Makes a copy of a selected net and place it in the clipboard. To paste the copy, use soft key [PASTE].

PASTE Inserts the net placed in the clipboard with [CUT] or [COPY] at the cursor position.

Pressing soft key [PASTE] when a net is selected with [SELECT] causes the selected net to be replaced by the one placed in the clipboard with [CUT] or [COPY].

CHANGE ADRS Displays the address conversion soft keys to use the address conversion function.

ADRS MAP Calls the ADDRESS MAP screen to check the reference of the used addresses.

UPDATE Reflects the results of the edit operations performed so far in the currently executed ladder program. When the changes are reflected normally, the edited version of the ladder program will be executed immediately.

RESTRE Cancels the results of the edit operations performed so far and returns the ladder program to the state in which it was when the system switched to the PMC LADDER DIAGRAM EDITOR screen or to the state in which it was when [UPDATE] was last used. After having performed a wrong edit operation, you can use this key if recovery is difficult to accomplish.

SCREEN SETING Calls the setup screen of the PMC LADDER DIAGRAM EDITOR screen. You can change various types of settings related to ladder diagram edit operations.

START/STOP Controls the execution of the ladder program. Soft key [RUN] starts the execution of the ladder program, and soft key [STOP] stops its execution.

CANCEL EDIT Cancels the results of the edit operations performed so far and returns the ladder program to the state in which it was when the system switched to the LADDER DIAGRAM EDITOR screen or when [UPDATE] was last used. Displays the LADDER DIAGRAM MONITOR screen.

EXIT EDIT Reflects the results of the edit operations performed so far and terminates editing.

You cannot move to another screen during edit operation of a ladder diagram by pressing any function key such as the SYSTEM key unless you terminate editing.

[Create/add a new net]

(1) Switch to PMC LADDER DIAGRAM EDITOR. (See Subsection 8.2.1.)

Position the cursor on SUB72. Alternatively, position the cursor on the net immediately below the position at which you want to add a new net. Press soft key [CREATE].

The PMC LADDER NET EDITOR screen is displayed.

(2) Create a ladder program using the variety of instructions displayed as soft keys.

To set an address, press the <alphabetic letter input> key on the operator's panel; this causes alphabetic letters to be displayed as soft keys, enabling you to enter alphabetic letters using these soft keys.

For the operator's panel with the full keyboard: Use the alphabetic keys on the operator's panel to

enter alphabetic letters.

Menu on the NET EDITOR screen

Instruction Function Reads the signal state of a specified address.

Reads the signal state of a specified address and inverts it.

Writes the state of a logic operation result to a specified address.

Inverts the state of a logic operation result and writes it to a specified address.

FUNC Selects a functional instruction.

Connects one step to another.

Deletes a basic or functional instruction.

Connects or disconnects instructions entered in parallel. (Left side of an instruction) Connects or disconnects instructions entered in parallel. (Right side of an instruction) AUTO Executes the function which automatically enters unused addresses or parameter

numbers.

Writes the state of a logic operation result to a specified address to keep it.

Resets a kept output.

TABLE Displayed if the cursor is positioned on the functional instruction COD (SUB7) or CODB (SUB27). It is used to change the contents of the data table of these functional instructions.

RESTRE Returns the currently edited net to the state in which it was when editing started.

NEXT NET Terminates the editing of the current net and allows you to edit the next net.

When you have called the NET EDITOR screen using soft key [ZOOM] on the LADDER DIAGRAM EDITOR screen, the system terminates changing the current net and enables the next net to be edited.

When you have called the NET EDITOR screen using soft key [CREATE NET] on the LADDER DIAGRAM EDITOR screen, the system terminates creating the current net, inserts the created net, and immediately enters the status in which a new net is created (empty net status).

INSLIN Inserts a blank line at the current cursor position. The ladder diagram located below the cursor position will be shifted downward by one line. If a blank line is inserted in the middle of a functional instruction, the functional instruction will be expanded vertically, expanding the space between input conditions.

INSCLM Inserts a blank column at the current cursor position. The ladder diagram at the right of the cursor position moves right one column.

APPCLM Inserts a blank column at the right of the current cursor position. The ladder diagram at the right of the cursor position moves right one column and the ladder diagram is extended horizontally if necessary.

CANCEL EDIT Returns the net currently being edited to the state at the start of the editing and displays the LADDER DIAGRAM MONITOR screen.

EXIT Analyzes the net being edited and stores it in the ladder program. If any error is found in the net, the NET EDITOR screen remains displayed and an error message is displayed.

(3) To enter a functional instruction, first press soft key [FUNC].

Then, position the cursor on the functional instruction you want to enter and press soft key [SELECT]. This causes the functional instruction to be inserted into the NET EDITOR screen, allowing you to specify various parameters (timer No. and time in the case of SUB24 fixed timer).

(4) Ladder programs such as those shown below cannot be created.

× {

The output coil has conditional branching.

[Modify the ladder program]

(1) Delete an entered instruction:

Position the cursor on the instruction you want to delete, and press soft key .

To delete an instruction entered in parallel, follow the procedure below.

Position the cursor on the instruction you want to delete, and press soft key . Then, press soft key .

• To delete a functional instruction, follow the procedure below.

Position the cursor on the desired functional instruction No.

Press soft key .

This causes the functional instruction to be deleted, separating nets. Use soft key to connect the nets.

• To delete a net, follow the procedure below.

Exit the NET EDITOR screen and call the LADDER DIAGRAM EDITOR screen.

Position the cursor on the net you want to delete, and press soft key [DELETE].

(2) Add an instruction:

Call the NET EDITOR screen. Position the cursor on the location where you want to add an instruction. Press soft key or to add an instruction, then set an address.

If required, before adding a functional instruction, use soft key to delete the net from the

location at which the instruction is to be added, reserving the space for the functional instruction.

• To add a functional instruction between instructions or between nets, follow the procedure below.

Press the rightmost soft key. This changes the soft key menu.

To add an instruction between nets or between instructions entered in parallel:

Move the cursor below the position at which you want to add an instruction, then press soft key [INSLIN].

To add an instruction between instructions entered in series:

Move the cursor to the right or left of the position at which an instruction is to be added.

To insert an instruction to the right of the cursor position, press soft key [APPCLM]; to insert it to the left of the cursor position, press soft key [INSCLM].

Add an instruction to the created space.

(3) Copy or move a net.

Exit the NET EDITOR screen and call the LADDER DIAGRAM EDITOR screen. Position the cursor on the net you want to copy. Press soft key [SELECT]. Use the cursor or other keys to specify the copy area. After specifying the area, press soft key [COPY]. Move the cursor to the position at which you want to copy the net, and press soft key [PASTE].

(4) Switch the display format:

Exit the NET EDITOR screen and call the LADDER DIAGRAM EDITOR screen.

Press the rightmost soft key, and the soft key menu will change. Press soft key [+]. This allows you

to change the various settings for ladder diagram display.

Item Description ADDRESS NOTATION Used to specify whether to display addresses in the ladder diagram as symbols or

addresses. Those addresses for which no symbols have been defined will always be displayed as addresses.

FUNCTION STYLE Used to switch the functional instruction display format.

COMPACT: Reduces the functional instruction display area to a minimum. The address parameter monitor is not displayed.

WIDE: Reserves a wide area for displaying the current address parameter value monitor.

TALL: Reserves a tall area for displaying the current address parameter value monitor.

SHOW COMMENT OF CONTACT

Used to switch the format in which comments are to be displayed below contacts.

NONE: Displays no comments. This allows more contacts to be displayed on the screen.

1 LINE: Displays comments below contacts in a 7-single-byte-character x 1-line format.

2 LINE: Displays comments below contacts in a 7-single-byte-character x 2-line format.

SHOW COMMENT OF COIL

Used to specify whether to display comments at coil positions.

YES: Displays comments on the right of the ladder diagram.

NO: Displays no comments. This allows more relays to be displayed horizontally.

Comments can be displayed.

SHOW CURSOR Used to specify whether to display the cursor.

YES: Displays the cursor. The cursor movement keys are sued to move the cursor.

For a search, the cursor will move to a found object such as a relay.

NO: Does not display the cursor. The up and down cursor movement keys are used to directly move the screen display position.

SUBPROGRAM NET NUMBER

Used to select a method of assigning numbers to the nets to be displayed.

LOCAL: Assigns 1 to the first net of the subprogram currently opened. The net number display is the display range/number of nets in the entire subprogram currently opened.

GLOBAL: Assigns 1 to the first net of all ladder programs (second PMC). The net number display is the display range/subprogram range.

WRAP SEARCH ENABLED

Used to specify whether to continue the search starting at the beginning of the ladder program when the end of the ladder program is reached in a search process.

YES: If the end of the ladder program is reached in a forward search, continues the search at the beginning. If the beginning is reached in a backward search, continues the search at the end.

NO: At the point when the end or beginning of the ladder program is reached, assumes the search to be a failure if no match is found, displaying an error message.

PROGRAM LIST ORDER

Used to specify whether to display the subprograms on the PROGRAM LIST EDITOR screen in the order of program numbers or symbols.

FRAME NET ON SUBPROGRAM DISPLAY

Used to specify whether to display functional instructions END1, END2, SP, and SPE when the contents of a program are displayed using the [ZOOM] key on the

PROGRAM LIST MONITOR/EDITOR screen.

HEAVY LINES IN LADDER DIAGRAM

Used to specify the thickness of the lines in the ladder diagram.

YES: Uses heavy lines in the ladder diagram. The shape of each relay is a little larger.

NO: Uses light lines in the ladder diagram. The shape of each relay is a little smaller.

ON/OFF CHANGE OF RELAY SHAPE

Used to specify whether to change the shape of each relay according to its status.

YES: Changes the shape of each relay according to its status. This setting is valid only when "HEAVY LINES IN LADDER DIAGRAM" is set to "YES".

NO: Does not change the shape of each relay.

ADDRESS COLOR Used to set the color of symbols and addresses.

DIAGRAM COLOR Used to set the color of the ladder diagram.

ACTIVE RELAY COLOR Used to set the color of a relay when it is ON.

PARAMETER COLOR Used to set the color of functional instruction parameters in the monitor display section.

COMMENT COLOR Used to set the color of comments.

Pressing soft key [INIT] causes all settings to be changed to their defaults. After changing settings, press soft key [EXIT] to return to the LADDER DIAGRAM EDITOR or NET EDITOR screen.

(5) Search for an instruction:

Press soft key [SEARCH]. This changes the soft key menu.

Item Description TOPBTM Causes a jump to the beginning of the ladder program. If the beginning is already displayed,

causes a jump to the end.

SEARCH Searches for the address or net number corresponding to an entered character string, displaying it if it is found. If a number is entered, the system interprets it as a net number.

If a character string other than a number is entered, the system examines to see if the character string has been defined as a symbol. If it has been defined as a symbol, the system searches for the address represented by that symbol. If it has not been defined as a symbol, the system interprets it as a character string representing an address. If succeeding in interpreting it correctly, the system searches for the address.

W-SRCH Searches for the write coil in which the entered character string is used.

F-SRCH Accepts a functional instruction No. or functional instruction name as input and searches for the functional instruction.

PREV Repeats the last successful search operation in the backward direction.

NEXT Repeats the last successful search operation in the forward direction.

GLOBAL Switches the search target between all ladder programs (second PMC) and the subprogram currently opened. The current search target is displayed at the rightmost position.

The system ladder programs (LV1, LV2, P1-P1499) are protected, so that the system ladder programs cannot be search targets even if "GLOBAL" is selected.

Pressing soft key [EXIT] causes the search menu to be exited.