Rockwell-automation 1747-PCIS API Software - Open Controller Manual de usuario Pagina 73

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 174
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 72
Publication 1747-UM002A-US-P - June 2000
Library of Routines 6-13
Return Value:
Considerations:
Supported in the DOS API library and the Windows NT API library
Example:
HANDLE Handle;
int retcode;
/* Use OC_SetForces() to configure forcing information first
*/
retcode = OC_EnableForces( Handle, FORCE_ENABLE );
OC_EnableSlot
OC_EnableSlot enables fine tuning of the I/O scanning process.
Syntax:
int OC_EnableSlot(HANDLE handle, int slotnum, int
state);
Parameters:
Name: Value: Description:
SUCCESS 0 forces were updated successfully
ERR_OCACCESS 2
handle does not have access to scanner
ERR_OCNOFORCES 15 no forces installed, scanner cannot enable forces
ERR_OCPARAM 8 parameter contains invalid value
ERR_OCRESPONSE 10 scanner did not respond to request
ERR_OCSCANCFG 14 scanner has not been configured
Parameter: Description:
handle Must be a valid handle returned from OC_OpenScanner
slotnum Must contain a valid slot number.
state If
state is:
SLOT_ENABLE the module is released from its reset state and
is included in the I/O scan
SLOT_DISABLE the module is no longer included in the I/O scan
and any outputs remain at their last state
Vista de pagina 72
1 2 ... 68 69 70 71 72 73 74 75 76 77 78 ... 173 174

Comentarios a estos manuales

Sin comentarios