10.07.2015 Views

User's Manual - Kitagawa Europe

User's Manual - Kitagawa Europe

User's Manual - Kitagawa Europe

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

MAC mini iH Series Operation <strong>Manual</strong>Program4.7. Subprogram FunctionWhen there is a repeating index mode into the program, this program can be simply used as thesubprogram, which can be called out of the main program.4.7.1.Subprogram structure4.7.2.Subprogram exampleTiming chartNNJ-1 Commands J-1 (Return command) assub-program completion.N000 A90.000 F0 N001 J10Exe.Start pointWZRN POSN002 A90.000 °N003 J10Exe. °N004 G24 J0 °°N010 A10.000 F0N011 A20.000N012 A30.000 J-1°°°°°°° The program jumps by execution of N001 and after executing N010N012,the program proceeds to N002.In case of , it also is the same as the above.Start signal° ° ° ° ° ° °°° Rotary motionBLKFIN signalPRM020=1Precautions An additional subprogram cannot be called (subroutine call) out of thesubprogram. When the program is called, the alarm of Err203 STACKOVER FLOW occurs. When J-1 (Return command) is executed without subroutine call, the alarmof Err202 STACK UNDER FLOW occurs. When J-1 (Return command) is not executed on a final block executed aftercalling the subroutine, the alarm of Err204 NOT RETURN ALARM occurs.KITAGAWA O4-47

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!