9/22/2021 12:28 PM | |
Joined: 10/12/2014 Last visit: 2/27/2024 Posts: 66 Rating:
|
Hi Experts ; Can I use an analog sensor to measure the bed moving speed in one direction? It s mean when moving the machine bed in one direction analog value change 4 ma to 2o ma. Here I have attached the written program, but it is not correct. I'm trying with the below calculation. Velocity = (PositionNow - PositionEarier) / TimeSpan Please help me with that. Logo Model -LOGO 0BA8 Br Tharindu AttachmentCircuit Diagram1.zip (439 Downloads) |
Last edited by: neththi at: 09/22/2021 12:55:51 |
|
9/22/2021 2:10 PM | |
Joined: 2/22/2008 Last visit: 8/6/2024 Posts: 2698 Rating:
|
See attachment for a possible solution with Min/Max blocks. The time span is given with B001. The first value is stored in B003, the second value in B004. In B005 you have the difference between both values. Block B008 checks the sign of the difference to get only positive values in block B006. Use parameter P2 and P3 of block B006 to scale the speed in your desired unit. Maybe the time span must be increased, if the differences are too small in your application. Regards, Scorp AttachmentSpeed1.zip (447 Downloads) |
Last edited by: Scorp at: 09/22/2021 14:11:53 |
|
This contribution was helpful to
1 thankful Users |
Follow us on