Appendix a – Rockwell Automation 1785-Vx0B, D17856.5.9 PLC-5 VME VMEbus Programmable Controllers User Manual User Manual
Page 127

Appendix A
Sample Applications
A-5
// Process the user’s selection
switch(menuChoice)
{
case 1:
// Initiate a continuous copy operation from a PLC data file
// to VME memory.
test_init_cc_to_vme();
break;
case 2:
// Stop a previously initiated continuous copy operation from
// a PLC data file to VME memory.
test_halt_cc_to_vme();
break;
case 3:
// Initiate a continous copy operation from VME to a PLC data
// file.
test_init_cc_from_vme();
break;
case 4:
// Stop a previously initiated continuous copy operation from
// VME to a PLC data file.
test_halt_cc_from_vme();
break;
case 5:
// Enable the PLC–5/VME’s VME memory.
test_enable_slave_memory();
break;
case 6:
// Disable the PLC–5/VME’s VME memory.
test_disable_slave_memory();
break;
case 7:
// Continuously write values to VME memory and have the
// PLC read them and write to a SIM card.
test_epc_to_plc_global_memory();
break;
case 8:
// Get the PLC–5/VME’s identity and status info.
test_pccc_id();
break;
case 100:
// Quit
break;
default:
// OOps... An error!
show_error(”Error: Invalid menu choice”);
}
}
}