beautypg.com

Rockwell Automation 6008-SI IBM PC I/O SCNNR 6008-SI User Manual

Page 48

background image

Chapter 5

Startup, Status, and Shutdown

5-5

start_6008

This function does a partial setup. Your program would call this function
rather than setup_6008 only when for some reason you want to
synchronize with the scanner but not set the baud rate and resistor and not
do an initial autoconfigure.

Calling sequence:

status = start_6008(

irq_l,segment

);

Arguments:

irq_l:

same as under setup_6008 above.

segment:

same as for setup_6008 above.

Returned values:

status: SC_OK 0(hex) if the sync proceeded without error,

SC_PENDING FF(hex) if the sync timed out, SC_NOT_OK 01(hex) if
the segment argument was illegal, SC_BAD_REQ 10(hex) if the
scanner had already been synchronized earlier in this execution,
SC_BAD_VERSN FE(hex) if the scanner firmware series didn’t match
the host, or a confirmation error status returned from the scanner.

If the returned status is anything but SC_OK, your program should

display the status value and the value of function fatal_6008, then abort
execution.