![]() ![]() ![]() ![]() ![]() ![]() |
||
![]() |
||
![]() ![]() ![]() ![]() This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
![]() |
![]() |
#31 | |
Member
|
Quote:
I wrote the code for they HYD02 and M02AS controllers over 20 years ago. The code for the HYD02 and M02AS started with the M02AE code. There where conditional compiles that would add or remove code depending on the feedback. The advantage is that the learning curve going from one controller to the next was minimal. The same commands from the PLC could control all three versions.
__________________
"Living is easy with eyes closed, misunderstanding all you see...." Strawberry Fields Forever, John Lennon |
|
![]() |
![]() |
#32 | |
Member
|
Quote:
Keith |
|
![]() |
![]() |
#33 |
Lifetime Supporting Member
![]() ![]() Join Date: Feb 2011
Location: BC, Canuckistan
Posts: 290
|
Target and actual positions were set to automatic scale, but are the same units (inches). The latest one is done with fixed scales + 10%.
I might look a little further into the feedback circuit, it could be enlightening for future diagnostics. |
![]() |
![]() |
#34 |
Lifetime Supporting Member
![]() ![]() Join Date: Jun 2012
Location: Australia
Posts: 3,688
|
That's correct - the command position is scaled 16-101 units, and the actual position 13-103. Logix trends are set to automatically scale the Y axis by default, and in some cases that's helpful, but in cases like this the first thing you need to do is to manually set up the scaling so that you can get a meaningful trace happening.
|
![]() |
![]() |
#35 |
Member
![]() ![]() Join Date: Jul 2022
Location: FrozenHell
Posts: 120
|
This is the signal from the controller to the valve. Got it.
1. Any way, the "noise" is not white or normal, there are obvious "modes", i.e. there is a clear system “error” in the operation of the algorithm (calculations) - it seems to me that it would be useful to identify it. 2. If we look at the "Motion cycle manual 2023 02 02.jpg" graph (trying to remove the noise), we can see the fluctuations (1:12:14 - 1:12:19 they can be seen quite well). Fluctuations mean that at least one of the process harmonics (lag order) is not compensated by the control system. Possible solutions: - Reduce the "order" of the process. Make the pipeline more rigid, remove backlashes, leaks, delays, etc. - Increase the control order. In practice, it is not realizable. - Reduce the "speed" of the process. S-curve formula? The "up" movement takes about 4 seconds, and the "down" movement takes about 6 seconds. - Why? - I do not know the intricacies of the process, but when moving "down" the fluctuations are much less |
![]() |
![]() |
#36 | |||||
Member
|
Quote:
Quote:
The M02AE, HYD02 and M02AS all work of counts internally and there aren't enough that go by every scan time. Quote:
Quote:
Quote:
__________________
"Living is easy with eyes closed, misunderstanding all you see...." Strawberry Fields Forever, John Lennon |
|||||
![]() |
![]() |
#37 | |
Lifetime Supporting Member
![]() ![]() Join Date: Feb 2011
Location: BC, Canuckistan
Posts: 290
|
Quote:
The "up" and "down" is horizontal movement, but it's the difference between forward and reverse. They run at slightly different speeds due to carrying a load and being empty. The load is maximum 8 railway ties, about 300 lbs each (sometimes less). |
|
![]() |
![]() |
#38 | ||
Member
![]() ![]() Join Date: Jul 2022
Location: FrozenHell
Posts: 120
|
Quote:
Quote:
I'm sorry, I didn't express myself correctly. By Reducing the "speed" I meant decreasing derivatives (velocity, acceleration, etc.). |
||
![]() |
![]() |
#39 |
Member
|
I 'be got a new topic for a Peter ponders pic video. Resolution.
__________________
"Living is easy with eyes closed, misunderstanding all you see...." Strawberry Fields Forever, John Lennon |
![]() |
![]() |
#40 | |
Lifetime Supporting Member
![]() ![]() Join Date: Feb 2011
Location: BC, Canuckistan
Posts: 290
|
Quote:
It moves from low (13 inches) loaded to high (106 inches) to unload. There are different speeds programmed for loaded travel vs unloaded travel, which is probably unnecessary. |
|
![]() |
![]() |
#41 | |||
Member
|
Quote:
41.7 cnts/inch / 20 inch/sec = 2.085 cnts/sec. This means that most of the time, the controller doesn't see the motor turning. When it does, the derivative term provides a big spike. Quote:
Quote:
There is a lot that doesn't make sense.
__________________
"Living is easy with eyes closed, misunderstanding all you see...." Strawberry Fields Forever, John Lennon |
|||
![]() |
![]() |
#42 | |
Lifetime Supporting Member
![]() ![]() Join Date: Feb 2011
Location: BC, Canuckistan
Posts: 290
|
Quote:
|
|
![]() |
![]() |
#43 |
Member
|
I am still confused. If an SSI encoder has 22 bits then it gets 2^22 counts per revolution. Next we need to know how many inches travel per revolution. From this we calculate the number of counts per inch. If the machine moves at 20 inches per second, we can calculate the number of counts per second and the number of counts per 250 microseconds.
__________________
"Living is easy with eyes closed, misunderstanding all you see...." Strawberry Fields Forever, John Lennon |
![]() |
![]() |
#44 |
Lifetime Supporting Member
|
[Edit: fixed some typos]
Oh dear, Peter ... Do at least perform a modicum of unit analysis and get the units right. Code:
count 41.7 ----- inch cnt s ----------- = 2.085 ------ inch inch2 20 ---- s OP had at least the number correct originally: Code:
count
__________________
_ Brian T. Carcich i) Take care of the bits, and the bytes will take care of themselves. ii) There is no software problem that cannot be solved with another layer of indirection. iii) Measurement is hard. iv) I solemnly swear that I am up to no good ![]() v) I probably have the highest ratio of forum posts to actual applications in the field (∞). vi) Hakuna matata. Last edited by drbitboy; February 8th, 2023 at 07:36 PM. |
![]() |
![]() |
#45 | ||
Member
![]() ![]() Join Date: Jul 2022
Location: FrozenHell
Posts: 120
|
it seemed to me that on the chart "Motion cycle manual 2023 02 02.jpg" the speed reaches 25 inches per second. doesn't matter
Excuse me? According to your logic, at speed = 0, the accuracy will be infinite (encoder resolution) * (speed) speed = 20 inch/second counts per second = 41,7 counts/inch * 20 inch/second = 834 counts/second speed = 0 inch/second counts per second = 41,7 counts/inch * 0 inch/second = 0 counts/second Quote:
At the moment then stacker almost immediately stops it lost load. Correct? You questioned why it is oscillations. Correct? Try do decrease all target position curve derivates as low as possible Quote:
2^22 = 4194304 10 times difference. Are you sure you didn't make a mistake with the orders (decimal point) anywhere? |
||
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|