Features II JS/JSR4400N SCARA Robot
JSG GANTRY Robot
JR2000N Desktop Robot
91
Both of the following point job data items use a local variable count, but the two variables do not
interfere with each other since a local variable is activated only in point job data containing a declare
command. For example, if 0 is assigned to the variable count in point job data 24 (or 05), the value of
the variable count in point job data 05 (or 24) will not change.
e.g. Point Job Data 05
declare numeric count
count=0
do
count=count+1
callJob 24
if
ld count>=10
then
exitDo
endIf
loop
Numeric local variable count declaration
Set the initial value 0 to the variable count.
Repeat the commands between do and loop.
Add 1 to the variable count.
Execute point job data 24.
If
the value of the variable count is larger than 10,
jump to the next command of the loop command.
Return to the do command.
e.g. Point Job Data 24
declare count
count=0
Label 1
pulse #genOut11,250
count=count+1
if
ld count<=3
then
jump L1
endIf
Local variable count declaration
Set the initial value 0 to the variable count.
Label 1 (jump destination mark)
Output (Turn on) a pulse signal to #genOut11.
Add 1 to the variable count.
If
the value of the variable count is less than 3,
jump to Label 1.