Rockwell Automation 6008-SV2R VMEbus remote I/O Scanner User Manual

Page 138

Advertising
background image

Chapter

Programming the Scanner

8

8Ć4

/* send the command interrupt */
assert_cmd(chan);

/* wait for command result */
if (wait_for_cmdcmpl(chan) == FALSE) {

unlock_gda(chan);
unmap_channel(chan);
fprintf(stdout, ”setup: wait failure, locked cleared\n”);
return –2;

}

/* clear the semaphore bit & unmap the channel */
res = csa–>cnfstat;
unlock_gda(chan);
unmap_channel(chan);
return (int) res;

}

Advertising
This manual is related to the following products: