Oc_pethostwatchdog, Oc_pethostwatchdog -43 – Rockwell Automation 1747-PCIS API Software - Open Controller User Manual

Page 103

Advertising
background image

Publication 1747-UM002A-US-P - June 2000

Library of Routines 6-43

Considerations:

Supported in the DOS API library and the Windows NT API library

Example:

HANDLE

Handle;

int

retcode;

retcode

=

OC_OpenScanner(&Handle, 0, 0 );

if OC_OpenScanner(&Handle, 0xC800, IRQ11) ! = SUCCESS)

{printf(‘Scanner could not be opened!\n’);}

OC_PetHostWatchdog

OC_PetHostWatchdog increments the host-to-scanner watchdog
register of the scanner.

Syntax:

void

OC_PetHostWatchdog(HANDLE handle);

Parameters:

Description:

OC_PetHostWatchdog must be called at time intervals less than the
timeout value specified in the OC_SetHostWatchdog function.

Return Value:

Considerations:

Supported in the DOS API library and the Windows NT API library

Example:

HANDLE

Handle;

retcode = OC_PetHostWatchdog( Handle );

Parameter:

Description:

handle

Must be a valid handle returned from OC_OpenScanner

Name:

Value:

Description:

SUCCESS

0

watchdog was updated successfully

ERR_OCACCESS

2

handle

does not have access to scanner

Advertising
This manual is related to the following products: