Rockwell-automation 2098-IPD-xxx Ultra5000 C Programming using the Mot Uživatelský manuál Strana 55

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 114
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 54
Publication 2098-PM001E-EN-P — July 2002
Referencing the Motion Library 2-15
Program Services
long InitMotionLibrary(void);
Initializes the motion library functions so the program may access
them. If this function is not called, all motion library function calls will
fail.
Returns 0 if successful, or -1 on an error.
long ProgramKill(char* name);
Halts execution of the specified program (i.e., motion is not stopped).
Returns 0 if successful, or -1 on an error.
long ProgramRun(char* name);
Initiates execution of the specified program.
Returns 0 if successful, or -1 on an error.
long ProgramStop(char* name);
Sets the StopRequested flag for the specified program (i.e., motion is
not stopped).
Returns 0 if successful, or -1 on an error.
long Sleep(long ms);
Delays program execution for the number of milliseconds specified in
the ms argument.
Returns 0 if successful, or -1 on an error.
IMPORTANT
If Motion Library functions are used in a program,
this function should be called as the first line of the
program’s main function, and must be made before
calling other Motion Library functions.
Zobrazit stránku 54
1 2 ... 50 51 52 53 54 55 56 57 58 59 60 ... 113 114

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

Žádné komentáře