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

  • 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 163

Appendix B

B-33
BASIC Example
Important: For BASIC, the data type for the buff parameter is
INTEGER. There is no byte-type constant; therefore, byte-type variables
must be used to pass the byte-type information.
The BASIC function code is 113.
DIM apistat : INTEGER
DIM iostat : INTEGER
DIM buff : INTEGER
DIM r : BYTE
DIM g : BYTE
DIM m : BYTE
DIM s : BYTE
DIM rt : BYTE
.
.
.
r:=0
g:=5
m:=0
s:=1
rt:=1
buff :=$23
rem * CC_PLC_BTW - Put block transfer information to I/O
RUN AB_BAS (113,apistat,r,g,m,s,rt,ADDR(buff),ADDR(iostat))
print “data sent to module”
.
.
.
References
CC_PLC_BTR();
Zobrazit stránku 163
1 2 ... 159 160 161 162 163 164 165 166 167 168 169 ... 311 312

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

Žádné komentáře