Rockwell-automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User M Instrukcja Użytkownika Strona 151

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 312
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 150

Appendix B

B-20
C Example
unsigned status;
unsigned machine1;
unsigned iostat;
unsigned short parts1;
char *err_stg;
.
.
.
status = DTL_READ_W (machinel, &parts1, &iostat);
if (status != DTL_SUCCESS || iostat !=DTL_SUCCESS)
{
err_str = CC_ERROR (status)
printf (“Error during read : %s - status = %d\n”,err_str,status);
err_str = CC_ERROR (iostat)
printf (“Error during read : %s - iostat = %d\n”, err_str,iostat);
}
.
.
.
BASIC Example
The BASIC function code is 100.
DIM ptr : INTEGER
DIM iostat : INTEGER
.
.
.
rem * CC_ERROR - Get the pointer to the string for the iostat value
RUN AB_BAS (100,ptr,iostat)
print using “h8”,ptr
.
.
.
References
CC_ERRSTR();
Przeglądanie stron 150
1 2 ... 146 147 148 149 150 151 152 153 154 155 156 ... 311 312

Komentarze do niniejszej Instrukcji

Brak uwag