
adccommunitymod (AutomationDirect) asked a question.
Created Date: May 09,2000
Created By: Pat Slattery
**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****
I'm using the DL250, a D2-CTRINT, and an F2-02DA-2. My application has arms mounted on a screw driven by a motor. I am moving the arms up and down at certain speeds to certain positions. I'm a new programmer and the information in the manuals doesn't give me what I need to be sure I'm doing it right. What I'd love is an example of how (and this isn't precisely my app) a person would start a motor at position 0 (let's assume one count per motor revolution), run the motor (using +/-2047 as full range, +/-10VDC = +/-1725RPM)at half speed (1023) and stop at 4000 counts. It would really help if I could see how it's done to check my work. There are no examples in any of the books, and the examples there are of how to run the motor at a certain speed are confusing at best to the novice. And they don't say how to stop it! Thank you. Pat Slattery
Created Date: May 09,2000
Created by: Pat Slattery
I'm using the DL250, a D2-CTRINT, and an F2-02DA-2. My application has arms mounted on a screw driven by a motor. I am moving the arms up and down at certain speeds to certain positions.
I'm a new programmer and the information in the manuals doesn't give me what I need to be sure I'm doing it right. What I'd love is an example of how (and this isn't precisely my app) a person would start a motor at position 0 (let's assume one count per motor revolution), run the motor (using +/-2047 as full range, +/-10VDC = +/-1725RPM)at half speed (1023) and stop at 4000 counts.
It would really help if I could see how it's done to check my work. There are no examples in any of the books, and the examples there are of how to run the motor at a certain speed are confusing at best to the novice. And they don't say how to stop it!
Thank you.
Pat Slattery
Created Date: May 10,2000
Created by: Tom Jenkins
First of all, treat speed and position separately.
There are a number of ways to monitor position, from absolute encoders to linear postion feed back devices. It sounds like you have a slow moving application and don't require dead nuts accuracy. You can use a prox switch to count the motor revolutions and with a screw each revolution = a certain distance. Use a counter to keep track of hte revolutions each direction, and when CTA = your limit value stop the motor with a coil.
Speed is probably based on your analog output. 0 = 0% speed, 4095 = 100% speed. You can set the speed to whatever you want by changing the value in the register that corresponds to your analog output.
With this simplified scheme you will have to travel to an extreme and trip a limit switch on power up so you know where you are to begin with. Use the inpur from the switch to zero your counters.