P40vcc0.h, B-17, Appendix b – Rockwell Automation 1785-Vx0B, D17856.5.9 PLC-5 VME VMEbus Programmable Controllers User Manual User Manual
Page 175
Sample API Modules
Appendix B
B-17
#ifndef P40VCCO_H
#define P40VCCO_H 1
///////////////////////////////////////////////////////////////////////////////
// Definitions for the CONTINUOUS COPY COMMAND STRUCTURE //
///////////////////////////////////////////////////////////////////////////////
#include ”common.h”
#pragma pack(1)
/***************************************************************************/
/************************ INTEL VERSION OF DEFINITIONS *********************/
/***************************************************************************/
typedef struct
{
UWORD addressModifier:8;
UWORD width:1;
UWORD reserved1:6;
UWORD enable:1;
} PLC540V_CC_TRANSFER_TYPE;
typedef struct
{
UWORD commandWord;
UWORD responseWord;
UWORD cmdIntLevel;
UWORD cmdStatusId;
UWORD reserved1[3];
PLC540V_CC_TRANSFER_TYPE transferInfo;
UWORD dataAddressHigh;
UWORD dataAddressLow;
UWORD dataSize;
UWORD fileNumber;
UWORD elementNumber;
UWORD operationIntLevel;
UWORD operationStatusId;
UWORD reserved2;
} PLC540V_CONT_COPY_CMD_TYPE;
#pragma pack()
void plc540v_init_cont_copy_to_VME( ULONG vmeDataAddr,
UWORD vmeDataSize,
ULONG vmeCmdBlkAddr,
UWORD baseAddress,
VME_DATA_WIDTH_TYPE width,
VME_ADDRESS_MODIFIER_TYPE addrMod,
UWORD fileNumber,
UWORD elementNumber,
VME_INTERRUPT_LEVEL_TYPE cmdIntLevel,
UBYTE cmdStatusId,
VME_INTERRUPT_LEVEL_TYPE operationIntLevel,
UBYTE operationStatusId,
PLC540V_STATUS_TYPE *status);
P40VCC0.H