Trajexia system
PROGRAMMING MANUAL
14
R
e
vi
si
o
n
1
.0
2.4
Motion execution
Every task on the TJ2-MC64 has a set of buffers that holds the information
from the motion commands given.
2.4.1
Motion generator
The motion generator has a set of up to 64 motion buffers for each axis.
One buffer called
MTYPE
, holds the Actual Move, which is the move
currently executing on the axis. The next buffer called
NTYPE
, holds the
Next Move, which is executed after the Actual Move has finished.
See chapter 2.8 “Motion Buffers” in the Trajexia Hardware Reference
manual for detailed explanation.
The BASIC programs are separate from the motion generator program,
which controls moves for the axes. The motion generator has separate
functions for each axis, so each axis is capable of being programmed with its
own axis parameters (for example speed, acceleration) and moving
independently and simultaneously or they can be linked together using
special commands.
When a move command is being processed, the motion generator waits until
the move is finished and the buffer for the required axis has become empty,
and then loads these buffers with the next move information.
fig. 2
Move
Loading
Sequencing
Axis
Task 1
MOVECIRC(..) AXIS(0)
FORWARD AXIS(1)
MOVE(..) AXIS(0)
Task 2
Motion
Generator
Task 3
Next Move (NTYPE)
Move buffers
Task buffers
Next Move (NTYPE)
MOVE (1)
MOVECIRC (4)
FORWARD (10)
MOVECIRC (4)
IDLE (0)
IDLE (0)
0
1
2
Note
If the task buffers are full, the program execution is paused until
buffers are available again. This also applies to the command line
task and no commands can be given for that period. Trajexia Stu-
dio will disconnect in such a case. The
PMOVE
task parameter will
be set to TRUE when the task buffers are full and will be reset to
FALSE when the task buffers are available again.