Features II JS/JSR4400N SCARA Robot
JSG GANTRY Robot
JR2000N Desktop Robot
62
■
Subroutine Call for Point Job Data: callJob
While performing a point job, another point job data can be called and executed as a subroutine.
A point job can be clearer and easier if you create a specific job common to multiple point job data sets (e.g.
error handling) as a point job data set and call it when necessary.
Also, if you extract command lines from a point job data set and create them as another point job data
set, you can check a part of the point job data.
Command Category
Command
Parameter
Job
Execute Flow Control
callJob
Point Job Number
Call a subroutine of the point job data
for the given number.
z
The
callJob
command is deactivated at points where the (base) point type [CP Passing Point] is
set.
set #genOut1
downZ 20,20
Label 1
waitStartBZ
if
ld #genIn1
then
reset #genOut1
else
jump L1
endIf
waitCondTime 200
ld #genIn1
timeUp
set #genOut1
downZ 20,20
Label 1
waitStartBZ
if
ld #genIn1
then
reset #genOut1
else
jump L1
endIf
endWait
waitCondTime 200
ld #genIn1
timeUp
callJob 91
endWait
Command lines for timeup
are extracted and converted
into another point job data
set.
Point job data No. 91 can
be called by the
callJob
command.
e.g. Point Job No. 91
After the called point job data (No. 91 in this example) is complete, the next command line of the
callJob
command (
endWait
in this example) in the calling point job data is performed.