Download.mak, A-34, Appendix a – Rockwell Automation 1785-Vx0B, D17856.5.9 PLC-5 VME VMEbus Programmable Controllers User Manual User Manual
Page 156

Appendix A
Sample Applications
A-34
PLC540V_PCCC_DLC_RPY_TYPE replyPacket;
PLC540V_STATUS_TYPE status;
plc540v_pccc_download_complete(kvmeSlaveAddress,
kplc540vUla,
kVME_D16_DATA_WIDTH,
kVME_A24_ADDR_SPACE,
&replyPacket,
&status);
if(status.plc540vStatus != 0)
{
printf(”\nDownload Complete command failed.”);
exit(1);
}
}
/***************************************************************************/
/***************************** DOWNLOAD_ALL ********************************/
/***************************************************************************/
void download_all(void)
{
// Issue the download all request.
PLC540V_STATUS_TYPE status;
PLC540V_PCCC_DLA_RPY_TYPE replyPacket;
plc540v_pccc_download_all(kvmeSlaveAddress,
kplc540vUla,
kVME_D16_DATA_WIDTH,
kVME_A24_ADDR_SPACE,
&replyPacket,
&status);
if(status.plc540vStatus != 0)
{
printf(”\nDownload All command failed.”);
exit(1);
}
}
.AUTODEPEND
#
*Translator Definitions*
CC = bcc +DOWNLOAD.CFG
TASM = TASM
TLIB = tlib
TLINK = tlink
LIBPATH = C:\BORLANDC\LIB
INCLUDEPATH = C:\BORLANDC\INCLUDE
#
*Implicit Rules*
.c.obj:
$(CC) -c {$< }
.cpp.obj:
$(CC) -c {$< }
#
*List Macros*
DOWNLOAD.MAK