Rockwell-automation 1747-PCIS API Software - Open Controller Bedienungsanleitung Seite 141

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 174
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 140
Publication 1747-UM002A-US-P - June 2000
Library of Routines 6-81
Return Value:
Considerations:
Supported in the Windows NT API library only.
Example:
Byte buf[100];/*buffer of important data*/
Word crc;
HANDLE handle;
/* Save 100 bytes of data to offset 0 in SRAM */
OC_WriteSRAM(handle, buf, 0, 100);
/* Calculate CRC */
OC_CalculateCRC(buf, 100, &crc);
/* Write data CRC to offset 100 in SRAM */
OC_WriteSRAM(handle, &crc, 100, 2);
Name: Description:
SUCCESS data was written successfully
ERR_OCACCESS
handle does not have access to scanner
ERR_OCPARAM offset+length points past the end of the memory
Seitenansicht 140
1 2 ... 136 137 138 139 140 141 142 143 144 145 146 ... 173 174

Kommentare zu diesen Handbüchern

Keine Kommentare