ElmoMC Multi-Axis Motion Controller-Maestro User Manual

Page 104

Advertising
background image

Maestro

Software Manual

MAXL Program Language

MAN-MASSW (Ver. Q)

2. Set Static Variable syntax

[Static Variable Name] = [const value, expression]

[Static Variable Name][index] = [const value, expression],

where index need if Static Variable is qn array.

For example:

fVar = 5.23
iArr4[0] = 3
iArr34[1, 2] = a2.px

5.9.4

Working with Static Variables in the Maestro

Program Interpreter

1. Get Static Variable syntax is

[value, expression]=[Static Variable Name]

[value, expression]=[Static Variable Name][index]

where

index need if Static Variable is an array.

For example:

int i, j, n

float f

f = fVar
j = iArr4[0]
n = iArr34[i, j]

2. Set Static Variable syntax is

[Static Variable Name] = [const value, expression]

[Static Variable Name][index] = [const value, expression]

where index need if Static Variable is array.

For example:

int i, j, n

fVar = 5.23
iArr4[0] = j
iArr34[i, j] = n

Static Variable can be used in logical operations if, switch, while, until etc.

5-42

Advertising