David Jan Posted July 22 Posted July 22 Now I want to use torque mode with motors, communication is ecat, controller is CK3E, driver is CDHD, but now after building and downloading, enabling and jog will report an error straight away. The configuration file is as follows Motor_TorqueMode.pmh Quote
leandro.martins Posted July 22 Posted July 22 Have you tried commanding in open-loop using the out command? It might be useful to identify if the phases are coherent with the encoder direction. 1 Quote
David Jan Posted July 22 Author Posted July 22 2 minutes ago, leandro.martins said: Have you tried commanding in open-loop using the out command? It might be useful to identify if the phases are coherent with the encoder direction. I've tried open loop torque control mode before and it should work fine, I'll try open loop torque mode again. Quote
leandro.martins Posted July 22 Posted July 22 (edited) One thing I noticed and forgot to mention: You are limit your MaxDac in 1000, as the 6071 units for the CDHD is percentage,I suppose that will limit the torque in 1000/32767=0.03=3% what might not be sufficient to move. I don't have any experience with CDHD, so it's just a guess. Edited July 22 by leandro.martins 1 Quote
David Jan Posted July 23 Author Posted July 23 10 hours ago, leandro.martins said: One thing I noticed and forgot to mention: You are limit your MaxDac in 1000, as the 6071 units for the CDHD is percentage,I suppose that will limit the torque in 1000/32767=0.03=3% what might not be sufficient to move. I don't have any experience with CDHD, so it's just a guess. I think the problem may not be with the MaxDac, I tested it with open loop, after I built and downloaded the whole program, I entered #1 out 20 in CMD and motor 1 spins at 40, how do I find out what the problem is with my torque mode by testing it with open loop? Quote
leandro.martins Posted July 23 Posted July 23 What are your servo gains? What is the step response? Quote
David Jan Posted July 23 Author Posted July 23 9 minutes ago, leandro.martins said: What are your servo gains? What is the step response? The servo gains aren't set, but I think there's something wrong with my current motor profile because after I build and download the project, I enter the open loop command :#1 out 20 on CMD and the motor spins right after that, shouldn't it be spinning after I enable it? Why is the motor spinning on its own without me enabling it? This is too dangerous, I will add the servo gain parameter to the motor configuration file and then test the open loop. Quote
Faraday MC - Tony Posted July 23 Posted July 23 #1 out 20 enables the motor and commands 20% torque. If you want to enable the motor with zero torque you should command #1 out 0. 1 Quote
leandro.martins Posted July 23 Posted July 23 1 hour ago, David Jan said: The servo gains aren't set That might explain the error when you try to jog. If you are not setting the gains, the default values will be used, what might be inappropriate for your application. The gains dictates how the torque is calculated from the desired and current positions, but when you use the out command you are "forcing" that percentage of torque, so the gains will not interfere on that. My previous recommendation of using the out command was to validate that for a positive value in the out command the reading from the encoders would increment. Quote
1220801328 Posted July 23 Posted July 23 Is the 6060h setting 10 so that it is setting the motor to CST mode? Have you tried using the motor setup process that comes with the PMAC? Quote
David Jan Posted July 24 Author Posted July 24 19 hours ago, leandro.martins said: That might explain the error when you try to jog. If you are not setting the gains, the default values will be used, what might be inappropriate for your application. The gains dictates how the torque is calculated from the desired and current positions, but when you use the out command you are "forcing" that percentage of torque, so the gains will not interfere on that. My previous recommendation of using the out command was to validate that for a positive value in the out command the reading from the encoders would increment. If the open loop test is to verify that the encoder reading will follow the torque output, then I would think it would, does this prove that my torque mode profile is okay? Quote
David Jan Posted July 24 Author Posted July 24 18 hours ago, 1220801328 said: Is the 6060h setting 10 so that it is setting the motor to CST mode? Have you tried using the motor setup process that comes with the PMAC? The 6060 is set to 10, it's detectable in the PDO and monitored in the motor servo in sync. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.