8-
14
ROBOT LANGUAGE
8-4 Robot Language Description
8
8-4-12 P
Function:
Sets
a
point
variable
P.
Format:
P
<point
number>
Example:
P
200
Sets
a
point
variable
P
to
200
.
Explanation:
The
point
variable
can
contain
a
point
number
as
a
variable,
which
can
be
from
0
to
999
.
By
using
a
movement
command
such
as
MOVA
with
a
P+
or
P-
statement,
the
number
of
steps
required
to
create
a
repeating
program
can
be
reduced.
Other:
•
The
contents
of
point
variable
P
are
retained
even
when
the
controller
power
is
turned
off,
but
when
the
program
is
reset
or
when
the
pro-
gram
reset
is
applied
for
example
by
switching
the
execution
program,
the
point
variable
P
will
be
initiali
z
ed
to
0
.
•
Point
variables
P
in
a
task
are
independent
of
those
in
other
tasks.
For
example,
the
definition
and
edited
contents
of
a
point
variable
used
in
task
1
do
not
affect
the
point
variable
used
in
task
0
.
8-4-13 P+
Function:
Adds
1
to
a
point
variable
P.
Format:
P+
Example:
P+
Adds
1
to
a
point
variable
P.
(
P
←
P+1
)
Explanation:
Adds
1
to
a
point
variable
P.
8-4-14 P-
Function:
Subtracts
1
from
a
point
variable
P.
Format:
P-
Example:
P-
Subtracts
1
from
a
point
variable
P.
(
P
←
P-1
)
Explanation:
Subtracts
1
from
a
point
variable
P.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com