EasyManua.ls Logo

Panasonic VR2 Series - Jump; Label

Panasonic VR2 Series
236 pages
Print Icon
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...
16-5
16-3-4. IF
Format
IF [Factor1][Condition][Factor2] THEN [Execute1] ELSE [Execute2]
Function Conditional branching.
Branch the next action according to
the result of the condition test.
Factor 1 Comparison operator 1
If it is terminal type. It must be [Terminal type]
+ [Terminal No.]
Terminal type:
I4#, I8#, I16#, O4#, O8# and
O16#.
Variable (GB, LB, GI, LI, GL, LL, GR, LR)
Condition Standard.
Lock condition None.
Syntax check None.
Condition [Relation condition]
=
Value 1 and Value 2 are equal.
<
Value 1 is smaller than Value 2.
>
Value 1 is bigger than Value 2.
<=
Value 1 is equal to or less than Value 2.
>=
Value 1 is equal to or bigger than Value 2.
<> Value 1 is not equal to Value 2.
Factor 2 Comparison operator 2
Execute 1 An instruction to be executed if the condition
is satisfied.
Execute 2 An instruction to be executed if the condition
is not satisfied.
Example If the value of LB001 is 10, jump to
Label ‘LABL0001”.
IF LB001 = 10 THEN JUMP
LABL0001 ELSE NOP
The same command in conventional
models
IF…
16-3-5. JUMP
Format
JUMP [Label]
Function Move to a specified Label (not necessary the next
in sequence) and execute operation.
Label Label name to jump to.
(Character string. Max. 8
characters.)
Condition Standard.
Lock condition None.
Syntax check The specified Label does not exist in the same
program.
Example Jump to LABL0001
JUMP LABL0001
The same command in
conventional models
GOTO STEP,
GOTO ADDR
16-3-6. LABEL
Format
: [Label]
Function Jump address.
Condition Standard.
Label Label name to jump to. (Character string.
Max. 8 characters.)
Lock condition None.
Syntax check None.
* You cannot register the same label name
more than once in one program.
Example Create a label “LABL0001”
:LABL0001
The same command in
conventional models
*S, *A

Table of Contents

Related product manuals