31
Brains Development / Example Brain or Macro pump to run a spindle
« on: February 17, 2014, 10:52:15 AM »
Good morning, I have two VFD's on a 3 in 1 machine, one for mill and one for lathe. I want to control the spindles for both of these with Mach3. I am new to Mach3, new to Brains, new to macro pumps, new to DRO's. I'm looking for an example of either a brain or macro pump or both that can do spindle control from Mach3. I want to start, stop, change directions and change speed. I know all of the addresses in the VFD's to start, stop, change speeds and change direction and have tested it all using the Serial Modbus test screen in Mach3.
What I have are two Altivar 12 VFD's hooked to two 3HP motors running 3 phase 240Vac.
So far my communication path is Serial 232 to Serial 485 through a 232 to 485 converter. The drives are modbus 485 and I also have a Magelis terminal attached that is Modbus 485 or Modbus TCP, but since the drives are Modbus 485, it's connected that way for now. I'm considering trying Modbus TCP and using a Modbus TCP to Modbus 485 converter, but would like to prove concept with what I have now before I invest anymore.
I'm guessing there is something already here that can do this, but I haven't run across it yet.
If there are tutorials I can use, other than the ones on the Mach3 site, I will dig into them also if you point them out. I have gone through the ones on Modbus on the Mach3 site.
What I'm needing help with is understanding what DRO's go to what Mach3 screen buttons or actions.
How to set the Modbus plugins up to talk to the drive. I saw a tutorial from PappaBear that helps, but my addresses are all over the place in the drive, especially if I read things back like RPM. I was wondering if I should create a line in the plugin for each address. Everything to these drives is 16 bit words, both digital and analog. For instance to start the drive in forward, I need to write 15 decimal to memory word 8601, and to run in reverse I write something like 242 to memory word 8601. To change speed, I write the speed such as 3000 decimal for 3000 RPM to memory word 8602. I would need less than 10 addresses for each drive, and each drive would be in a separate Mach3 setup. One Mill, the other Lathe. Last, I'm not sure how to relate the plugin setup to the Pins setup in Mach3.
Is there anything out there that can help me get started quickly? I'm not sure if a macro pump may be a better choice or if it should be a brain, or even a combination.
Thanks in advance.
TeaMan
What I have are two Altivar 12 VFD's hooked to two 3HP motors running 3 phase 240Vac.
So far my communication path is Serial 232 to Serial 485 through a 232 to 485 converter. The drives are modbus 485 and I also have a Magelis terminal attached that is Modbus 485 or Modbus TCP, but since the drives are Modbus 485, it's connected that way for now. I'm considering trying Modbus TCP and using a Modbus TCP to Modbus 485 converter, but would like to prove concept with what I have now before I invest anymore.
I'm guessing there is something already here that can do this, but I haven't run across it yet.
If there are tutorials I can use, other than the ones on the Mach3 site, I will dig into them also if you point them out. I have gone through the ones on Modbus on the Mach3 site.
What I'm needing help with is understanding what DRO's go to what Mach3 screen buttons or actions.
How to set the Modbus plugins up to talk to the drive. I saw a tutorial from PappaBear that helps, but my addresses are all over the place in the drive, especially if I read things back like RPM. I was wondering if I should create a line in the plugin for each address. Everything to these drives is 16 bit words, both digital and analog. For instance to start the drive in forward, I need to write 15 decimal to memory word 8601, and to run in reverse I write something like 242 to memory word 8601. To change speed, I write the speed such as 3000 decimal for 3000 RPM to memory word 8602. I would need less than 10 addresses for each drive, and each drive would be in a separate Mach3 setup. One Mill, the other Lathe. Last, I'm not sure how to relate the plugin setup to the Pins setup in Mach3.
Is there anything out there that can help me get started quickly? I'm not sure if a macro pump may be a better choice or if it should be a brain, or even a combination.
Thanks in advance.
TeaMan