Force feedback?


Results 1 to 6 of 6

Thread: Force feedback?

  1. #1
    Member
    Join Date
    Nov 2007
    Location
    USA
    Posts
    17
    Downloads
    0
    Uploads
    0

    Default Force feedback?

    Is anyone using haptic or force feedback during teach mode? If so please describe your hardware and setup.

    Similar Threads:


  2. #2
    Member TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    3074
    Downloads
    0
    Uploads
    0

    Default Re: Force feedback?

    Hi GORDYKD,

    I'm not exactly sure what you are asking but the TeachMotion C# example include with KMotion has code to utilize a force feedback joystick. Besides the simple on screen joystick (used in the video below), or a standard Gamepad, if a force feedback capable device is connected the program should detect it and utilize it. With the idea being that the operator could then feel how close an axis is to a restriction, or potentially the force being applied by the machine. Microsoft's DirectInput API is used. See the file ForceFeedbackJoystick.cs

    The TeachMotion Example





    One such Joystick - Microsoft SideWinder Force Feedback 2

    Force feedback?-sidewinder-jpg

    Regards
    TK http://dynomotion.com


  3. #3
    Member
    Join Date
    Nov 2007
    Location
    USA
    Posts
    17
    Downloads
    0
    Uploads
    0

    Default Re: Force feedback?

    Thank you for the reply. Sorry for the long delay in response. I am mainly interested in being able to feel the force applied by the machine servos. Is that possible?



  4. #4
    Member TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    3074
    Downloads
    0
    Uploads
    0

    Default Re: Force feedback?

    Hi GORDYKD,

    Could you describe what you mean in more detail?

    If using our SnapAmp the motor current (torque/force) would be available to KFLOP. If using 3rd party Analog Drives in torque mode the commanded output would be torque/force. Otherwise you would need to somehow measure current/torque/force and interface it back to KFLOP.

    Then this value would need to be upladed to the PC and interfaced to the haptic device.

    Regards
    TK http://dynomotion.com


  5. #5
    Member
    Join Date
    Nov 2007
    Location
    USA
    Posts
    17
    Downloads
    0
    Uploads
    0

    Default Re: Force feedback?

    Good morning Tom,
    This is a metal spinning operation and the operator is having great difficulty teaching the control because he can't feel the force as he is used to with a manual machine. There is a lot of "art" to the process. I am just hoping that a feedback joystick might give him the necessary tactile feedback to be able to make it work. Yes the system is using the SnapAmp. Will it need any modification to setup or code to use the sidewinder or will it pick it up automatically?

    Thanks



  6. #6
    Member TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    3074
    Downloads
    0
    Uploads
    0

    Default Re: Force feedback?

    Hi GORDYKD,

    The TeachMotion example should auto detect the presence of a force feedback joystick using Microsoft.DirectX.DirectInput. See the file: \PC VCS Examples\TeachMotion\ForceFeedbackJoystick.cs. But this was written many years ago and you may need to update/debug it if it doesn't.

    The code applies a force in the Y direction depending on how close the tool is to the measured spinning die profile. See the code before the call to FFJoy.ApplyForce(ForceX, ForceY); in Form1.cs.

    You would need to modify the code to instead read the motor current/torque and use that. This would involve a C Program in KFLOP to place the 3 phase measured current into a persist variable for access by the PC. Then the PC's C# code would need to be changed to read the persist variable and apply it as a force to the joystick.

    Note this forms a feedback loop with a human and many things and some delays in the loop so can easily go unstable. For example, the operator pushes the joystick (with little resistance) too much, then the servo hits something, force increases too much, then the joystick jerks back, servo reverses, force drops to zero, etc. and repeating forming an oscillation. So it is somewhat complicated to tune. The TeachMotion Code combines the distance to the die, the velocity of the servo towards the die, and a low pass filter to achieve a decent "feel".

    HTH

    Regards
    TK http://dynomotion.com


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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Force feedback?

Force feedback?