Hello Guest it is April 26, 2024, 03:26:26 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mc

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 »
241
Show"N"Tell ( Your Machines) / Re: Denford Cyclone retrofit
« on: December 19, 2013, 03:57:40 PM »
Progress had stopped on this due to a couple other more pressing jobs, plus I was still dithering over how best to make the required toolholders for the turret.

However I've added to the Denford collection in the form of a Novamill, and the first toolholder has had the underside machined. The critical size came out perfect being a nice tight fit in the turret, so I just need to drill & counterbore the mounting holes, face the sides, then get it drilled & bored to size. Oh, and make several more.


242
General Mach Discussion / Re: Tool changer question
« on: November 19, 2013, 05:27:21 PM »
Thanks for that.
I think that answers all the questions I currently have, and I now have a rough idea how to get things to work, and what I need on each screen.

243
General Mach Discussion / Re: Tool changer question
« on: November 18, 2013, 04:21:58 PM »
Just using the MDI was what I was thinking, however I was also thinking of having a seperate ATC page to display more details and allow more basic control.

At the moment I just added a couple DROs to the standard turn screenset. One which reads and displays the current position, and one that can be used to set the desired position, but that was more to just test that all the values were getting passed where they should.

Another question, what do you do about ensuring clearance during tool changes on your lathe?
I'm thinking that to avoid unnecessary movement, that it should move enough to clear the part Z zero with the longest possible tool (plus a bit extra to give some safety margin), but should that be handled in the tool change scripts, or in the G-Code?

244
General Mach Discussion / Tool changer question
« on: November 18, 2013, 12:35:57 PM »
This is for a lathe, but the same issues apply to a mill aswell.

While running G-code, the tool change scripts handle everything, but what happens when you're not running a G-Code file?

For example how do you cycle through tools while setting up/checking/changing them?
Do you have a dro setup for commanding a certain tool number, just rely on typing into the MDI, or....?

The reason I'm asking, is this is the first time I've had to deal with an ATC, and I'm not sure what the usual/best way is of dealing with it manually, so I'm not sure on how best to set up a custom screen to handle it.

245
Show"N"Tell ( Your Machines) / Re: Denford Cyclone retrofit
« on: November 18, 2013, 11:33:17 AM »
The issue is a KFlop+Kanalog+Konnect work out about £250 cheaper than a CSMIO/IP-A+MPG+ENC+IO(x2), assuming all the tool changer requirements could be handled by a single CS-IO. That £250 can buy a couple PLCs, and several expansion modules. I won't make any decisions until I've got a full IO requirement list done for the tool changer.

Anyway, getting back on topic, I've got a new screen, macropump and some new KFlop code to go test.

246
Going by the 3 additional tinned holes on the PCB, I'd guess it is differential without the wires.

You could check with a multimeter to see if they change voltage when turned to a few random positions, or if your meter has a frequency setting, while spinning it.
The Z would be easy to figure out, but the other two could be a bit more problematic. The trick would be holding the encoder at a point where A and B are in different states (i.e. one high, one low), then matching to their complimentary outputs.

247
Show"N"Tell ( Your Machines) / Re: Denford Cyclone retrofit
« on: November 17, 2013, 06:03:28 PM »
It is, but that's probably more to do with lots of things being new to me, and this isn't exactly a simple build.
For example if the Konnect board had been available a month or so earlier, then I could of avoided the pain of adding a PLC and modbus to the mix, and all the coding could of been done directly in the KFlop.

If you were just going for a simple machine using step/dir, then setting up the KFlop isn't much more involved than anything else as you can access all the in/out via ports and pins. Just use the standard init.c file, and you're pretty much good to go.

Although having said that, I'm probably still going to use a PLC for the tool changer on the Matchmaker, as I don't fancy running 30+ wires from the tool changer cabinet around to the main cabinet! Just a few wires for power and modbus seems much more appealing...

248
Show"N"Tell ( Your Machines) / Re: Denford Cyclone retrofit
« on: November 16, 2013, 07:24:03 PM »
Things are now progressing, after a few issues that took longer that I'd hoped to solve.

The major headache of the past week has been getting the KFlop to talk to the PLC using modbus, and retrieve the information I needed.
First up the Kanalog port is numbered backwards, so what should of needed a straight through cable, actually needed a crossover cable. Once this was realised, I just had to cut the cable and crimp on a new RJ connector, and the sample script provided with the KMotion software burst into life and worked flawlessly.
Then there was the case of figuring out how to read and write to the correct Holding Registers within the PLC, which I only figured out after sitting and going through the Address Picker within the Click software to figure out exactly the sample script was working, and realising you can access the inputs and outputs using two different methods.
Once I'd managed to get past those issues, I managed to get the KFlop reading the current tool position, and writing a new commanded tool position.

The spindle is now setup as a closed loop servo (albeit a very slow reacting one due to still being VFD controlled), so the set speed is highly accurate.
I did have an issue with the spindle reversing direction whenever a new speed was set with it already running, which Tom at Dynomotion explained was due to Mach not issuing a direction command to the plugin on a speed change, so he quickly sent me a modified sample script that stored the previous direction command.

I've also got the homing routines working, so they use the proximity switches followed by the servo index.


I'm now working on getting everything working together,, and getting it all combined into the one initialisation file that gets loaded via Mach.
I've so far got most of the code done for the KFlop monitoring, where an E-Stop has to be activated. For this I've essentially got two levels of E-Stop. First there is the physical circuit that triggers when a limit or an e-stop button is activated, and second there is the monitored circuit for things like a servo fault (the servos are connected and configured to do a fast stop if any fault) or tool changer issue, where the KFlop will stop things and notify Mach.
As Mach can only accept one E-Stop input, all E-Stop control is ultimately mapped to a single virtual bit within the KFlop, that Mach monitors just like a normal input pin.

Next up is the tool changer, which will require several parts. First up the macro within Mach needs to notify and transfer the requested position to the KFlop, then the KFlop has to transfer that position to the PLC, followed by the Tool Change allowed output being activated, then once the TC Ok input is activated again, I need to read the position back into Mach. I don't really need to read the position back into Mach, but I can use it to avoid commanding a tool change when one isn't actually needed.

249
Show"N"Tell ( Your Machines) / Re: Denford Cyclone retrofit
« on: November 07, 2013, 05:32:25 PM »
I now have a fully functional spindle encoder, after soldering in a couple extra wires, so the KFlop channel it's connected to actually increases and decreases when the spindle is moved.

Mach has now also been introduced to the loop.
Setting up the KFlop for basic use is actually pretty easy, and the instructions on the Dynomotion website cover the basics pretty well. The hardest part is setting up all the output values, as it's a bit more involved than doing it in Mach alone. First you need to configure and tune the motors using the KMotion software, then copy those settings into an initialisation file that gets loaded when you hit Reset in Mach. You then need to configure the motor tuning in Mach.

One thing I discovered, is the lower settings in either the KFlop or Mach will take precedence. Provided Mach is set slower, it's not an issue, however if the KFlop settings are slower than those in Mach, the Mach DROs will show the motion as complete, even though the KFlop is still processing the motion. On single moves, that's not an issue, however during programmes it would eventually cause the motion planner to overflow, so it's something to be aware of.

Now I've got the basics sorted, the next couple steps will be modifying the Mach lathe screen to add LEDs for the servo ready/fault signals, and also adding the KFlop code to handle servo faults/estop activation.

250
Show"N"Tell ( Your Machines) / Re: Denford Cyclone retrofit
« on: November 05, 2013, 04:20:34 PM »
After some input from Tom at Dynomotion, I've started on the KFlop initialisation code, and one thing he mentioned was for spindle feedback, KFlop has to receive full A & B quadrature input.

So I dug the oscilloscope out tonight, and after some probing, it turns out for the British Encoders encoder that Denford originally specced, British Encoders simply cut the B wires where they enter the encoder housing and never soldered them onto the encoder board. I've probed the board, and the signals are there, so it'll just be a case of figuring out what is the high and low (just need to find a datasheet for the differential driver chip as the tracks from the chip to the holes are nice and visible), and solder in the extra couple of wires, then we'll be good to go :)

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 »