8-130Trio BASIC Commands
Process Parameters and Commands
Trio Motion Technology
LOOKUP
Type:
Process Command
Syntax:
LOOKUP(format,entry) <PROC(process#)>
Description:
The LOOKUP command allows Motion Perfect to access the local variables on an
executing process. It is not normally required for BASIC programs.
Parameters:
OUTDEVICE
Type:
Process Parameter
Description:
The value in this parameter determines the serial output device for the
PRINT
com-
mand for the process. The channel numbers are the same as described in
INDEVICE
.
PMOVE
Type:
Process Parameter
Modifier:
PROC
Description:
Returns 1 if the process move buffer is occupied, and 0 it is empty. When one of the
Motion Coordinator processes encounters a movement command the process loads
the movement requirements into its “process move buffer”. This can hold one
movement instruction for any group of axes. When the load into the process move
buffer is complete the
PMOVE
parameter is set to 1. When the next servo interrupt
occurs the motion generation program will load the movement into the “next move
buffer” of the required axes if these are available. When this second transfer is
complete the
PMOVE
parameter is cleared to 0. Each process has its own
PMOVE
parameter.
format:
0: Prints (in binary) floating point value from an expression
1: Prints (in binary) integer value from an expression
2: Prints (in binary) local variable from a process
3: Returns to BASIC local variable from a process
entry:
Either an expression string (format=0 or 1) or the offset
number of the local variable into the processes local varia-
ble list.