3/5/2016 9:58 AM | |
Posts: 5225 Rating:
|
Yes. |
3/5/2016 12:21 PM | |
Posts: 5225 Rating:
|
Much of the stuff is done by memory by now. What will also help you two guys.. If you do like my style of teaching... Request the system to show posts I was involved in by my user name. You can then narrow the search by "motion control" or "HSC" or something like that. w |
This contribution was helpful to
1 thankful Users |
3/5/2016 7:55 PM | |
Joined: 3/16/2015 Last visit: 10/10/2021 Posts: 1250 Rating:
|
If you're not using the Z output don't worry about gated or ungated. That just describes the relationship between Z and A&B pulses. If it's an open collector then it's NPN and you will need to do as William mentioned in his post, add a pull-up resistor. |
3/5/2016 8:39 PM | |
Joined: 10/8/2015 Last visit: 8/18/2025 Posts: 62 Rating:
|
Ah! I see... This puts things on a different angle. I honestly wasn't expecting an NPN encoder. Nevertheless, I'll have to use a pull-up resistor, indeed as William_B aformentioned. For this type of signal input, I'm guessing the resistance should be around 0.5 W, 1k or 2.2 kohms. Some sources proposed 3.3 khoms even. Because I checked some forums, and they were usually referring to pull down, and not pull-up resistors. Which makes me wonder about the admittance and how easily it would be affected by outside noise, stray capacitance, and electromagnetic compatibility. Another thing that came to mind is about a interesting read I made some time ago. It's about using NEGATIVE resistance. It does completely oppose ohm's law, but there are diodes that are used for negative resistance, such as the Tunnel diode, and the Gunn diode, which are used for high speed microwave oscillations. Could reach about 100 GHz transition frequency if need be, though I'm not certain it would help my application. Another question: If I am to use the pull up resistor, should I connect them to both pins? (In this case it's I1.0 and I1.1, but I am reconsidering after what you guys told me.) For now the inputs are still the same. How many ohm resistance should I add, and how may I determine it in case it is highly variable? Note that I'm still using 20 us speed for the pulse detection on input. Since it is starting from IB1000, I'm assuming both inputs are actively working between addresses 1000 and 1003. I may need the CTRL_HSC, because it seems that the high speed counter MAY change its value during the operation automatically. Basically, instead of a user coming in and putting the new addressed value, the high speed counter will automatically change it into a predetermined value, and the process goes into an endless loop until stopped by the user. These values will be of course converted from distance to pulse, depending on the application, and will automatically be applied as the new value for the high speed counter. So, my questions:
(Thank you note: Thank you all for the information that you are all providing me. It is helping me immeasurably, and the links are indeed helpful (but I'm just stating the obvious here XD) |
3/5/2016 8:39 PM | |
Posts: 5225 Rating:
|
Pyrus - I am reacting still on the old post... You will cause yourself problems if you use I'll leave it to another person now to tell you why. |
3/5/2016 8:56 PM | |
Joined: 10/8/2015 Last visit: 8/18/2025 Posts: 62 Rating:
|
Oh... I see what you mean. I believe your concern is the response time from the High Speed Counter. In that case, I may have to use the CTRL_HSC after all, then. But it remains to be seen. I'll wait for the next responses |
3/5/2016 9:48 PM | |
Joined: 3/16/2015 Last visit: 10/10/2021 Posts: 1250 Rating:
|
Sorry, it's a Saturday and it's sunny out. The idea of using an open collector output is to source more current than a sourcing output can. The question is, did they choose it for that reason and the encoder is going to be placed a considerable distance from the CPU or is it just what was available. |
Last edited by: Kal.A at: 3/5/2016 9:49:43 PM |
|
3/5/2016 10:23 PM | |
Joined: 10/8/2015 Last visit: 8/18/2025 Posts: 62 Rating:
|
Oh hey. I'm only responsible for the programming wiring, but I would still like to know how to wire it from outside. Now, William_B said that using the comparison arithmetic operator is a bad choice, and left it for others to answer for its reason. Now, I'm assuming that it is possible that the comparison may not occur on time, and the high speed counter is too fast, and the condition may become bypassed, and will continue counting, reach the highest possible value, restart from the lowest possible value until it reaches the desired value once again and MAYBE stop this time. This is what I deduced. The programming part is most important for me however, which is why my focus is tending towards it. But again, it doesn't mean I should not know how to connect it on my own. So, here is basically how I want this program to work, and hopefully, I'll be able to draw the optimized and correct form of the ladder diagram I'm trying to get:
Programming part:
|
3/6/2016 12:55 AM | |
Joined: 3/16/2015 Last visit: 10/10/2021 Posts: 1250 Rating:
|
Hi pyurus, My apologies for not remembering all the details of you project and I will go back to read it thoroughly. AttachmentOrganization blocks of a CPU 1200.pdf (614 Downloads) |
Last edited by: Kal.A at: 3/6/2016 1:00:15 AM |
|
3/6/2016 1:15 AM | |
Joined: 3/16/2015 Last visit: 10/10/2021 Posts: 1250 Rating:
|
What are the details of the driver you mentioned? You may not need resistors at all. |
3/6/2016 1:40 AM | |
Joined: 3/16/2015 Last visit: 10/10/2021 Posts: 1250 Rating:
|
|
3/6/2016 8:46 AM | |
Posts: 1529 Rating:
|
Yikes, looks like you are doing Feed Roll Control/Cut to Length using start/Stop. What are you using to drive your feed roll? As William_B alluded to, your cut command must be issued when your product is stopped at the proper place, which means you need a proper position control. If you trigger your stop solely on length, then there is additional distance traveled during the deceleration. Whether your are stopping by brake or by using a drive on your motor, you can't change this. Cut-to-Length applications are not trivial. You may want to give this a little bit more thought as to how it is executed. Trust me, 90% of what I do is cut-to-length is some form. |
This contribution was helpful to
1 thankful Users |
3/6/2016 10:32 AM | |
Joined: 10/8/2015 Last visit: 8/18/2025 Posts: 62 Rating:
|
I see what you mean. Even with the brake on the motor, it may still be too slow. Very well then. Is it possible to use the High Speed counter hardware interrupt to stop both motor and trigger the break simultaneously to make it on time? |
Follow us on