Mitsubishi — 3.13 Functions of Special Auxiliary Relays and Special Data Registers

Chapter 3 Devices Turning the X devices ON/OFF If SM304 in an AH500 series motion control module is ON, the X devices in the AH500 series motion control module can be turned ON/OFF by means of PMSoft. SM304 1. SR400 is an interrupt register. If users set a bit in SR400 to ON, an interrupt will be enabled. Interrupt register 2. If an interrupt enabled is a time interrupt, users can write the cycle of the interrupt into SR401. 3. There are two types of interrupts.  External interrupt: If an interrupt is triggered by the rising edge/falling edge of a pulse received through an external terminal, the execution of the present program will stop, and the interrupt will be executed.

After an interrupt is executed, the program which is executed before the interrupt is triggered will be executed.  Time interrupt: The execution of the present program stops at regular intervals. Whenever the execution of the present program stops, an interrupt is executed. SR400 and SR401 Clearing the M-code which is executed  If users want to clear the M-code in SR703, they have to set SM1050 to OFF.  If an M code in an Ox motion subroutine is executed, SM1050 will be ON. The M-code which is executed is stored in SR703. SM1050 and SR703 1. Every motion axis uses a ready flag.

The first axis uses SM1048, the second axis uses SM1148, the third axis uses SM1248, the fourth axis uses SM1348, ……, the fifteenth axis uses SM2448, and sixteenth axis uses SM2548. Users can use the ready flags to judge whether the axes operate. 2. Description of the ready flag for the first axis: Before the first axis operates, SM1048 is ON. When the fisrt axis operates, SM1048 is OFF. After the first axis finishes operating, SM1048 is ON.

Ready flag SMmn48 (SM1048, SM1148, …...SM2548) 3-33 Bit Interrupt Interrupt number 0 Time interrupt I0 1 External terminal X0.8 I1 2 External terminal X0.9 I2 3 External terminal X0.10 I3 4 External terminal X0.11 I4 5 External terminal X0.12 I5 6 External terminal X0.13 I6 7 External terminal X0.14 I7 8 External terminal X0.15 I8