Denso RC5 Dokumentacja Strona 189

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 692
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 188
Chapter 8 PAC Language Syntax
8-7
[ 2 ] Type Declaration Instruction
The following type declaration commands can be used to declare the variable
type.
Type Declaration Instructions
Type Command Example
Integer type DEFINT DEFINT AA, AB
Single precision real
type
DEFSNG DEFSNG BA, BB
Double precision real
type
DEFDBL DEFDBL CA, CB
Character string type DEFSTR DEFSTR DA, DB
Vector type DEFVEC DEFVEC EA, EB
Position type DEFPOS DEFPOS FA, FB
Joint type DEFJNT DEFJNT GA, GB
Homogeneous
transformation type
DEFTRN DEFTRN HA, HB
In these commands a variable can be initialized together with type declaration.
In a declaration statement using these commands, a postposition cannot be
added to a variable name.
Example:
DEFINT AA = 1 'Assigns 1 to AA as an integer type.
DEFSNG BB (10) 'Sets BB to a single precision real
type 'of which number of elements is
10.
Bad example:
DEFINT AB% 'An error occurs because a
'postposition is used.
Przeglądanie stron 188
1 2 ... 184 185 186 187 188 189 190 191 192 193 194 ... 691 692

Komentarze do niniejszej Instrukcji

Brak uwag