Prosoft-technology MVI69-ADM Manual do Utilizador Página 314

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 342
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 313
Side-Connect API Library Functions MVI-ADM 'C' Programmable
Developer's Guide 'C' Programmable Application Development Module
Page 314 of 342 ProSoft Technology, Inc.
February 20, 2013
11.5 Side-connect API Synchronization Functions
MVIsc_WaitForEos
Syntax
int MVIsc_WaitForEos(HANDLE handle, WORD timeout);
Parameters
handle Handle
returned by previous call to MVIsc_Open
timeout
Maximum number of milliseconds to wait
Description
MVIsc_WaitForEos allows an application to synchronize with the PLC-5’s ladder
scan.
This function will return when the PLC-5 reaches the end of the ladder scan.
handle must be a valid handle returned from MVIsc_Open.
Return Value
MVISC_SUCCESS
The PLC-5 has reached the end of the ladder scan.
MVISC_ERR_NOACCESS
handle does not have access
MVISC_ERR_PLCTIMEOUT
The timeout expired before an end of scan occurred.
Example
HANDLE Handle;
/* Wait here until EOS, 5 second timeout */
rc = MVIsc_WaitForEos(Handle, 5000);
Vista de página 313
1 2 ... 309 310 311 312 313 314 315 316 317 318 319 ... 341 342

Comentários a estes Manuais

Sem comentários