Rockwell Automation 1785-Vx0B, D17856.5.9 PLC-5 VME VMEbus Programmable Controllers User Manual User Manual

Page 182

Advertising
background image

Sample API Modules

Appendix B

B-24

* VME_INTERRUPT_LEVEL_TYPE cmdIntLevel contains the VME bus
* interrupt to be generated by the PLC–5/40V AFTER storing
* its response in the response word of the command block AFTER
* COMMAND completion. If kVME_NO_INT_LEVEL is specified, then
* no VME bus interrupts will be generated.
*
* UBYTE cmdStatusId contains a unique value which will be used
* by the interrupted host processor to run a specific
* interrupt service routine. This variable must be set to
* zero if you are NOT using any command interrupts.
*
* VME_INTERRUPT_LEVEL_TYPE operationIntLevel contains the VME
* bus interrupt to be generated by the PLC–5/40V AFTER each
* copy OPERATION. If kVME_NO_INT_LEVEL is specified, then
* no VME bus interrupts will be generated.
*
* UBYTE operationStatusId contains a unique value which will
* be used by the interrupted host processor to run a specific
* interrupt service routine. This variable must be set to
* zero if you are NOT using any operation interrupts.
*
* OUTPUT: PLC540V_STATUS_TYPE *status will contain the final status
* of requesting this function. This status could be and EPC
* or PLC–5/40V value.
*
* RETURNS: Nothing.
*
* EXAMPLE:
* ULONG vmeDataAddr = 0x80000;
* UWORD vmeDataSize = 0x100;
* ULONG vmeCmdBlkAddr = 0x90000;
* UWORD baseAddress = 0xFC00;
* VME_DATA_WIDTH_TYPE width = kVME_D16_DATA_WIDTH;
* VME_ADDRESS_MODIFIER_TYPE addrMod = kVME_A16_ADDR_SPACE;
* UWORD fileNumber = 11;
* UWORD elementNumber = 20;
* VME_INTERRUPT_LEVEL_TYPE cmdIntLevel = kVME_NO_INT_LEVEL;
* UBYTE cmdStatusId = 0;
* VME_INTERRUPT_LEVEL_TYPE operationIntLevel=kVME_NO_INT_LEVEL;
* UBYTE operationStatusId = 0;
* PLC540V_STATUS_TYPE status;
* plc540v_init_cont_copy_from_VME(
* vmeDataAddr,
* vmeDataSize,
* vmeCmdBlkAddr,
* baseAddress,
* width,
* addrMod,
* fileNumber,
* elementNumber,
* cmdIntLevel,
* cmdStatusId,
* operationIntLevel,
* operationStatusId,
* &status);
*
* Copyright Allen–Bradley Company, Inc. 1993
*
****************************************************************************/

Advertising