Ruby code for Machine Controller
Posted: Mon Feb 06, 2012 7:04 pm
Included is a code file for my machine controller that will use 2 Phidgets 1063 stepper motor controllers and the Phidgets 1019 8/8/8 I/O board with USB hub.
My question involves how to use Ruby with this controller. I have separate test control panels for the I/O board and stepper motors 1 and 2 already written and working fine (see the attached file). My next step is to write Ruby code that will interact with the I/O panel and steppers 1 and 2 and operate them in a complicated sequential manner. So the Ruby code needs to sense inputs and control outputs on the I/O board and move stepper motors 1 and 2. If you look at the I/O board schematic you can see I already attached a Ruby component that connects to the inputs and outputs on the I/O board. Can I add Ruby components to the Stepper 1 and Stepper 2 schematics and have the 3 Ruby windows communicate with each other? Or does there need to be only 1 Ruby window that connects to the 3 boards? Please advise as it is not so clear how to proceed.
My question involves how to use Ruby with this controller. I have separate test control panels for the I/O board and stepper motors 1 and 2 already written and working fine (see the attached file). My next step is to write Ruby code that will interact with the I/O panel and steppers 1 and 2 and operate them in a complicated sequential manner. So the Ruby code needs to sense inputs and control outputs on the I/O board and move stepper motors 1 and 2. If you look at the I/O board schematic you can see I already attached a Ruby component that connects to the inputs and outputs on the I/O board. Can I add Ruby components to the Stepper 1 and Stepper 2 schematics and have the 3 Ruby windows communicate with each other? Or does there need to be only 1 Ruby window that connects to the 3 boards? Please advise as it is not so clear how to proceed.