Results 1 to 5 of 5

Thread: Help determining latency and EMC timing parameters....

  1. #1
    Registered
    Join Date
    Dec 2003
    Location
    Massachusetts
    Posts
    128
    Downloads
    0
    Uploads
    0

    Help determining latency and EMC timing parameters....

    I'm trying to determine the latency numbers for my machine.. I ran 'latency-test' with an older Althon XP 1.350Ghz w/256MB Mem....and got the following from the window that popped up:

    Maximum Jitter
    Servo Thread: 48686
    Base Thread: 61464

    Max Interval
    Servo: 1045191
    Base: 85769

    How do I apply these numbers to the StepTimingCalculator spreadsheet:
    From the G320 specs:

    Step Pulse Frequency 0 to 250 kHz
    Step Pulse “0” Time 0.5 Microseconds Min.
    Step Pulse “1” Time 3.5 Microseconds Min.

    I can then fill in Required Step Length and Required Step Space... not sure what to put for 'Required Direction Setup', 'Required Direction Hold'. I guess 'Worst Case Latency' is derived from the output of 'latency-test'???


  2. #2
    Registered
    Join Date
    Dec 2003
    Location
    Massachusetts
    Posts
    128
    Downloads
    0
    Uploads
    0
    anyone??


  3. #3
    Registered
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    487
    Downloads
    0
    Uploads
    0
    Have you read this?
    http://wiki.linuxcnc.org/cgi-bin/emc...StepGeneration
    Worst case Latency comes from the latency test.
    'Required Direction Setup', and 'Required Direction Hold' are special setting for drives that need extra time to for those comands.


  4. #4
    Registered
    Join Date
    Feb 2007
    Location
    USA
    Posts
    514
    Downloads
    0
    Uploads
    0
    Interesting that the G320 manual does not mention the direction setup and hold times. You might do a search in the Gecko forum to see what you find or ask directly in the Gecko forum. When you find out I'll update the wiki site step direction page:

    http://wiki.linuxcnc.org/cgi-bin/emc...r_Drive_Timing

    It is much less painful to get a step direction config going if you just use the Stepconf Wizard do generate your config files. Then you can add to or modify the custom files as needed.

    Take a look at this short getting started guide.

    http://www.linuxcnc.org/docs/EMC2_Getting_Started.pdf

    A SWAG on your direction setup 1000us and 20000us for direction hold.

    John


  • #5
    Registered
    Join Date
    Dec 2003
    Location
    Massachusetts
    Posts
    128
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by chester88 View Post
    Have you read this?
    http://wiki.linuxcnc.org/cgi-bin/emc...StepGeneration
    Worst case Latency comes from the latency test.
    'Required Direction Setup', and 'Required Direction Hold' are special setting for drives that need extra time to for those comands.
    Thanks for the info... btw, it looks like 'latency-test' doesn't actually spit out the worst case latency #'s... It appears that you have to actually run :
    sudo mkdir /dev/rtf; sudo mknod /dev/rtf/3 c 150 3;
    sudo mknod /dev/rtf3 c 150 3;
    cd /usr/realtime*/testsuite/kern/latency; ./run
    /usr/realtime-2.6.12-magma/testsuite/kern/latency$ ./run

    in any case the 'lat max' is hovering around 11000ns, with and average of 470ns or so. ovl max is 12000ns.

    According to the wiki, an ovl max less than 15000-20000 ns should yield nice results


  • Similar Threads

    1. Software for determining the parameters of threaded products
      By shgshg in forum Product and Manufacturer Announcements
      Replies: 0
      Last Post: 11-04-2008, 06:37 AM
    2. EMC2 latency from Network card
      By randyf1965 in forum LinuxCNC (formerly EMC2)
      Replies: 1
      Last Post: 03-22-2008, 11:08 PM
    3. Determining the master PCB on 10T
      By guhl in forum Fanuc
      Replies: 7
      Last Post: 01-23-2008, 02:40 AM
    4. Latency, Jitters & Lost Steps
      By Imagineering in forum TurboCNC
      Replies: 22
      Last Post: 07-22-2005, 08:39 AM
    5. Determining VA load
      By Swede in forum General Electronics Discussion
      Replies: 11
      Last Post: 04-10-2004, 05:00 PM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.