Features II                     JS/JSR4400N SCARA Robot 
JSG GANTRY Robot 
JR2000N Desktop Robot 
48
z  endWait and timeUp cannot be used alone. 
z For waitCondTime, the wait time can be set using variables and expressions. 
 
 
Example: 
  declare num wtime 
 if 
   ld #genIn3 
 then 
   wtime = 3000 
 else 
   wtime = 1000 
 endIf 
 waitCondTime wtime 
   ld #genIn2 
 timeUp 
   set #genOut2 
   waitStartBZ 
   reset #genOut2 
 endWait 
Declare a local variable wtime. 
If 
  #genIn3=ON 
then 
  Assign 3000 to wtime. 
If not 
  Assign 1000 to wtime. 
 
Wait for 3 or 1sec until the following condition is met: 
  #genIn2=ON (Condition) 
If the condition is not met within 3 or 1sec, 
 Output ON signal to #genOut2, 
 Stand by in place until a start signal comes. 
 When a start signal comes, output an OFF signal to #genOut2. 
End of the command line if the condition is not met within 3 or 1sec.