24
Gemini GV6K/GT6K Command Reference
Because the
%
prefix specifies the task number that the
associated command will affect, new tasks can be
started from within other tasks, as shown in the
drawing on the right.
Within a program in a task, it is not necessary to use
the
%
prefix unless trying to initiate a program or
command in a different task. For example, if the
fill
program running in task 3 executes a
COMEXC1
command, only task 3 is placed into
COMEXC1
mode.
If the
fill
program running in task 3 also executes a
2%PS
command, task 3 executes the command, but the
program being executed in task 2 is paused, not task 3.
DEF main
---
---
1%move1
---
---
END
Program Memory
Task Management
Supervisor
Task 1
Gx6K Drive
Running "main"
Execute "move1"
Program:
main
DEF move1
---
---
3%fill
---
---
END
Task 3
Execute "fill"
Program:
move1
How the Task Supervisor Works
: The “Task Supervisor” (also referred to as Task
Ø
) is the main program
execution environment. It contains the command buffer and parser. Immediate commands and commands
executed from the communications buffer are implicitly directed to affect the supervisor unless explicitly
directed to a task with the
%
prefix. Only the supervisor executes buffered commands from the
communications buffer. If the supervisor is executing a program, incoming commands will be buffered,
not executed. If the supervisor is not executing a program, it will execute commands from the input
command buffer, even if the other tasks are executing programs. If a command in the command buffer has
a task prefix, it is still executed by the supervisor, but affects the task specified by the prefix.
[ ! ]
mmediate Command Identifier
Type
Operator
(Other)
Syntax
<a_>!<command>
Units
n/a
Range
n/a
Default
n/a
Response
n/a
See Also
COMEXC
Product Rev
GT6K 6.0
GV6K 6.0
The Immediate Command Identifier (
!
) changes a buffered command into an immediate command. All
immediate commands are processed immediately, even before previously entered buffered commands.
All Gem6K commands are buffered.
The commands that use the
!
identifier are identified in the
Syntax
portion of the command description.
NOTE
A command with the
!
prefix cannot be stored in a program.
www.comoso.com
Содержание Gemini GV6K
Страница 24: ...www comoso com...
Страница 40: ...www comoso com...
Страница 344: ...www comoso com...
Страница 350: ...www comoso com...