567,775 active members*
1,892 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > PlanetCNC > More decimal places for rotation in coordinate system required
Results 1 to 6 of 6
  1. #1

    Join Date
    Jan 2022
    Posts
    98

    More decimal places for rotation in coordinate system required

    Recently I experienced some problems when editing parameters for the coordinate system.

    I use probe to measure the rotation of my part and I set the rotation with G10 L2 P#<_coordsys> R#<_measure_rot>

    That's working as expected, but when I edit any parameter in coordinate system dialog, the rotation doesn't fit anymore and there is a noticeable difference than before.
    I found the decimal places of the rotation as the problem. It is limited to 3 decimal places in the dialog, and using the dialog to edit any parameter, the decimal places are cut after 3 decimal places which leads to a inaccuracy of a few millimeters on large parts.

    So I recommend to increase decimal places for all rotation parameter at least to 6. Otherwise on large scale parts, the rotation is to coarse.

  2. #2
    Moderator
    Join Date
    Mar 2017
    Posts
    1165

    Re: More decimal places for rotation in coordinate system required

    Like this?
    Attached Thumbnails Attached Thumbnails PlanetCNC32d_BXp83YISkg.png  

  3. #3

    Join Date
    Jan 2022
    Posts
    98
    Looks great!

  4. #4
    Member
    Join Date
    Jun 2015
    Posts
    3924

    Re: More decimal places for rotation in coordinate system required

    hy if this is not about rotary axis, but simply wcs rotation, then angle decimals ( regardless of how many they are ) will generate an increased error as radius also increases

    methods to adress it :
    ... always max decimals for angle output; there will still be errors :
    ...... as axis travel increases, thus as working space surface increases, towards its edges will occur acuracy lost
    ...... if controller can not deal with max numbers of digits after comma ('.' separator), but only with max number of digits including coma and what is before coma, then there will apear error clases as follows :
    ......... < 1degrees
    ......... < 10degrees
    ......... < 100degrees
    ......... positive or negative, as '-' requires a char
    ... a 2nd method, as to fix above issues, if possible ( like if the controllor can take it ), implement also atan2

    examples for method :
    ... 1 : 10.123456, 101.23456, -10.23456
    ... 2 : atan2 [ 15.123456 / 120.23456 ]

    the format can be automatized, by computing the error in advance, and also knowing what the cnc can take; in other words, format to be toogled from post

    on the other side, simply having to choose the number of decimals from a guy, may be enough, as long as there are too few demands for such tings / kindly
    Ladyhawke - My Delirium, https://www.youtube.com/watch?v=X_bFO1SNRZg

  5. #5
    Moderator
    Join Date
    Mar 2017
    Posts
    1165

    Re: More decimal places for rotation in coordinate system required

    This was just user interface issue. Controller uses enough decimals.
    With 3 decimals shown, error at distance 1000mm is 0.01745 mm.
    With 6 decimals shown, error at distance 1000mm is 0.00002 mm.

  6. #6
    Registered
    Join Date
    Jun 2017
    Posts
    5

    Re: More decimal places for rotation in coordinate system required

    Did you add the G10 L2 line into the Angle Measure script to automatically rotate your work coordinates? I am trying to figure out how to make the Angle Measure script automatically rotate my work coordinates, but I am completely ignorant when it comes to coding scripts.

Similar Threads

  1. Coordinate System Rotation And Planes problem!
    By amir_nop in forum Parametric Programing
    Replies: 24
    Last Post: 10-18-2018, 02:44 AM
  2. G68 Coordinate system rotation.
    By Ashish B in forum CNC Machining Centers
    Replies: 5
    Last Post: 01-07-2013, 11:14 PM
  3. G68.1 Coordinate System Rotation Help
    By SwissPR0 in forum CNC Swiss Screw Machines
    Replies: 3
    Last Post: 02-03-2011, 08:29 PM
  4. Rotation of coordinate system
    By TOlm in forum SIEMENS > ShopTurn
    Replies: 2
    Last Post: 07-22-2009, 06:22 PM
  5. G68 Coordinate Rotation System
    By ebigfoot2 in forum Fanuc
    Replies: 2
    Last Post: 08-13-2007, 01:33 PM

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
  •