7/25/2024 9:11 AM | |
Joined: 11/21/2020 Last visit: 12/17/2024 Posts: 179 Rating: (0) |
Hi, In attachment you'll find short program for RPM measurement which I saw on Youtube. The guy is using 1200 PLC and Beckhoff 05.2420.1230.1024.5009 HTL encoder, I have tried to repeat the same using Baumer's and Pepperl's HTL encoders (Pepperl's 10-11651_R-1200datasheet is in the pdf attached), but in my case counter doesn't reset to 0 after shaft stop. Can someone say what is the problem, is this genius just a fraud (maybe he just cuts encoder's power supply or something else)? Is the formula in his video correct Speed (rpm)=[Value of Encoder (frequency) / Encoder Resolution] *60 Can someone share similar program for HTL encoder, where counter automatically resets after shaft stop? AttachmentBinder1.pdf (316 Downloads) |
7/25/2024 3:15 PM | |
Joined: 7/7/2010 Last visit: 12/23/2024 Posts: 15531 Rating: (2462)
|
In the PLC, do you see the proper or expected count per revolution at all speeds required for your encoder? If the count is correct below a certain speed, then the DIGITAL INPUT filter is probably set to the default value - which is useful for switches and pushbuttons and the like, but horrible for fast acting signals like encoders. Set the digital input(s) associated with the encoder terminal(s) into the s7-1200 to the smallest time value. If they are already set to the smallest number, great. Have you considered having the PLC generate the input signal speed for you by modifying the HSC hardware configuration from counter to say period or speed (depending on the PLC hardware and firmware versions). If you know the period, you can easily convert to rpm without dealing with count values and time deltas, and it will be done in hardware. To reset HSC at any time, use the CTRL_HSC instruction - see F1-Help and these forums as well as this support site for sample application using HSCs.
|
science guy |
|
7/25/2024 3:43 PM | |
Joined: 11/21/2020 Last visit: 12/17/2024 Posts: 179 Rating: (0) |
It seems that it counts correct, 500 impules per turn, and it counts in both directions (+/-, I use 0.0 and 0.1 DI inputs for counting). Both DI channels 1 and 2 are set to 0.1 microsec (I have tried other values, nothing has changed). I use 1215C DC/DC/DC PLC which is updated to latest firmware v4.6. Is it possible what I descibed that I saw in this video? Are the formula and PLC setting proposed OK? Should this be working with HTL incremental encoder, the guy uses HTL encoder as well? Here is the video : |
Last edited by: milos23 at: 07/25/2024 15:47:23Last edited by: Moderator_Lan at: 08/01/2024 09:29:38Video embedded. |
|
7/25/2024 5:06 PM | |
Joined: 9/21/2012 Last visit: 1/9/2025 Posts: 4237 Rating: (477) |
There is no mention that the encoder he uses is a HTL encoder. When he has the HSC input configured as Frequency, then the count goes to zero when the rotation stops. When it's configured fro Count, then it doesn't reset the count value. |
7/25/2024 6:55 PM | |
Joined: 11/21/2020 Last visit: 12/17/2024 Posts: 179 Rating: (0) |
Just check its label. It is Pepperl's push-pull incremental encoder 10_15631_R_1024. If I'm right, push-pull is HTL. I checked it twice, and I am pretty sure that our programs and settings are identical, please check attached pdf. Here is my screen recorded: https://www.youtube.com/watch?v=q3sR-ELiHI8&ab_channel=tpd |
Last edited by: milos23 at: 07/25/2024 18:59:01Last edited by: milos23 at: 07/25/2024 19:07:11Last edited by: milos23 at: 07/25/2024 19:11:18Last edited by: milos23 at: 07/26/2024 05:13:31Last edited by: milos23 at: 07/26/2024 05:22:14Last edited by: milos23 at: 07/26/2024 06:23:02Last edited by: Wit_Moderator at: 07/26/2024 11:49:02Video embedded |
|
7/26/2024 11:50 AM | |
Joined: 3/30/2020 Last visit: 12/24/2024 Posts: 5014 Rating: (1025)
|
@Hati: thank you. That is the answer: watching and following the whole video. |
Activities of this user is voluntary. There is no obligation or liability placed on this user. Though optional, your 'please' and 'thank you' is highly valued. |
|
7/26/2024 1:26 PM | |
Joined: 11/21/2020 Last visit: 12/17/2024 Posts: 179 Rating: (0) |
It is HTL encoder and it works with it! I made a mistake because I didn't compiled and download hardware to PLC! Thanks, everything works! |
Last edited by: milos23 at: 07/26/2024 13:33:11 |
|
This contribution was helpful to1 thankful Users |
Follow us on