EasyManua.ls Logo

Janome JR2000N Series - CONDITION

Janome JR2000N Series
99 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Features II JS/JSR4400N SCARA Robot
JSG GANTRY Robot
JR2000N Desktop Robot
45
IF BRANCH, WAIT CONDITION
if Branch: if, then, else, endIf
This section explains the point job data commands for performing different jobs according to
conditions. These belong to the [if Branch, Wait Condition] command category.
Command Category Command Parameter Job
if – if Branch
then Execute the following command if true:
else Execute the following command if false:
if Branch, Wait Condition
endIf End of if Branch
z Be sure to put a conditional command after the if command.
For example, perform the following point jobs
using the if, then, else and endIf commands:
Example 1
If #genIn2 is on, raise the Z-Axis by 10mm
and output a pulse to #genOut1.
If #genIn2 is not on, lower the Z-Axis by
10mm and output a pulse to #genOut2.
The Example 1 above will be performed using the following point job commands:
if
ld #genIn2
then
upZ 10,20
pulse #genOut1,200
else
downZ 10,20
pulse #genOut2,200
endIf
If the following condition is true, go to then. If false, go to else.
#genIn2 = ON (Condition)
If the condition is true, execute the following commands:
Raise the Z-Axis by 10mm at 20mm/sec, and
Output ON pulse to #genOut1. (in 0.2sec widths).
If the condition is false, execute the following commands.
Lower the Z-Axis by 10mm at 20mm/sec, and
Output ON pulse to #genOut2 (in 0.2sec widths).
End of if Branch
#genIn2=ON
Ascend 10mm.
Output to #genOut1.
Descend 10mm.
Output to #genOut2.

Table of Contents

Related product manuals