EasyManuals Logo

Trio Motion Coordinator MC216 User Manual

Trio Motion Coordinator MC216
566 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #181 background imageLoading...
Page #181 background image
Motion Coordinator Technical Reference Manual
Programming 7-9
Expressions
Trio BASIC has three different variable types:
If the controller features a battery backed memory,
VR()
variables and
TABLE
memory will be retained when the power is off. For controllers without a battery,
the
FLASHVR()
command is provided to store the values in flash eprom memory.
Expressions
An expression is defined as any calculation or logical function which has to be
evaluated. An expression may be used anywhere a number is required, or a
logical (TRUE/FALSE) decision. In the case of logical expressions, TRUE is deemed
to be any non-zero result.
In programming, the component parts of an expression are known as operands
and operators. The operands are the values, either specific numbers, or
variables. The operators are those functions or actions which act on the
operands.
named variables
These are LOCAL variables - i.e. they are only valid
within the task they are defined.
Each process can define up to 256 named variables (1024
on MC206).
Example:
a=123
SPEED=user_speed
PRINT #3,”Length =;prod_length[2]
VR() variables
The controller has a global array of 251
VR()
variables
which are shared between tasks (1024 on MC206).
Example:
VR(2)=123.4567
TABLE memory
The
TABLE
memory is a large array of up to 16000 entries
depending on the controller type. Normally used to store
profiles for the
CAM
/
CAMBOX
commands.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Trio Motion Coordinator MC216 and is the answer not in the manual?

Trio Motion Coordinator MC216 Specifications

General IconGeneral
BrandTrio
ModelMotion Coordinator MC216
CategoryController
LanguageEnglish

Related product manuals