8ć17, Reset command – Rockwell Automation 6008-SV2R VMEbus remote I/O Scanner User Manual
Page 151
Advertising

Chapter
Programming the Scanner
8
8Ć17
RESET command
/*
**
** RESET() –– soft–reset a 6008–SV2
**
**
This routine forces a 6008–SV2 into the RESET state. Note that this affects BOTH
**
scanner channels. Once the 6008–SV2 has been soft RESET, each channel must be
**
awakened by the wakeup() routine and reconfigured.
**
**
parameters:
pointer to channel structure
**
return values:
none
**
*/
void
reset (channel far *chan)
{
unsigned short far *wordptr;
/* map channel & establish pointers */
map_channel(chan);
wordptr = (unsigned short far *) chan–>VmeIdArea;
/* write the VME ID AREA of scanner */
wordptr[0] = 0x0080;
wordptr[1] = 0xA0A0;
/* unmap the channel */
unmap_channel(chan);
return;
}
Advertising
This manual is related to the following products: