Denso RC5 Specifikace Strana 227

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 692
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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).
Zobrazit stránku 226
1 2 ... 222 223 224 225 226 227 228 229 230 231 232 ... 691 692

Komentáře k této Příručce

Žádné komentáře