I wanted to give a little update about a machine built and updated over the past few years and say thanks to all the answered questions I had programmatically when I got a little stuck.
A single PIC18F4431 is used for the machine. It has a basic user interface with 6 buttons and a serial LCD. The E-Stop disconnects the servo drive and updates the PIC control. There are three
input sensors , two inductive sensors on the air cylinder for positive position and one capacitate sensor for end of tap detection. The rest is controlled via PC over RS232 to USB using a MAX233CPP chip
for it's noise immunity. It also has a daughter board from the main board for I/O to the DYN4 AC servo and solid state switching for pneumatics. Most of the program uses PBP interrupts for RS232,
sensors, and manual/auto switch over on the control. The AC servo drive runs on 110V mains, and the rest of the system is 24V for the sensors and 5V for logic all of two industrial power supplies.
All I/O to the PIC is opto isolated. Here is a little video of the project. I hope this inspires to keep on PIC'n
Bookmarks