8/8/2018 11:58 AM | |
Posts: 12 Rating: (1) |
Dear Colleagues, I need help about next case: -two motors have to be alternative switching by time (to reach the almost equal running time) - ok it is solved - partly. - if one motor is going for error (faulty, etc), it have to be switched to the another one and leave it on that output (do not switching) until the motor error is not solved by the user. In the sample the switching time is set for 10 sec, but in the practice it will run 15~30 minutes after switch. I was attached the current program part - it could be helpful for me if you got some nice solution for that case. Thank you in advance! AttachmentMotor switch alt.zip (288 Downloads) |
8/8/2018 7:53 PM | |
Posts: 12 Rating: (1) |
Hi Everyone, I was made, something - it is working, functional, but it is not elegant... Can anyone have any idea? AttachmentMotor switch alt_2.zip (343 Downloads) |
8/12/2018 1:34 PM | |
Joined: 3/27/2009 Last visit: 2/11/2024 Posts: 92 Rating: (6) |
Hi their, see the attachement. I hope this is the solution you are looking for. It is nearly doing the same as yours only this time it uses the Q1 & Q2 output LOW edge to trigger the selection of the next pump to start...... I also selected the function to keep this selection incase of power switch off........ Let me know if this helps and if so please rate as well..... AttachmentMotor switch alt update.zip (326 Downloads) |
Last edited by: Peterako at: 8/12/2018 1:35:45 PM |
|
8/12/2018 4:10 PM | |
Joined: 3/27/2009 Last visit: 2/11/2024 Posts: 92 Rating: (6) |
Hi IXO65, I am not sure if i originally missed the problem ......... In the original program, not always it triggered correct the change over.......( because a double timer was used), my solution is always switching over after the output was active. Any how i included below also the timer function, in this way after 25 min. the pump will change over. Any how IMEA will tell us and we can correct if required. AttachmentMotor switch alt update incl timer.zip (332 Downloads) |
8/13/2018 5:53 AM | |
Joined: 3/27/2009 Last visit: 2/11/2024 Posts: 92 Rating: (6) |
@ixo65 Ooops yes you are correct, my mistake ....... I do not know why IMEA included the 1 Sec. timers ..... I moved one timer to the input and connected the blocks normal. In my simulation this works ..... AttachmentMotor switch alt update incl timer rev2.zip (227 Downloads) |
8/13/2018 2:09 PM | |
Joined: 3/27/2009 Last visit: 2/11/2024 Posts: 92 Rating: (6) |
Hi Ivan, the solution came faster As IXO65 already told you complicated has better results ( free translation) By the way the change is based on a trick that i learned from IXO65 some time ago. By using its local VM blocks and seperating the 32bit to 16bit to compare them, then we can select the short running time pump that will be selected for next time.( so all credit to IXO65 please) pump 1 will always start first (pre selection to avoid two pumps) after that it is based on running time in minutes. if the times are the same, then again pump 1 will be selected. I also included a text on the logo display with the running time ......... Keep in mind every time you upload a change also the hour timers are reset to zero....... p.s. based on your last message for safety use a fuse block for every pump not a common fuse. AttachmentMotor switch run time based on running hours.zip (218 Downloads) |
Last edited by: Peterako at: 8/13/2018 2:13:13 PM |
|
8/15/2018 2:38 PM | |
Joined: 12/18/2014 Last visit: 4/18/2024 Posts: 32813 Rating: (4060)
|
I have now once more intensively dealt with comparing of counter values of hour counters. The value of an hour counter has a 32 bit format, i.e. a DWord. The value is a 32bit fixed score, i.e. a DInt. Therefore, my suggestion for the automatic change of the pumps taking into account the running times of the pumps. AttachmentAutomatic_pump_chance over_running_time.zip (211 Downloads) |
This contribution was helpful to4 thankful Users |
8/21/2018 1:32 PM | |
Joined: 3/27/2009 Last visit: 2/11/2024 Posts: 92 Rating: (6) |
Sorry for the delay ( because of my work i was offline for a week. @IXO65 - wow , thats a big change. i will check your solution (it always gives me nice ideas ) I have a different solution that is close by the original design and by a trick i TRY to bypass the limits from the analog blocks....... i use 4 hour counters and 2 of them i reset after a fixed running time and only when the two counters passed this limit.....Also i only use the minutes to compare the running time. Its not perfect but with my simulation ( using random timers to start stop) its near perfect. I included some text to explain. And yes the other 2 hour counters are the real hour counters. I hoop this is another solution...... AttachmentMotor switch run time based on running hours rev3 final.zip (249 Downloads) |
This contribution was helpful to1 thankful Users |
Follow us on