Prosoft-technology MVI56E-LDM Bedienungsanleitung Seite 118

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 264
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 117
CIP API Functions ControlLogix Platform "C" Programmable
Developer's Manual Linux Application Development Module
Page 112 of 264 ProSoft Technology, Inc.
March 12, 2014
ta2.eleSize = 2;
ta2.opType = OCX_CIP_TAG_READ_OP;
ta2.numEle = 1;
ta2.data = (void *) &rdVal;
ta2.wrMask = Null;
ta2.result = OCX_SUCCESS;
pTa[0] = &ta1;
pTa[1] = &ta2;
rc= OCXcip_AccessTagData(Handle, "p:1.s:0",2500, pTa,2)
if (OCX_SUCCESS!= rc)
{
printf("OCXcip_Access_Tag_Data() error = %d\n", rc);
}
else
{
if(ta1.result!=OCX_SUCCESS)
printf("%s write error = %d\n", ta1.tagName, ta.result);
else
printf("%s write successful\n",ta1.tagName);
if (ta2.result!=OCX_SUCCESS)
printf("%s read error = %d\n", ta2.tagName, ta.result);
else
printf("%s = %d\n, ta2.tagName.rdVal);
}
See Also
OCXcip_ReadConnected
Seitenansicht 117
1 2 ... 113 114 115 116 117 118 119 120 121 122 123 ... 263 264

Kommentare zu diesen Handbüchern

Keine Kommentare