Mitsubishi — 1.5.1 Structure of a Program

AH500 Motion Control Module Manual 1.5 Using O100, Ox Motion Subroutines, and P Subroutines O100, Ox motion subroutines, and P subroutines are introduced in section 1.1~section 1.3. In this section, a program composed of O100, Ox motion subroutines, and P subroutines is described. 1.5.1 Structure of a Program Suppose a program is composed of O100, Ox0, Ox3, P1, and P2. The five program blocks are shown below. Main program O100 . . . Calling Ox0 Motion subroutine Ox0 . . . . . Calling P1 Subroutine 1-10 . . . Call.ing P2 . . . M102 . . . M2 . SRET Subroutine P2 . . Motion subroutine Calling Ox3 . Ox3 . . . SRET. M2