Results 1 to 9 of 9

Thread: VSD-E SPI port

  1. #1
    Registered
    Join Date
    May 2008
    Location
    UK
    Posts
    22
    Downloads
    0
    Uploads
    0

    VSD-E SPI port

    1. Does VSD-E have independent or paralleled SPI ports on 6 pin SPI header and 16 pin user CMD connector? As soon as I connect my SPI controller to CMD I lose the connection to GDtools over FTDI USB cable. I guess there is just one SPI command port and it just hardwired to two connectors?

    2. User manual states that there is an SPI watchdog that can be set to a range of 0 to 0xFFFF PID cycles. How do I switch it on and set its value?


  2. #2
    Registered
    Join Date
    May 2008
    Location
    UK
    Posts
    22
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by LBodnar View Post
    1. Does VSD-E have independent or paralleled SPI ports on 6 pin SPI header and 16 pin user CMD connector?
    Having probed the ports I can confirm that they are just wired together.
    Last edited by LBodnar; 05-09-2009 at 11:42 AM.


  3. #3
    Registered
    Join Date
    May 2008
    Location
    UK
    Posts
    22
    Downloads
    0
    Uploads
    0

    Confused...

    I found that VSD-E SPI output data is inverted and is coming from CMD pin 12 and not 11 as stated in the user manual (v1.05)

    IS anybody [successfully] using SPI here?


  4. #4
    Registered
    Join Date
    May 2008
    Location
    UK
    Posts
    22
    Downloads
    0
    Uploads
    0
    Looks like no SPI type control users here then...

    Some initial progress has been made meanwhile.
    I can now successfully communicate to VSD-XE through SPI having tested the speed of up to 150 kbit/s. This takes absolute position update rate to about 1500/sec. It is nice to have direct 16 bit positioning available since it eliminates the need to clock thousands of pulses and avoids relative nature of incremental control. It also provides immediate position feedback at the same rate (I operate in torque mode and read back the encoder position and then pass it over to external application for closed loop control.)

    The issues I have so far is that if VSD-E locks up due to SPI error (e.g. controller/drive power has been interrupted) the only way to recover the drive is power cycling.

    Is there a way to force reset through one of the user inputs?

    I am still confused as to why I am getting SPI output data on CMD pin 12 (OUT1.) GDtools has "Force SPI" set as a control type.
    Last edited by LBodnar; 05-10-2009 at 02:59 PM.


  • #5
    Registered Xerxes's Avatar
    Join Date
    Sep 2004
    Location
    Finland
    Posts
    1,201
    Downloads
    0
    Uploads
    0
    There certainly aren't many SPI users as it's not officially documented.

    What kind of SPI error are you talking about? There are a "clear faults" command (you can assign an input pin for this, too) and also "reset drive" command. But if SPI comm is out of sync (caused by interference), then power reset is the only option.

    There seems to be an error in manual. The OUT1 is used as data output, not OUT2.


  • #6
    Registered
    Join Date
    May 2008
    Location
    UK
    Posts
    22
    Downloads
    0
    Uploads
    0
    SPI error may be caused by out-of sync powering up of the controller and the drive. E.g. the controller is up and trying to send an SPI command while the drive is only starting up. Obviously, the drive can initialise its SPI subsystem right in the middle of SPI transmission from the controller. This would cause either timeout error or checksum error when the next attempt will be made when number of shifted bits reaches 32.

    I, basically, want a signal that says that the drive is ready to receive SPI data.


  • #7
    Registered Xerxes's Avatar
    Join Date
    Sep 2004
    Location
    Finland
    Posts
    1,201
    Downloads
    0
    Uploads
    0
    To set SPI watchdog, use:

    Code:
    //0=disabled, other=number PID cycles to wait for serial command
    #define RUNTIME_INPUT_WATCHDOG 5300
    
    setparam(RUNTIME_INPUT_WATCHDOG, timeout);


  • #8
    Registered Xerxes's Avatar
    Join Date
    Sep 2004
    Location
    Finland
    Posts
    1,201
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by LBodnar View Post
    SPI error may be caused by out-of sync powering up of the controller and the drive. E.g. the controller is up and trying to send an SPI command while the drive is only starting up. Obviously, the drive can initialise its SPI subsystem right in the middle of SPI transmission from the controller. This would cause either timeout error or checksum error when the next attempt will be made when number of shifted bits reaches 32.

    I, basically, want a signal that says that the drive is ready to receive SPI data.
    I see. You could configure "servo ready" status bit to OUT2 and monitor it before sending commands.


  • #9
    Registered
    Join Date
    May 2008
    Location
    UK
    Posts
    22
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by Xerxes View Post
    I see. You could configure "servo ready" status bit to OUT2 and monitor it before sending commands.
    Will try that!
    Cheers
    Leo


  • Similar Threads

    1. Paraller Port Driver - Breakout Port
      By billy in forum General Electronics Discussion
      Replies: 7
      Last Post: 11-20-2008, 08:27 AM
    2. USB port
      By timlkallam in forum Haas Mills
      Replies: 1
      Last Post: 10-28-2008, 11:51 PM
    3. How do i add a USB Port to a TM-1?
      By JHamdan78 in forum Haas Mills
      Replies: 1
      Last Post: 08-05-2008, 02:29 PM
    4. Need Help!- port
      By jcochran in forum PlasmaCam
      Replies: 2
      Last Post: 03-28-2008, 11:26 PM
    5. Help with LPT port!
      By honda in forum Industrial Hobbies (Support forum)
      Replies: 4
      Last Post: 02-11-2007, 02:47 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.