Upload.cpp, A-15 – Rockwell Automation 1785-Vx0B, D17856.5.9 PLC-5 VME VMEbus Programmable Controllers User Manual User Manual
Page 137

Appendix A
Sample Applications
A-15
#
*Compiler Configuration File*
vmedemo.cfg: vmedemo.mak
copy &&|
–ml
–v
–y
–vi
–w–ret
–w–nci
–w–inl
–wpin
–wamb
–wamp
–w–par
–wasm
–wcln
–w–cpt
–wdef
–w–dup
–w–pia
–wsig
–wnod
–w–ill
–w–sus
–wstv
–wucp
–wuse
–w–ext
–w–ias
–w–ibc
–w–pre
–w–nst
–I$(INCLUDEPATH)
–L$(LIBPATH)
–P
| vmedemo.cfg
/***************************************************************************/
/****************************** INCLUDE FILES ******************************/
/***************************************************************************/
#include
#include
#include
#include
#include ”busmgr.h” // Radisys’s VME driver definitions
#include ”pccc.h” // Generic Allen-Bradley (AB) PCCC definitions
#include ”p40vger.h” // AB PCCC Get Edit Resource
#include ”p40vrer.h” // AB PCCC Return Edit Resource
#include ”p40vrpc.h” // AB PCCC Restore Port Configuration
#include ”p40vrbp.h” // AB PCCC Read Bytes Physical
#include ”p40vihas.h” // AB PCCC Id Host and Status
#include ”p40vula.h” // AB PCCC Upload All
#include ”p40vulc.h” // AB PCCC Upload Complete
#include ”p40vscm.h” // AB PCCC Set CPU Mode
/***************************************************************************/
/************************* PRIVATE DEFINITIONS ****************************/
/***************************************************************************/
// PLC-5/40V is using 0x900000 for VME communications.
const unsigned long kvmeSlaveAddress = 0x900000L;
UPLOAD.CPP