Prosoft-technology MVI56E-LDM Uživatelský manuál Strana 198

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 264
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 197
CIP API Functions ControlLogix Platform "C" Programmable
Developer's Manual Linux Application Development Module
Page 192 of 264 ProSoft Technology, Inc.
March 12, 2014
OCXcip_SetDisplay
Syntax
int OCXcip_SetDisplay (OCXHANDLE apihandle,
char * display_string);
Parameters
apihandle
handle returned by previous call to OCXcip_Open
display_string
4-character string to be displayed
Description
OCXcip_SetDisplay allows and application to load 4 ASCII characters to the
alphanumeric display.
apihandle must be a valid handle returned from OCXcip_Open.
display_string must be a pointer to a NULL-terminating string whose length is
exactly 4 (no including the NULL).
Return Value
OCX_SUCCESS
The display was set successfully
OCX_ERR_NOACCESS
apihandle does not have access
OCX_ERR_BADPARAM
display_string length is not 4
Example
OCXHANDLE apiHandle;
char buf[5];
/* Display the time as HHMM */
OCXcip_SetDisplay (apiHandle, buf);
Zobrazit stránku 197
1 2 ... 193 194 195 196 197 198 199 200 201 202 203 ... 263 264

Komentáře k této Příručce

Žádné komentáře