4 advanced programming – Yaskawa MP2000 Series: User's Manual for Motion Programming User Manual

Page 63

Advertising
background image

4.4 Advanced Programming

4-11

4

Motion Programs

4.4 Advanced Programming

4.4.1 Indirect Designation of a Program Number Using a Register

This method calls the program (MPM

) that matches the value stored in the register.

(1) When Using a Motion Program called by a MSEE Command from

the Ladder Program

Specify a register (M or D register) to be used for the indirect designation in the Program No. of the MSEE com-
mand.

(2) For a Motion Program Registered in the M-EXECUTOR Program Execution Definition

Select Indirect under Setting. The register to be used for indirect designation will be assigned automatically by
the system.

Motion program call command

Ladder program

Motion program

ABS;

IOW MB0001

..

.

MOV[X] _ [Y] _

MOV[X] _ [Y] _

MVS[X] _ [Y] _ F

MW00200 = 3

MPM003

Store 3 in the

register

MW00200.

Register number

Motion program

M-EXECUTOR Program Definition

ABS;

IOW MB0001







MOV[X] _ [Y] _

MOV[X] _ [Y] _

MVS[X] _ [Y] _ F

OW0C00 = 3

MPM003

Stores 3 in the

register

OW0C00

Advertising