585,975 active members*
4,995 visitors online*
Register for free
Login
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2009
    Posts
    38

    Direct SPI communication

    To whom it may concern:
    I have about 7 or 8 VSD-E drives, and currently I have one 3x mill that I am using 3 drives in and controlling them in torque mode with the analog in. I would like to switch the communication to use SPI rather than the analog input, as when I first start up the mill the slight voltage on the analog input causes the axis to take off, and can potentially cause a crash. It is quite unnerving.

    So I would like to switch the communication directly to SPI. Do you have any documentation on how to control these drives directly using SPI. I looked up the documentation on your SimpleMotion utility, but what do you use to communicate to the drive directly through SPI? Are there any special commands?

    Here is the controller that I am using. Please let me know this is possible to do.
    RS232 with KFLop
    Thank you,
    Dave

  2. #2
    Join Date
    May 2006
    Posts
    4045
    Hi Dave,

    The normal way to solve the drift problem is by using the amplifier enables. On power up the amplifiers should remain disabled until the system is initialized and the servos are enabled. Once the servos are enabled they will hold position without any drift.

    Your link is to our RS232 UART not a SPI port. KFLOP doesn't have a hardware SPI port. But there was a discussion on the Yahoo Group on how to bit-bang an SPI transfer in software. It runs at about 500Kbits/sec.

    HTH
    Regards
    TK
    http://dynomotion.com

  3. #3
    Join Date
    Jun 2009
    Posts
    38
    As always, thank you for your help Tom. I didn't know that SPI communication was different from UART. Sorry about that.

  4. #4
    Join Date
    Sep 2004
    Posts
    1207
    I also agree that analog is suitable for drift free operation once drives are disabled while external controller is not controlling. One common way is also to control velocity via pulse trains because it produces no drift.

    Using SPI would do also drift free operation but that is the most difficult way to go. For sample implementation of bit bang SPI communication to VSD drives, see Simplemotion library source code.

Similar Threads

  1. direct control / direct phase
    By djwez in forum LinuxCNC (formerly EMC2)
    Replies: 9
    Last Post: 06-04-2017, 11:21 AM
  2. CNC Direct THC
    By Dizzy_G in forum Waterjet General Topics
    Replies: 1
    Last Post: 07-27-2013, 10:16 AM
  3. Anyone ever go to Direct drive on a KM3 ?
    By Rich Carlstedt in forum HURCO
    Replies: 4
    Last Post: 05-20-2010, 10:24 PM
  4. +5v supply, direct from PC's PS?
    By Zumba in forum Gecko Drives
    Replies: 3
    Last Post: 04-07-2006, 06:49 AM
  5. Reseller or direct?
    By saturnnights in forum Xylotex
    Replies: 15
    Last Post: 03-21-2006, 09:05 PM

Posting Permissions

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