585,575 active members*
3,693 visitors online*
Register for free
Login
Page 3 of 3 123
Results 41 to 55 of 55
  1. #41
    Join Date
    May 2006
    Posts
    4045

    Re: Z-DRO doesn't count

    Hi Beppe,

    It’s still not clear what you mean. Interrupted normally means pauses and then resumes. When did it resume working?

    Did you check on KMotion.exe if Thread #7 was still running (green bar)?

    What else was in the MPG loop? Anything that would pause or block when the spindle is on?

    You might troubleshoot it to determine what was happening.
    TK
    http://dynomotion.com

  2. #42
    Join Date
    May 2006
    Posts
    4045

    Re: Z-DRO doesn't count

    Hi Beppe,

    It’s still not clear what you mean. Interrupted normally means pauses and then resumes. When did it resume working?

    Did you check on KMotion.exe if Thread #7 was still running (green bar)?

    What else was in the MPG loop? Anything that would pause or block when the spindle is on?

    You might troubleshoot it to determine what was happening.
    TK
    http://dynomotion.com

  3. #43
    Join Date
    Apr 2019
    Posts
    52

    Re: Z-DRO doesn't count

    hi Tom,

    Sorry, my poor English didn't understand the difference between interrupted and blocked - thread #7 was blocked and I checked it by Kmotion.exe, the green bar disappeared. Into the Thread #7 loop there is anything else than the MPG code

    Beppe

  4. #44
    Join Date
    May 2006
    Posts
    4045

    Re: Z-DRO doesn't count

    Hi Beppe,

    Well "blocked" wouldn't be the word I'd use either. If the green bar disappear then the program would have been killed by something. Or it terminated itself.

    Note pushing "Stop" will also kill all Threads except Thread #1.
    TK
    http://dynomotion.com

  5. #45
    Join Date
    Apr 2019
    Posts
    52

    Re: Z-DRO doesn't count

    hi Tom,

    I implemented the lathe rotary tool changer service code using your RotaryToolChanger.c example; i made some changes to the original code to fit my lathe and notice this:

    a) when I do manual tool change all is working fine but, in the KMotionCNC screen, the Tool ID doesn't change; is it because I call the tool change without issuing an M6?

    b) calling "M6 Tn" from MDI line in KMotionCNC I get always "Invalid Tool Change Number 0", seems that TOOL_VAR isn't refreshed by Kflop. Shouldn't this variable be written by Kflop every time an "M6 Tn" instruction is issued?

    Can you take a look at code and tell me if I am wrong?

    Attached the init file, that manage the manual button, and tool changer file called from KMotionCNC when M6 is issued

    Beppe

  6. #46
    Join Date
    May 2006
    Posts
    4045

    Re: Z-DRO doesn't count

    Hi Beppe,

    a) when I do manual tool change all is working fine but, in the KMotionCNC screen, the Tool ID doesn't change; is it because I call the tool change without issuing an M6?
    Yes. KMotionCNC has no information that you changed the Tool. You might do an MDI of "Txxx" to inform KMotionCNC. But probably better to tell KMotionCNC to do the tool change with "M6Txxx".

    b) calling "M6 Tn" from MDI line in KMotionCNC I get always "Invalid Tool Change Number 0", seems that TOOL_VAR isn't refreshed by Kflop. Shouldn't this variable be written by Kflop every time an "M6 Tn" instruction is issued?
    Yes M6 should send the Tool Slot before executing. How do you have M6 configured? The program is expecting Var 9 to be used. Is M6 configured to use Var 9?
    TK
    http://dynomotion.com

  7. #47
    Join Date
    Apr 2019
    Posts
    52

    Re: Z-DRO doesn't count

    hi Tom

    --Yes. KMotionCNC has no information that you changed the Tool. You might do an MDI of "Txxx" to inform KMotionCNC. But probably better to tell KMotionCNC to do the tool change with "M6Txxx".--

    Ok, I will call "DoPCInt(PC_COMM_MCODE,6)" when I want change tool manually instead to use the subroutine written inside the init file

    --Yes M6 should send the Tool Slot before executing. How do you have M6 configured? The program is expecting Var 9 to be used. Is M6 configured to use Var 9?--

    If you mean the VAR used in KMotionCNC when M6 is issued I think I didn't take much attention to that, tomorrow I will check if I am using VAR 9 or other

    thank you Tom, as ever you are helpful

    Beppe

    P.S. for sure I will need help to understand how to apply the appropriate tool offset, may I continue here or is it better I open another thread?

  8. #48
    Join Date
    May 2006
    Posts
    4045

    Re: Z-DRO doesn't count

    P.S. for sure I will need help to understand how to apply the appropriate tool offset, may I continue here or is it better I open another thread?
    I think new topics are better in new Threads. Be sure to include related info so a person reading that thread can make sense of it.
    TK
    http://dynomotion.com

  9. #49
    Join Date
    Apr 2019
    Posts
    52

    Re: Z-DRO doesn't count

    hi Tom,

    I will, thanks

    Beppe

  10. #50
    Join Date
    Apr 2019
    Posts
    52

    Re: Z-DRO doesn't count

    hi Tom,

    just a last thing before I leave the thread.
    I would like to customize the KMotionCNC look by putting a background bitmap file; if I use one of your files, for example tileable-metal-textures-8.jpg, everything is fine, if instead I use one of my files I get an error message that you can see in the attached screenshot. Where am I wrong?

    Attached is the error screenshot and a sample file of those that I would like to insert as a background

    Beppe

    P.S. I reloaded the screen editor error because was too small

  11. #51
    Join Date
    May 2006
    Posts
    4045

    Re: Z-DRO doesn't count

    Hi Beppe,

    I'm not sure. It seems to work for me. It think you posted the image instead of the file so I'm not sure when I save it it is in the exact same format.

    What Version of KMotion are you using?

    I think the images need to be 24 or 32 bits/pixel. You might check the details of a file that works and compare to one that doesn't.
    TK
    http://dynomotion.com

  12. #52
    Join Date
    Apr 2019
    Posts
    52

    Re: Z-DRO doesn't count

    hi Tom,

    I am using Kmotion version 4.35f. For me also it work if i download the picture from the post, the difference between the original file and the downloaded one is the dimension. Can the problem come from that?
    Attached the original file renamed as .txt for your tests

    Beppe
    Attached Files Attached Files

  13. #53
    Join Date
    May 2006
    Posts
    4045

    Re: Z-DRO doesn't count

    Hi Beppe,

    That file works ok for me also. It might be related to the screen you are putting it into.
    TK
    http://dynomotion.com

  14. #54
    Join Date
    Apr 2019
    Posts
    52

    Re: Z-DRO doesn't count

    Quote Originally Posted by TomKerekes View Post
    Hi Beppe,

    That file works ok for me also. It might be related to the screen you are putting it into.
    hi Tom,

    it's not so clear what you mean: do I have to make a particular screen to insert that background?

    Beppe

  15. #55
    Join Date
    May 2006
    Posts
    4045

    Re: Z-DRO doesn't count

    Hi Beppe,

    No any background should work in any screen.

    It might be something specific about your screen that causes a problem. Maybe the size, or location, or other graphics, or names, etc. If you provide all the files and describe exactly what you are doing I may be able to re-produce the problem.

    You might also try one of our included screens to see if it then works. I tested:
    C:\KMotion435f\PC VC Examples\KMotionCNC\Screens\Probe_JB_Stig\ProbeScr eenExt.scr
    TK
    http://dynomotion.com

Page 3 of 3 123

Similar Threads

  1. Sinpo DRO? - Need a Cheap DRO for a Bridgeport Mill - Need Advice
    By firestorm1284 in forum Bridgeport / Hardinge Mills
    Replies: 3
    Last Post: 05-30-2011, 03:17 AM
  2. Home button doesn't Zero DRO's
    By Fozzie55 in forum Machines running Mach Software
    Replies: 5
    Last Post: 02-15-2011, 11:51 AM
  3. Mach 3 DRO/Gcode doesn't match
    By gbward4 in forum Mach Software (ArtSoft software)
    Replies: 4
    Last Post: 01-17-2011, 06:54 AM
  4. DRO doesn't equal Movement
    By ranchak in forum Mach Mill
    Replies: 3
    Last Post: 01-26-2010, 07:55 AM

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
  •