Prosoft-technology MVI56E-LDM Manuel d'utilisateur Page 211

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 264
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 210
ControlLogix Platform "C" Programmable CIP API Functions
Linux Application Development Module Developer's Manual
ProSoft Technology, Inc. Page 205 of 264
March 12, 2014
OCXcip_SetModuleStatusWord
Syntax
int OCXcip_SetModuleStatusWord (OCXHANDLE apihandle,
WORD statusWord,
WORD statusWordMask);
Parameters
apihandle
handle returned by previous call to OCXcip_Open
statusWord
Module status data
statusWordMask
Bit mask specifying which bits in the status are to be modified
Description
OCXcip_SetModuleStatusWord allows an application to set the 16-bit status
attribute of the module's Identity Object. apiHandle must be a valid handle
returned from OCXcip_Open.
statusWordMask is a bit mask that specifies which bits in statusWord are written to
the module's status attribute. Standard status word bit fields are defined by
definitions with names beginning with OCX_ID_STATUS_. See the API header for
more information
Return Value
OCX_SUCCESS
Success
OCX_ERR_NOACCESS
apihandle does not have access
Example
OCXHANDLE apiHandle;
/* Set the status to indicate a minor recoverable fault */
OCXcip_SetModuleStatusWord (apiHandle,
OCX_ID_STATUS_RCV_MINOR_FAULT,
OCX_ID_STATUS_FAULT_STATUS_MASK);
Vue de la page 210
1 2 ... 206 207 208 209 210 211 212 213 214 215 216 ... 263 264

Commentaires sur ces manuels

Pas de commentaire