Rockwell-automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User M Uživatelský manuál Strana 141

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 312
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 140

Appendix B

B-10
BASIC Example
The BASIC function code is 33.
Important: For BASIC, the data type for the
outbuff and trgmask
parameters is INTEGER. There is no byte-type constant; therefore,
byte-type variables must be used to pass the byte-type information.
DIM status,timeout,outbuff(32),trgmask : INTEGER
DIM size : BYTE
.
.
.
timeout=4
trgmask=2
size=6
.
.
RUN AB_BAS(33,status,size,ADDR(outbuff(1)),timeout,trgmask)
.
.
.
References
BPI_READ();
Zobrazit stránku 140
1 2 ... 136 137 138 139 140 141 142 143 144 145 146 ... 311 312

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

Žádné komentáře