10/13/2022 11:02 AM | |
Joined: 5/29/2014 Last visit: 10/2/2024 Posts: 9 Rating: (0) |
Dear PLC friends, I’ve an issue regarding to timers and the reuse in Simatic Manager for a S7-300. I made a function (FC) for an application as described below. When a standard button (NO) is pressed 1x short, it create a 1 time pressed pulse. If the buttons is pressed 2x short, a 2 time pressed pulse is created. The same principle of operation applies for 3, 4 and 5 short presses. If the button is pressed for a longer time, a long press pulse is created. At this moment the function is working fine while using a SE-timer for the short press functions (e.g. 500ms) and a SD-timer for the long press function (1 s). Please not that those 2 timers can have a different time setting. Because the amount of timers in the S7-300 is very limited, I’m try to do the same with only 1 timer. I've tried and tested many things but can't get it to work. Something is blocking the timer, so I can’t use the timer a second time with other settings. Does anyone have a solution for this or can someone point me in the right direction? If possible I prefer a solution in LAD/FBD Attached you will find my working program with 2 timers. Please note that I only have basic skills. Thanks in advance.
AttachmentTimer.zip (646 Downloads) |
10/13/2022 11:20 AM | |
Joined: 1/21/2013 Last visit: 11/12/2024 Posts: 3262 Rating: (507) |
Hi Lieven Borms, instead of changing the algorithm to double the amount of possible function calls, I would switch to IEC timer. Put your program from the function to a function block. Input the required IEC timer as multi instance to the static part of the block interface and change the usage of your timers to them. For further information regarding the ICE timer, please refer to chapter 26 of "SIMATIC System Software for S7-300/400 System and Standard Functions". Kind regards |
This contribution was helpful to2 thankful Users |
Follow us on