Build Thread Tree325 Retrofit Started - Page 15


Page 15 of 23 FirstFirst ... 512131415161718 ... LastLast
Results 169 to 180 of 269

Thread: Tree325 Retrofit Started

  1. #169
    Registered
    Join Date
    Feb 2011
    Location
    USA
    Posts
    43
    Downloads
    0
    Uploads
    0

    Default Re: Tree325 Retrofit Started

    Tom,

    The ICON relay enables the axes on the Tree mill. It is enabled by 1CRE on the diagram. The E-stop or a limit switch will trigger the ICON relay off, which shunts all 3 axis servo motors to braking resistors.
    The 1CRE relay coil is energized in the convoluted diagram on page 2 of the original machine schematics.

    Rick


    Quote Originally Posted by TomKerekes View Post
    Hi PeterTheWolf,

    Yes. If you have an accurate means of measuring longer distances then that would be better. The amount of scaling error on a 20inch move will be 20X larger than on a 1 inch move.

    I'm not sure what you mean by ICON relay. I thought 1CRE relay enabled the drives. Right now I don't believe you have any Limits configured in KFLOP. Limits are entirely handled in hardware. Once a Limit switch opens the 1CRE relay turns off and disables the Drives. KFLOP has no way to re-enable the drives. I can't figure out how that was handled on the original control. I'm thinking that the signal 207 was somehow driven to +24V to override the Limits. You may need to add a relay that can be controlled by KFLOP/Kanalog to do this. Or add an override push button.

    Anyone know how that was handled originally?

    Regards




  2. #170
    Registered PeterTheWolf's Avatar
    Join Date
    Aug 2008
    Location
    USA
    Posts
    135
    Downloads
    0
    Uploads
    0

    Default Re: Tree325 Retrofit Started

    .....
    .....

    Quote Originally Posted by mmurray70 View Post
    A simple but slightly crude way around this is to put a momentary push button in parallel with the limit switches. So when the limit switches are hit and the loop breaks, you can bypass it temporarily by holding in a button..
    OK ... I tried a momentary switch across wires #255 and #207 which indeed over-rides the limit-switch once it disengages the relay for the power to servo/amps.

    However, this to me, seems a little too scary. Because if I am traversing (rapid) and it hits the X or Y limit switch and if I do not release the traverse button right away the counts continue to increase.
    So, then when I use the momentary over-ride switch (to engage the amp relay) to bring it off the limit switch the axis goes to the new position which is beyond the limit switch (in the wrong direction).

    What I did find is, that if I hit the limit switch and while the amp relay is disengaged, move the KMotionCNC position in the opposite direction about 1/2" or so, then when I hit the momentary switch KMotionCNC instantly moves to the new position in rapid speed. Once the new position is reached the axis go into a drift until I re-initialize the KMotionCNC via INIT button.

    Isn't there a better way to handle this? Certainly the original Tree design did not work like this.

    Tree325 Retrofit Started-momentary_switch-jpg

    .....
    .....

    J325 Quick Links:

    Machine
    Existing Machine Schematics
    Electronic Cabinet-Right Side
    Electronic Cabinet-Back SIde
    Existing Drive Board SD1525-10
    J325 Servo Drive-SD1525 Manual
    3-Phase Rotary Convert Used
    RickB's J325 Retrofit Wiring
    KFLOP 5VDC/15Watt/3A Power Supply
    KANALOG Mounted & Connected
    Kmotion - Axis Encoder Manual Test of Position via Manual Movement
    Kanalog-Encoder Voltage High/Low Checks & 1KOhm Resister
    Kmotion Configuration Screens "RUN-AWAY"
    Tree Journeyman 325 Designed Specs.
    Tree Journeyman 325 Axis-Tension Frequency Settings
    Final Axis Tuned Error Parameters


    .....
    .....



  3. #171
    Registered
    Join Date
    May 2012
    Location
    canada
    Posts
    266
    Downloads
    0
    Uploads
    0

    Default Re: Tree325 Retrofit Started

    I think whats happening is you are overriding the limit switches and turning on the amplifiers without having the axes enabled in kmotion. They would have been disabled by following error which is normal. The axes drift until the axes are enabled again by your init file.

    How are you enabling your drives now exactly? Are you still using a switch or something from the testing stage to power on the drives with that relay? You should probably be getting Kflop to do this now. So when run your init file, kflop would switch on the relay to provide power and then enable axis at the same time. So you get no drifting. If you hit a limit switch then you would have to push momentary switch and nothing would happen since everything is disabled. You would need to hold override switch, init again, and then move off.



  4. #172
    Registered PeterTheWolf's Avatar
    Join Date
    Aug 2008
    Location
    USA
    Posts
    135
    Downloads
    0
    Uploads
    0

    Default Re: Tree325 Retrofit Started

    Quote Originally Posted by mmurray70 View Post
    I think whats happening is you are overriding the limit switches and turning on the amplifiers without having the axes enabled in kmotion. They would have been disabled by following error which is normal. The axes drift until the axes are enabled again by your init file.
    This certainly sounds correct and what seems to be happening.

    Quote Originally Posted by mmurray70 View Post
    How are you enabling your drives now exactly? Are you still using a switch or something from the testing stage to power on the drives with that relay?
    Yes ... I still have a jumper wire connected from #200 to #206 as advised back on #41 of this thread.

    Quote Originally Posted by mmurray70 View Post
    You should probably be getting Kflop to do this now. So when run your init file, kflop would switch on the relay to provide power and then enable axis at the same time. So you get no drifting. If you hit a limit switch then you would have to push momentary switch and nothing would happen since everything is disabled. You would need to hold override switch, init again, and then move off.
    How do I get Kflop to do this? Do I actually connect wire #200 and #206 to the KFLOP and then write "C" code to do something?

    .....
    .....

    J325 Quick Links:

    Machine
    Existing Machine Schematics
    Electronic Cabinet-Right Side
    Electronic Cabinet-Back SIde
    Existing Drive Board SD1525-10
    J325 Servo Drive-SD1525 Manual
    3-Phase Rotary Convert Used
    RickB's J325 Retrofit Wiring
    KFLOP 5VDC/15Watt/3A Power Supply
    KANALOG Mounted & Connected
    Kmotion - Axis Encoder Manual Test of Position via Manual Movement
    Kanalog-Encoder Voltage High/Low Checks & 1KOhm Resister
    Kmotion Configuration Screens "RUN-AWAY"
    Tree Journeyman 325 Designed Specs.
    Tree Journeyman 325 Axis-Tension Frequency Settings
    Final Axis Tuned Error Parameters


    .....
    .....



  5. #173
    Registered
    Join Date
    Jun 2004
    Location
    Scotland
    Posts
    312
    Downloads
    0
    Uploads
    0

    Default Re: Tree325 Retrofit Started

    The KFlop should be programmed to detect the limit, disable the drives (I assume there is some form of enable signal from the KFlop to the drives?), and then disable the axis (if the limit switches aren't connected to the KFlop and set as limits for the corresponding axes, which this type of setup won't be, then the axis won't be automatically disabled on a limit hit)

    When you then press the limit switch bypass, you should then need to re-init the KFlop, at which point it should set the destination to the current position, and then you can safely jog away from the limit.

    On my machines, the limits are connected as part of the E-stop loop (it's how they came from the factory), so what I have is an E-stop monitoring function, that basically monitors various things (i.e. e-stop circuit, toolchanger status, spindle status - the exact things vary between machines). If any of the conditions aren't met, then it triggers an e-stop cycle, that disables all movement, before displaying a message saying what triggered the e-stop.
    The initialisation file is then required to be run to re-enable the machine.

    I've attached a couple ZIP files with the code for my machines. They should give you a general idea of how I've got my code structured.
    The Cyclone is a lathe and was the first machine I retrofitted. It uses servos, and Modbus to communicate with a PLC that handles the turret.
    The Triac is a small mill, and is my current project. The code is not complete, but contains a few refinements to the general structure of the Cyclone code (uses MsgBoxNoWait, so things can happen in a slightly different order). It also only runs steppers, so there is no dealing with axis positions.

    If you're going to use any as a base, use the Triac code, as it's the most refined. I've only included the Cyclone to give you an idea how I deal with servo disabling/re-initialisation (I also think this isn't the latest version, as I've modified the code a couple times on the machine, this is just the version I happen to have on my laptop - I do have newer backups, just not handy)

    Attached Files Attached Files


  6. #174
    Registered
    Join Date
    May 2012
    Location
    canada
    Posts
    266
    Downloads
    0
    Uploads
    0

    Default Re: Tree325 Retrofit Started

    Quote Originally Posted by PeterTheWolf View Post

    How do I get Kflop to do this? Do I actually connect wire #200 and #206 to the KFLOP and then write "C" code to do something?

    .....
    Basically yes. Im not sure if its best to simply wire in these two points, or if its best to try and turn on the CRE1 relay. You might want to wait for Toms advice about exactly whats best to do and what outputs to use.



  7. #175
    Gold Member TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    2790
    Downloads
    0
    Uploads
    0

    Default Re: Tree325 Retrofit Started

    Hi PeterTheWolf,

    OK ... I tried a momentary switch across wires #255 and #207 which indeed over-rides the limit-switch once it disengages the relay for the power to servo/amps.

    However, this to me, seems a little too scary. Because if I am traversing (rapid) and it hits the X or Y limit switch and if I do not release the traverse button right away the counts continue to increase.
    I wouldn't expect this to happen if the Max Following Error limits are set properly. I'd expect an immediate following error and the KFLOP Axis should disable and the Jogging motion of the Axis Destination should stop. Furthermore when the Axis is re-initialized and re-enabled the Destination should be set to the current Encoder Position and how far the Axis was Jogged past the Limit shouldn't matter.

    Were your Max Following Errors set properly?

    The recovery process should require you to press the Limit Switch Override Button, re-Initialize to Enable the Axes, then Jog out of the limit. Initializing first with the drives still disabled may cause a jerk when the drives are eventually enabled.

    It would be nice to know how the original system worked. I can't find anything in the schematics that would override the limits disabling the contactor.

    I think the 3 signals 208, 207, 255 could be connected to Kanalog Opto Inputs so KFLOP could be aware of EStop status, Limits status, the other disables status as it seems was done with the original control.

    Regards

    TK
    http://dynomotion.com


  8. #176
    Registered PeterTheWolf's Avatar
    Join Date
    Aug 2008
    Location
    USA
    Posts
    135
    Downloads
    0
    Uploads
    0

    Default Re: Tree325 Retrofit Started

    Quote Originally Posted by TomKerekes View Post
    Were your Max Following Errors set properly?
    I believe I have these set correctly.
    X-axis: Rapid Error=18 counts, Max. Following Error=40
    Y-axis: Rapid Error=16 counts; Max Following Error=30
    Z-axis: Rapid Error=7 counts; Max Following Error=20

    Quote Originally Posted by TomKerekes View Post
    It would be nice to know how the original system worked. I can't find anything in the schematics that would override the limits disabling the contactor.
    I am sorry; however, I cannot say how it originally worked as this machine was purchased with the originally controller nonfunctional.

    Quote Originally Posted by TomKerekes View Post
    I think the 3 signals 208, 207, 255 could be connected to Kanalog Opto Inputs so KFLOP could be aware of EStop status, Limits status, the other disables status as it seems was done with the original control.
    Can I please get so help on what exactly I need to do to get these signals connected to Kanalog Opto inputs so KFLOP will be aware and respond to this signal?

    I need to understand how this works since I have many, many more signals I need to connect as I move forward with this retrofit.

    So, if I start with the signal on wire #255, which is the E-Stop/Limit switch on the front user panel. This switch is a Normally Closed (NC) switch.
    When KmotionCNC is initialized all axis will servo; however, when the E-Stop in applied the switch goes open and dis-engages the servo/amp contact ICON via 1CRE relay.

    Not knowing how to exactly read this Tree schematic this is what I interpret what is happening:

    Wire #200 provides +24VDC to wire #255 which goes thru X-axis limit switch then to wire #256 into Y-axis limit switch then into wire #207 then into I think the Z-axis proximity limit switch, which I think is wire #201coming off the 2CRE relay ..................... So, I am thinking wire #201 wire then should be connected to Kanalog JP15 OpTo Input pin 15 with Wire #4 (GND) on JP15 OpTo Input pin 16.

    Would this be correct and how the E-stop/OT limit switches should be connected to Kanalog?

    And if this is correct, what should I start out with for C-Code?

    Quote Originally Posted by m_c View Post
    I've attached a couple ZIP files with the code for my machines. They should give you a general idea of how I've got my code structured.
    Thanks M_C .... however, when I look at your code ... I see how much I don't know and how much I need to learn.

    I think if I can get the help for at least one switch wired-up correctly to Kanalog/KLFOP and the C-code working it should give me a better understanding for all the other switches I need to connect.

    I think my biggest challenge will be the spindle-motor via VFD ... saving that for the last step in this retrofit.

    .....
    .....

    J325 Quick Links:

    Machine
    Existing Machine Schematics
    Electronic Cabinet-Right Side
    Electronic Cabinet-Back SIde
    Existing Drive Board SD1525-10
    J325 Servo Drive-SD1525 Manual
    3-Phase Rotary Convert Used
    RickB's J325 Retrofit Wiring
    KFLOP 5VDC/15Watt/3A Power Supply
    KANALOG Mounted & Connected
    Kmotion - Axis Encoder Manual Test of Position via Manual Movement
    Kanalog-Encoder Voltage High/Low Checks & 1KOhm Resister
    Kmotion Configuration Screens "RUN-AWAY"
    Tree Journeyman 325 Designed Specs.
    Tree Journeyman 325 Axis-Tension Frequency Settings
    Final Axis Tuned Error Parameters


    .....
    .....



  9. #177
    Gold Member TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    2790
    Downloads
    0
    Uploads
    0

    Default Re: Tree325 Retrofit Started

    Hi PeterTheWolf,

    I believe I have these set correctly.
    X-axis: Rapid Error=18 counts, Max. Following Error=40
    Y-axis: Rapid Error=16 counts; Max Following Error=30
    Z-axis: Rapid Error=7 counts; Max Following Error=20
    Those look like good values. But if KFLOP was really set to those values then you should get a following error when the axis hits the limit switch and stops moving. Something isn't right. Maybe you didn't merge those settings into your Initialization C Program? Or didn't execute the C Program? Or executed the wrong Program? Please post your final Initialization C Program. Also verify the Init button is configured to the that program. You can also "Upload" an axis to KMotion.exe to see what the Following Errors are currently set at.

    Not knowing how to exactly read this Tree schematic this is what I interpret what is happening:

    Wire #200 provides +24VDC to wire #255 which goes thru X-axis limit switch then to wire #256 into Y-axis limit switch then into wire #207 then into I think the Z-axis proximity limit switch, which I think is wire #201coming off the 2CRE relay .....................
    I think that is roughly correct. Basically a big string of switches and relay contacts that all have to be closed to get power to 1CRE.

    But I don't see any connection from #200 to #205. Rather I think the actual circuit path is:

    #200 (24V) -> 203 -> 204 -> 206 -> 255 -> 256 -> 207 -> 208 -> 201 -> 209 (1CRE) -> 4 (GND)

    Voltage propagates through the switches from left to right. Any open switch kills power to all nodes to the right. So you might imagine connecting 9 24V light bulbs to all those points to GND. With all the switches closed all 9 lights would be on. With any single open switch the lights to the left of the switch would be on and those to the right would be off. Note with more than one open switch the leftmost switch would determine the state of the lights. The diodes just act like always closed switches but prevent any possibility of current flowing backwards.

    Kanalog opto inputs are basically like 24V light bulbs (opto LED + series resistor). So we can connect them up like light bulbs to the points of interest we care about. However unlike simple bulbs, to turn on current must flow in a particular direction. Connect the +to the point that will go to +24V and the - to the GND (which is what you described). I'd start with one such as your #201 which could be interpreted by KFLOP as "All OK".

    After that is connected test by looking at the Digital IO Screen to see if the state changes as it should (state=1 when everything is ok and enabled).

    Next you can add a C Program loop to constantly read this input and if it goes to 0 disable whatever you wish (XYZ Axes). See the EStopDisablesAll.c example.

    On another topic regarding Push Button Override: You might research the model number of the 1CRE relay to see how much current the coil requires. If it is less than 25milliamps then a Kanalog Output can be used like your pushbutton to bypass the limit switches.

    HTH
    Regards

    TK
    http://dynomotion.com


  10. #178
    Registered
    Join Date
    Jun 2004
    Location
    Scotland
    Posts
    312
    Downloads
    0
    Uploads
    0

    Default Re: Tree325 Retrofit Started

    Personally I would not connect the limit switch override to the controller. To me, I want the limits to kill movement regardless of how I've programmed the controller, as if it was connected to the controller, you have to be fully aware that that output was only active when needed, otherwise you're risking running into the hard stops at full power. With it on a physical switch, should anything go wrong, movement gets killed, and should anything go wrong during recovery, you just need to release the switch.


    Peter, the main things to start of with, with my files, is start with the basics.
    Each machine has it's main init file. In the case of the Triac, it's TriacInit.c (I think the Cyclone one is a far longer name, to identify from when I moved from the original Mach3 init file). That is the main file, that loads all the critical stuff to get the machine moving.

    Then I have a header file that gets included. Triac.h, and Cyclone.h.
    That contains constants, that give each commonly used value, a name. So in the case of the Triac, rather than having to use 136 every time I want to check the E-Stop circuit status, I can type ESTOP.
    I.e. instead of -
    Code:
    ReadBit(136); // Check Estop
    I can use the far more readable
    Code:
    ReadBit(ESTOP); // Check Estop
    As you should see by looking at some of the code, not only does it make the code more readable, it also means that should a value need changed, it only needs changed in one place.

    The next piece of the puzzle after that, is the EStop file. This contains a function that gets called continually from the main init file loop. The whole point of this function is monitor everything on the machine that could cause a situation I don't want. Things like has the E-stop circuit failed, is the spindle on but the tool carousel still out, is the drawbar active while the spindle is on, and so on.
    It uses a couple other programing conventions, but I wouldn't worry about that just now. Just shout when you get to that point, and I can explain how things get handled if needed.

    Once I get the Triac finished (just need to find time to wire up the new operator panel, and add connectors for a touch probe), I was going to do a full write up on how all the files interact.



  11. #179
    Registered
    Join Date
    Feb 2011
    Location
    USA
    Posts
    43
    Downloads
    0
    Uploads
    0

    Default Re: Tree325 Retrofit Started

    m_c,

    Can you please tell me the correct syntax to do this? I've been searching the channel structure, but I'm not sure which variables are correct.

    Thanks,
    Rick


    When you then press the limit switch bypass, you should then need to re-init the KFlop, at which point it should set the destination to the current position, and then you can safely jog away from the limit.




  12. #180
    Registered
    Join Date
    Jun 2004
    Location
    Scotland
    Posts
    312
    Downloads
    0
    Uploads
    0

    Default Re: Tree325 Retrofit Started

    Quote Originally Posted by rbickle View Post
    m_c,

    Can you please tell me the correct syntax to do this? I've been searching the channel structure, but I'm not sure which variables are correct.

    Thanks,
    Rick
    When you initialise the KFlop, you should have a process that enables the servos, then enables the axis, so you should have code similar to this -

    Code:
    SetBit(SPDLENA);
    			Delay_sec(0.3);		// delay to avoid PID windup due to servo drive taking time to enable
    			EnableAxisDest(7, ch7->Position);
    That's actually part of my Triac spindle on code, as it uses a servo spindle, but the process is the same for axis servos.
    The SetBit turns on an opto that powers the servo drive enable signal.
    As that particular drive takes a short time to become fully active after receiving the enable signal, I had to add a short delay to avoid the axis either disabling due to following error, or banging to required speed, as the KFlop/Kanalog expects it to move, but it doesn't for a short period.
    Then the relevant channel gets enabled, at which point it comes under closed loop control.
    I think using EnableAxis(7) achieves the exact same thing as EnableAxisDest(7, ch7->Position).

    With that in place, the only difference when you've hit a limit switch, is you need press and hold the override button until everything is initialised, so you can jog of the limit switch, at which point you can release the override switch.

    Although, this method is only for if you have limit switches physically disabling things. If the limit switches aren't disabling anything, but are instead feeding back to KFlop inputs, they should be configured using the axis/channel limit switch options. At which point, if you hit a limit switch, the KFlop is smart enough to simply let you jog back of the hit limit switch, and no re-initialisation should be needed.
    Off course, if you have accurate homing, then you should be able to set softlimits, which should prevent you from hitting limit switches anyway.



Page 15 of 23 FirstFirst ... 512131415161718 ... LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Tree325 Retrofit Started

Tree325 Retrofit Started