Results 1 to 5 of 5

Thread: Problem with drive speed offset compensation by PLC programme

  1. #1
    Registered
    Join Date
    Feb 2007
    Location
    Belgium
    Posts
    11
    Downloads
    0
    Uploads
    0

    Problem with drive speed offset compensation by PLC programme

    Hi,

    I'm trying to compensate the speed offset of a drive (when analog command is 0V, speed is not 0) with a PLC programme. I count the number of encoder pulses for x seconds then I calculate the speed and then the voltage to compensate the offset. I try counting for 1 second but that don't work : the motor rotates in the opposite direction, because the calculated voltage is wrong. I try counting for 10 seconds, it seems to work but not all the time. Sometimes the motor also begins to rotate in the opposite direction. Do you have an idea what could be wrong or what I am not doing well?
    The encoder is 4096 pulses per rev.

    Thanks a lot.


  2. #2
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    18,933
    Downloads
    0
    Uploads
    0
    What PLC? and are you using an analogue module and a counter module for encoder?
    Why is the speed not zero when the command is zero?
    The balance control on the drive should be adjusted first to achieve zero speed whith zero voltage at analogue input. (jumper input terminals in order to zero).
    What type of drive, Velocity (tach F.B.) or Torque Mode?
    Are you trying to set up a PID loop? their are dedicated PLC cards for this purpose.
    Al.
    CNC, Mechatronics Integration and Custom Machine Design (Skype Avail).

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.


  3. #3
    Registered
    Join Date
    Feb 2007
    Location
    Belgium
    Posts
    11
    Downloads
    0
    Uploads
    0
    It's Beckhoff modules. Analogue module for the drive command (velocity command) and an encoder module that takes A & B encoder signals to count the edges. The speed is not zero, because there is an offset in the drive. There is an internal parameter to compensate it, but I prefer to compensate it by software. There is no PID loop for the moment. I just read the counter (encoder module) to calculate the offset voltage.


  4. #4
    Registered
    Join Date
    Nov 2007
    Location
    USA
    Posts
    5
    Downloads
    0
    Uploads
    0
    What type of drive are you using? Which BECKHOFF PLC are you using?

    I am an application engineer for BECKHOFF USA and I have just started building my own CNC router for use with TwinCAT NCI. I will be visiting this forum regularly so please feel free to respond with questions. I will have many of my own questions regarding the CNC machine process.

    Dave Z


  • #5
    Registered
    Join Date
    Feb 2007
    Location
    Belgium
    Posts
    11
    Downloads
    0
    Uploads
    0
    They are IDC B8000 digital brushless servodrives. I'm using an Ethercat coupler. I'm translating an existing BASIC software that uses PC23 indexer boards (step-dir commands) in order to use Beckhoff modules with analog command to the servodrives. The new PLC software uses directly the count from the encoder module, do some work and outputs the command to the analog module. Perhaps the solution would be to use Twincat NC PTP to do all the regulation? I have been working on other projects for some months and I can't remember all things but I tought there would be a problem doing this : there is a ball and socket joint, so the moves are restricted in two directions so the positions of 3 out of 4 axes are somewhat linked. I can check this before sending a new position to these 3 axes but I have no control on the real output from the positionning NC function blocks so the limit of the ball and socket joint could be gone past?

    I hope my explanations are not too confused.

    Thank you.


  • Similar Threads

    1. Tool Change Offset problem on 3T control
      By Andy Kveps in forum Fanuc
      Replies: 1
      Last Post: 02-24-2007, 11:36 PM
    2. tool offset cancel problem
      By zoeper in forum Machine Problems, Solutions , Wireless DNC, serial port
      Replies: 8
      Last Post: 04-25-2006, 11:46 AM
    3. HF Varible Speed Drive
      By Sotl in forum General Electronics Discussion
      Replies: 1
      Last Post: 03-29-2006, 09:07 PM
    4. variable speed drive is it to big
      By 69owb in forum Servo Motors and Drives
      Replies: 1
      Last Post: 01-02-2006, 05:44 PM
    5. Being driven insane by an offset problem!
      By Cold Fusion in forum General CAM Discussion
      Replies: 15
      Last Post: 09-11-2004, 11:39 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.