Rockwell-automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User M Bedienungsanleitung Seite 149

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 312
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 148

Appendix B

B-18
C Example
unsigned status;
char buff [4];
.
.
.
buff[0] = 0x02;
buff[1] = ’5’;
buff[2] = ’5’;
buff[3] = 0x02;
while (1)
{
status = CC_DISPLAY_STR (buff);
sleep (2);
status = CC_DISPLAY_STR (“Fred”);
sleep (2);
}
BASIC Example
The BASIC function code is 102.
DIM status : INTEGER
.
.
.
rem * CC_DISPLAY_STR - Display the string -AB- on expander module
RUN AB_BAS (102,status,“-AB-”)
.
.
.
References
CC_ERROR(); CC_ERRSTR();
Seitenansicht 148
1 2 ... 144 145 146 147 148 149 150 151 152 153 154 ... 311 312

Kommentare zu diesen Handbüchern

Keine Kommentare