7/4/2023 12:26 PM | |
Joined: 12/16/2012 Last visit: 8/21/2025 Posts: 655 Rating:
|
Hi! Well, as usual, there are multiple solutions.
When it comes to time, I like to use the PLC time. There are nice built-in functions like RD_SYS_T and T_DIFF. Note: the picture below is not a function from the LGF. |
Last edited by: Kahl at: 07/05/2023 05:22:05note added |
|
This contribution was helpful to
1 thankful Users |
7/4/2023 1:09 PM | |
Joined: 1/28/2023 Last visit: 1/25/2025 Posts: 52 Rating:
|
I am afraid the library you advised has no a block you showed at post above. So, how to count pulses done? |
Last edited by: bb_ at: 07/04/2023 13:12:55 |
|
7/4/2023 7:16 PM | |
Joined: 3/30/2020 Last visit: 9/1/2025 Posts: 5414 Rating:
|
The answer by Mr. Kahl is already of value. There is a function that generates a pulse. Wrap that with your own function and count the pulses. Or modify the pulse generator function to you needs. We assume that the pulse time is far more than the PLC cycle. |
Last edited by: qwazee at: 07/04/2023 19:43:37Activities 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. |
|
This contribution was helpful to
1 thankful Users |
7/5/2023 10:54 AM | |
Joined: 6/24/2013 Last visit: 8/21/2025 Posts: 1693 Rating:
|
Hi You will need an init bit (trigger) and number of pulses to perform. FB solution: Inputs I_START - starts pulses on raising edge (ignored when running) Attached in project AttachmentPULSE_GENERATOR.zip (211 Downloads) |
Follow us on