Program number handling, Comment writing – Yaskawa MotionSuite Series Machine Controller Programming Manual User Manual

Page 22

Advertising
background image

MotionSuite™ Series Machine Controller Programming Manual

Chapter 1: Motion Programmming Outline

1-13

! Program Number Handling

The program number is a number for the purpose of program discrimination. There
are two kinds of programs: Main programs and sub-programs. The numbers 1~256
may be applied to each.

Supplemental Item

(1) The same number cannot be designated for both main programs and sub-programs.
(2) Up to 256 programs of the Main program and Subprogram combined can be

created.

! Comment Writing

It is possible to write comments within the program. These comments are saved
within the controller. There are two ways to create a comment, as follows:

1. Surrounding a comment statement with quotation marks.

“Character string”

Example

2. All characters following the first quotation mark in a line become comments

without surrounding the line in quotation marks if ENTER is pressed.
“Character string ENTER

Example

!

Main Programs

MPM"""

Program number (1~256)

!

Sub-programs

MPS"""

Program number (1~256)

Figure 1.5: Motion Program File Names

ZRN [AXIS1]0 [AXIS2]0 [AXIS3]0; “Zero return all axes”
MVS [AXIS1]100.0 [AXIS2]200.0 [AXIS3]300.0; “Three axis linear interpolation”

“Move to the wait machine position by linear interpolation after all axis zero point return
ZRN [AXIS1]0 [AXIS2]0 [AXIS3]0;
MVS [AXIS1]100.0 [AXIS2]200.0 [AXIS3]300.0;

Advertising