Elmomc Multi-Axis Motion Controller-Maestro Manuel d'utilisateur Page 74

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 313
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 73
MAXL supports two kinds of object attributes:
Command
o Getter
o Setter
o Getter/Setter
o Executer
Method
5.2.4.3 Debug string
To facilitate the debugging process MAXL supports run-time debug messages. It is
very similar to the TRACE macro in the MFC. The program places the TRACE
operator inside MAXL program source code with formatted debug strings. This string
will appear in the Elmo Studio when the program executes to this point. Elmo Studio
uses a debug window to display debug messages.
Syntax
TRACE ( format-string [, arguments])
Examples:
function fun(int val)
TRACE(“input value : %”, val)
end function
This example shows how to use the debug mechanism to retrieve the real-time value
of variable val.
5.3 Standard Conversions
Automatic conversion from integer to float and vice versa is
performed.
For example:
int i
float f
i = 5.5 // after this program line is executed, variable i contains 5
f = i // after this program line is executed variable f contains 5 as well
Type of any binary operation is defined according to operands type:
First
Operand
Type
Second Operand
Type
Result Type
Integer Integer Integer
Float Integer Float
Integer Float Float
Float Float Float
Maestro Software Manual MAXL Program Language
MAN-MASSW (Ver. Q)
5-12
Vue de la page 73
1 2 ... 69 70 71 72 73 74 75 76 77 78 79 ... 312 313

Commentaires sur ces manuels

Pas de commentaire