
adccommunitymod (AutomationDirect) asked a question.
Created Date: August 26,2014
Created By: mpeairs
**** 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.****
Hi, I'm programming my first stepper motor program, and I'm using the example in chapter eight in the CTRIO Manual 'Load and Run a Pulse Profile '. The example in the manual uses a normally closed contact with the initialize settings contact to control the reset rung (rung #5) which resets the pulse profile. I 've found that it resets the profile before it gets a chance to run the profile, so I'm currently using a timer to reset the profile after it's done running. This is slowing down the execution of the program, so I'm hoping any of you guru's out there have any wisdom for this newbie. Is there a bit that indicates the completion of the pulse profile that I can use to reset the profile? Thank you for your advise. Mike
Created Date: August 27,2014
Created by: scott.lawrence
Mike, what PLC are you using? What CTRIO?
Created Date: August 27,2014
Created by: mpeairs
Hi Scott,
I'm using a DL205 with a DL250-1 CPU and two H2-Ctrios.
Created Date: August 27,2014
Created by: scott.lawrence
are you using the I-Boxes? More specifically, the CTRLDPR (IB-1001)?
This will give you complete/error bits for evaluation
Created Date: August 28,2014
Created by: mpeairs
Hi Scott,
Thank you for your input. When I started this project I was using a DL240 CPU, so I-Boxes were not available to me and I didn't bother learning how to use them. I found the DL240 CPU didn't have enough memory registers available to cover two CTRIO modules without overlapping some of the memory registers. After you 're suggestion I looked into the I-Boxes, and they look pretty handy. I'll have to use them on future projects. In the mean time I have found that the output active bit is useful for my application. I use it to activate an out coil, and then I have that coil activate a negative one shot that resets the profile. This technique works on most of the program, but it fails on the home search profile if the drive is already in the home position. Fortunately I can split my home switches to go to both the CTRIO modules and to the input module, and then I'll use those inputs to trigger the reset.
Thank you again!
Mike
Created Date: August 28,2014
Created by: scott.lawrence
Mike,
You can also use that home switch as a permissive in the home routine...so that if you 're already home, homing has no effect.
Created Date: August 26,2014
Created by: mpeairs
Hi,
I'm programming my first stepper motor program, and I'm using the example in chapter eight in the CTRIO Manual 'Load and Run a Pulse Profile '. The example in the manual uses a normally closed contact with the initialize settings contact to control the reset rung (rung #5) which resets the pulse profile. I 've found that it resets the profile before it gets a chance to run the profile, so I'm currently using a timer to reset the profile after it's done running. This is slowing down the execution of the program, so I'm hoping any of you guru's out there have any wisdom for this newbie. Is there a bit that indicates the completion of the pulse profile that I can use to reset the profile? Thank you for your advise.
Mike