Prosoft-technology MVI56E-LDM Bedienungsanleitung Seite 136

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 264
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 135
CIP API Functions ControlLogix Platform "C" Programmable
Developer's Manual Linux Application Development Module
Page 130 of 264 ProSoft Technology, Inc.
March 12, 2014
Example
OCXHANDLE hApi;
OCXTAGDBHANDLE hTagDb;
OCXCIPTAGDBSTRUCT structInfo;
OCXCIPTAGDBSTRUCTMBR structMbrInfo;
WORD hStruct;
WORD mbrId;
int rc;
rc = OCXcip_GetStructInfo(hApi, hTagDb, hStruct, &structInfo);
if ( rc == OCX_SUCCESS )
{
for ( mbrId =0; mbrId < structInfo.numMbr; mbrId++)
{
rc = OCXcip_GetStructMbrInfo (hApi, hTagDb, hStruct, mbrId,
&structMbrInfo);
if (rc == OCX_SUCCESS)
printf("Successfully retrieved member info\n");
else
printf ("Error %d getting member info\n", rc);
}
}
See Also
OCXcip_BuildTagDb , OCXcip_TestTagDbVer , OCXcip_GetSymbolInfo ,
OCXcip_GetStructInfo
Seitenansicht 135
1 2 ... 131 132 133 134 135 136 137 138 139 140 141 ... 263 264

Kommentare zu diesen Handbüchern

Keine Kommentare