Parker Automation Gemini GV6K Command Reference Manual page 71

Servo drive/controller
Table of Contents

Advertisement

DEF
Begin Program/Subroutine Definition
Type
Program or Subroutine Definition
Syntax
<a_><!>DEF<t>
Units
t = alpha text string (name of a program)
Range
text string of 6 characters or less
Default
n/a
Response
n/a
See Also
$, DEL, END, ERASE, GOBUF, GOSUB, GOTO, MEMORY, PCOMP, PLCP,
PRUN, RUN, [ SS ], TDIR, TMEM, TPROG, TSS, TSTAT
The
command is the beginning of a program or subroutine definition. The syntax for the command is
DEF
followed by 6 or fewer alpha-numeric characters. The first character may not be a number. Refer to the
DEF
command description for information on program size restriction and total number of programs
MEMORY
possible per product.
All programs are stored in a binary fashion within the Gem6K. A program transferred back out (
after it has been defined (
DEF
functionally identical.
When defining a program and the memory limitation is exceeded, an error message will
be generated, and bit 11 of the system status register will be set (SS or TSS). The
program will be stored up to the point where the memory limitation was exceeded.
There is no actual difference in the definition of, or execution of a program versus the definition, or
execution of a subroutine. Both a program and a subroutine are defined as the set of commands between a
and an
command. If an invalid program/subroutine name is entered, an error message will be
DEF<t>
END
generated. An invalid program/subroutine name is any name that is also a current command. (An example
of an invalid name would be
subroutine call from the
hom1
assigned the name "
" and cannot contain any of the following characters:
CLR
,
,
,
,
,
,
,
,
,
,
,
!
#
$
%
^
&
*
(
)
+
The
command can be used to start executing a program/subroutine. The program name by itself can
RUN
also be used to start executing a program/subroutine. A compiled motion profile must be compiled with the
command before it can be executed with the
PCOMP
must be compiled with
PCOMP
The
and
commands can be used within a program/subroutine to go to another
GOTO
GOSUB
program/subroutine.
NOTE: Program, compiled profile, or subroutine names must be deleted (
redefined.
Example:
DEL pick
; Delete program named pick
DEF pick
; Begin definition of program named pick
GO1
; Initiate motion
END
; End program definition
RUN pick
; Execute program pick
), may not look identical to the program defined. However, the program is
NOTE
, because it is impossible for the operating system to distinguish the
DEFhom1
go home command.). A subroutine/program definition cannot be
HOM1
,
,
,
,
,
,
,
,
,
,
,
-
_
=
{
}
\
|
"
:
;
'
PRUN
before it can be executed with the
www.comoso.com
,
,
,
,
,
.
<
>
,
.
?
/
command; and a compiled PLC (
or
command.
SCANP
PRUN
) before they can be
DEL
Command Descriptions
Product
Rev
GT6K
6.0
GV6K
6.0
)
TPROG
) program
PLCP
69

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gemini gt6k

Table of Contents