beautypg.com

6 editing programs, Inputting inline comments – Yaskawa MP900 Series Machine Controller for Standard Operation User Manual

Page 398

background image

7.3 Creating Ladder Logic Programs

7-31

7

to zero, and the STORE instruction.

2. Select the WHILE instruction.

3. Enter the WHILE statement (steps 4 to 10 in the above diagram).

4. Enter the END instruction. The type of END instruction will be determined automati-

cally and the appropriate END instruction will be displayed. In this case, WEND will be
input.

Inputting Inline Comments

Comments can be entered at any position in main programs and user function programs.
Inline comments do not affect the program execution at all.

The procedure to input inline comments is outlined below.

1. Select the COMMENT instruction.

2. Enter the comment, "MW01000 is motor rpms."

3. Enter double quotation marks (") at the end of the comment.

1 0000

"MW01000 is motor rpms"

Up to 70 characters per line can be entered for the inline comment, with a maximum of 180 characters
in total if carriage returns are used. Depending on the number of carriage returns, however, the maxi-
mum number of characters possible in the character string may be reduced.

7.3.6 Editing Programs

Instructions can be edited. If the user starts to edit programs while online, the current value
will not be refreshed until the edited program is saved normally.

• Insert
• Delete
• Undelete
• Cut
• Copy
• Paste
• Change operand
• Jump to step number
• Opening Programming Window for SEE and FSTART instructions
• Retracing display windows: Back

Programs cannot be edited under the following circumstances:

• When the cursor is in a blank position other than at an instruction or operand.
• During the execution of other edit operations.

INFO