Mitsubishi — 1.5.1 Structure of a Program

AH500 Motion Control Module Manual The program is described below. 1. Section (1)~section (5) are created in numerical order, but they can be arranged in any order. 2. There is only one O100. O100 can not be called by another program, but it can freely call Ox motion subroutines and P subroutines. 3. Ox motion subroutines can be called by O100 and P subroutines, and it can call P subroutines. 4. P subroutines can be called by O100 and Ox motion subroutines, and it can call Ox motion subroutines. Note: 1. One Ox motion subroutine is executed at a time. If Ox0 is executed, Ox3 can not be executed. If Ox3 is executed, Ox0 can not be executed. 2.

After O100 or a P subroutine enables an Ox motion subroutine, the next line will be executed, and the execution of the Ox motion subroutine will be ignored. 3. Whenever an Ox motion subroutine is enabled, it is executed once. If an Ox motion subroutine needs to be executed again, it has to be enabled again. The instructions supported by O100, Ox0, Ox3, P1 and P3 are described below. (O: Supported; X: Not supported) Additional remark: 1-12 Section O100 Ox0 and Ox3 P1 P2 Basic O O O O instruction Applied O O O O instruction Motion X O O X instruction G-code X O O X Description - - P1 is called by Ox0, and therefore it supports motion instructions and G-codes.

P2 is called by O100, and therefore it does not support motion instructions and G-codes. Main program Subroutine Motion subroutine Order In any order In any order In any order It runs normally. P subroutines can be called by O100 or Ox motion subroutines. Ox motion subroutines can be called by O100 or P subroutines. Execution It is scanned cyclically. Whenever a subroutine is called, it is executed once. Whenever a motion subroutine is called, it is executed once. Operation 1 main program 256 subroutines They can be used according to users’ needs. 100 motion subroutines They can be used according to users’ needs. Number