Denso RC5 Dokumentacja Strona 227

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 692
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 226
Chapter 9 Declaration Statements
9-13
DEFPOS (Statement)
Function
Declares a position type variable.
Format
DEFPOS <Variable name>[=<Position type constant>][,<Variable name>
[=<Position type constant>]...]
Explanation
Declares a variable designated by <Variable name> as a position type variable.
By writing a constant after <Variable name>, initialization can be carried out
simultaneously with the declaration.
Multiple variable names can be declared at a time by delineating the names
using “,”.
Related Terms
DEFJNT, DEFTRN, DEFVEC
Example
6-axis DEFPOS lpx, lpy, lpz
'Declares lpx, lpy, and lpz as position type
variables.
DEFPOS lpx = (10, 10, 5, 0, 9, 0, 1)
'Declares lpx as a position type variable and sets
the 'initial value = (10, 10, 5, 0, 9, 0, 1).
6-axis DEFPOS lpx, lpy, lpz
'Declares lpx, lpy, and lpz as position type
variables.
DEFPOS lpx = (100, 100, 300, 45, 0)
'Declares lpx as a position type variable and sets
the 'initial value = (100, 100, 300, 45, 0).
Przeglądanie stron 226
1 2 ... 222 223 224 225 226 227 228 229 230 231 232 ... 691 692

Komentarze do niniejszej Instrukcji

Brak uwag