Note: If this is a double post, I'm sorry. Something happened while uploading this the first time and I don't believe it actually posted.
Hi All,
I am nearing completion of a CNC mill upgrade using AB Ultra 3000 servo drives and migrating from Mach 3 to Mach 4. I have a number of thing I hope to accomplish and I am asking for resources or advice on where to find information on them. See the attached image of the control panel.
1) Basic Mach 4 configuration: I feel pretty good on setting up the Smoothstepper and configuring basic I/O. I have a working test setup in Mach 3 so matching settings shouldn't be too terrible.
2) Basic Servo enable logic: I would like to add buttons to the screen to separately enable the motion axes and servo spindle using digital outputs. I have watched as much as I could on the screen editor and feel pretty solid on this, however I haven't yet gotten to the point where I feel comfortable using LUA to set outputs using on screen buttons. I knew Mach 3 VBS very well, but this is a whole new adventure! Any links to sample code would be greatly appreciated.
3) Basic power drawbar control: I have a pushbutton on the machine which I will need to link to a pair of outputs for drawbar release and clamp. I'm assuming this will be a very similar script to #2 except it adds a timer.
4)I have 3 separate "ESTOP" type inputs (normal system ESTOP, excessive cabinet temperature, DC supply or contactor failure). I'd like them all to stop the machine, but have custom messages for each type of input.
5) Pendant interface: I have a MPG which I'd like to set up as my primary method of jogging the machine. I have no clue if this is native functionality to Mach 4 or if scripting is required for each function. Advice or examples would be wonderful here.
6) RS485 ASCII to drives: Here is where I think things will get complicated

. I am controlling all of the servo axes using step/direction or quaderature outputs from the Smoothstepper. That will get just about everything working by itself, however the Ultra 3000 drives I am using have an amazing feature set that is available through serial communication. I have tested these features and find they work very very well. For anyone interested, here is a link to the manual that shows all the settings and data available over serial (
https://literature.rockwellautomation.com/idc/groups/literature/documents/rm/2098-rm003_-en-p.pdf).
In order to access this data, I will need a LUA script to write ASCII data over my computer's embedded serial port. I have seen a small handful of people posting about trying to use LUARS232 package/module, however never anything definitively successful. I am hoping to work with everyone on this wonderful forum to get this working. If I can, here are some of the things I will be able to do:
- Absolute homing using encoder position data stored in the drive. I may never need to home to a switch again!
- Real time motor load monitoring
- Drive diagnostics like temperature, amperage, voltage, etc.
- Reading fault codes and displaying them in a user readable format in Mach
- A ton more that I haven't yet thought of!
I will be so grateful for anyone who has experience with any of these things to share their knowledge. I will continue to post updates on this build as I go along, as well as answer any questions there might be. My day job is designing industrial control systems, so I have a ton of electrical panel, PLC, and software experience (just not with Mach 4... yet).
Thanks,
-Mike