
F4000N Series Operating Manual
Section 5: Point Type & Function Reference
Part # 562187N-1
Rev. D Sep 2012
50
© 2012 Fisnar Inc.
1.13
Call Subroutine
A subroutine is a set of instructions that are located after the End Program instruction.
Call Subroutine
causes the machine to jump to a specified memory address and execute
the instructions found there using coordinates specified at the
Call Subroutine
instruction.
When the
End Program
instruction for the subroutine is reached, program execution will
continue at the address immediately after the
Call Subroutine
instruction.
The
Call Subroutine
function is most useful to repeat a pattern anywhere on the work-
piece, as opposed to the
Step & Repeat
function where the pattern must be repeated in
straight lines, at fixed distances from each other.
The following example illustrates the use of the
Call Subroutine
instruction. An
explanation follows.
Address
Instruction
1
Line Speed = 20
2
Call Subroutine (X1,Y1,Z1) address 7
3
Call Subroutine (X2,Y2,Z2) address 7
4
Call Subroutine (X3,Y3,Z3) address 7
5
Call Subroutine (X4,Y4,Z4) address 7
6
End Program
7
Line Start (Xs,Ys,Zs)
8
Line End (Xe,Ye,Ze)
9
End Program
START
Addr. 2
X1,Y1,Z1
Addr. 3
X2,Y2,Z2
Addr. 4
X3,Y3,Z3
Addr. 5
X4,Y4,Z4
END
Summary of Contents for F400N Series
Page 118: ......