Parker Automation Gemini GV6K Command Reference Manual page 128

Servo drive/controller
Table of Contents

Advertisement

EXE
Execute a Program From a Compiled Program
Type
PLC Scan Program
Syntax
i%EXEt
Units
i = Task Number
t = Program Name (6 characters or less)
Range
i = 1-10
Default
n/a
Response
n/a
See Also
INSELP, PCOMP, PEXE, PLCP, SCANP
Use the
command to start a standard (non-compiled) program from within a compiled
EXE
command specifies the name of the program, and the task in which it will be launched. The program
EXE
named in the
command need not be defined at the time the
EXE
program must be defined before the
then the task in which the
PLCP
however, that the
program cannot be executed in the Task Supervisor (task 0).
EXE
When a
program performs an
PLCP
specified by
command. When background task swapping allows the program to actually start running,
EXE
will be cleared and
SS.28
SS
command with either of these bits set, the new program will not run, and
will be cleared upon the next successful
SS.32
command if a currently running program is detected within the specified task, the
EXE
be used to initiate a new program if the task is not already running a program.
Like the
command, the program launched by the
INSELP
program, nor will it interrupt a
CAUTION: Using the
SCANP
to execute as often as every system update period (2 ms). An
running in Scan mode could therefore attempt to launch a program in the specified task as often as every
2 ms. This may not allow enough time for the program launched in the specified task by the
to complete before the same
command if a currently running program is detected, so timing must be considered when launching
EXE
programs with the
command.
EXE
To execute a compiled program from within a compiled
Example:
DEF PLCP1
; Define PLC program PLCP1
IF(IN.1=b1)
; If input 1 is active
3%EXE PROG1
; Launch program PROG1 in Task 3
ELSE
2%EXE PROG2
; Otherwise launch program PROG2 in Task 2
NIF
END
PCOMP PLCP1
; Compile PLCP1
SCANP PLCP1
; Scan with program PLCP1
126
Gemini GV6K/GT6K Command Reference
or
is issued. If no task number is assigned with a
SCANP
PRUN
program is compiled (
PCOMP
command,
bit 28 (
EXE
SS
bit 3 (
"PROGRAM EXECUTING"
directed to that task. Because the
EXE
or
command.
WAIT
T
command to run a
program in Scan mode will cause the
PLCP
command is issued again. As stated, the
EXE
PLCP
www.comoso.com
program is compiled; however, the
PLCP
) will be the task that runs the program. Note,
) will be set in the task
"PROGRAM PENDING"
) will be set. If a
program performs an
PLCP
bit 32 (
SS
"EXE FAILED"
PLCP
command will not interrupt a currently running
EXE
command used within a
EXE
program will ignore the
PLCP
program, use the
command.
PEXE
Product
Rev
GT6K
6.0
GV6K
6.0
program. The
PLCP
prefix,
%
EXE
) will be set.
program ignores the
command can only
EXE
program
PLCP
program
PLCP
command
EXE

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gemini gt6k

Table of Contents