8-132Trio BASIC Commands
Process Parameters and Commands
Trio Motion Technology
RESET
Type:
Process Command
Description:
Sets the value of all the local named variables of a Trio BASIC process to 0.
RUN_ERROR
Type:
Process Parameter
Modifier:
PROC
Description:
Contains the number of the last program error that occurred on the specified proc-
ess.
Example:
>>? RUN_ERROR PROC(5)
9.0000
>>
TICKS
Type:
Process Parameter
Description:
The current count of the process clock ticks is stored in this parameter. The process
parameter is a 32 bit counter which is DECREMENTED on each servo cycle. It can
therefore be used to measure cycle times, add time delays, etc. The ticks parame-
ter can be written to and read.
Example:
delay:
TICKS=3000
OP(9,ON)
test:
IF TICKS<=0 THEN OP(9,OFF) ELSE GOTO test
Note:
TICKS
is held independently for each process.