Rockwell-automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User M Manuel d'utilisateur Page 161

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 312
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 160

Appendix B

B-30
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 114.
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
rem * CC_PLC_BTR - Get block transfer information from I/O
RUN AB_BAS (114,apistat,r,g,m,s,rt,ADDR(buff),ADDR(iostat))
print using “S20<,H8”, “Value from module = ”, buff
.
.
.
References
CC_PLC_BTW();
Vue de la page 160
1 2 ... 156 157 158 159 160 161 162 163 164 165 166 ... 311 312

Commentaires sur ces manuels

Pas de commentaire