5/3/2020 1:24 PM | |
Joined: 2/5/2013 Last visit: 8/28/2025 Posts: 326 Rating:
|
Hi Leszek Jaszczak, Please attached Pdf file for Function Block. It seems Output variable which is declared in Function Block declaration part is used for multiple coils. You can use multiple Set/Reset for Output variable,but coil assignment is done only one time.If you use multiple coils for same output then malfunction will occur. You can write logic like (This is not proper SCL Code). If step 1 then Set Valve 1 and 2 and reset Valve 3 If step 2 then Set Valve 2 and 3 and reset Valve 1 If step 3 then Set Valve 1 and 2 and reset Valve 0 Also keep in mind that if you have used multiple legacy/IEC timer in program then you need to assign different timer/DB instance for each timer call. Br, AmolG. |
Please rate it. |
|
5/3/2020 1:54 PM | |
Joined: 4/3/2019 Last visit: 8/12/2025 Posts: 116 Rating:
|
hello AmolG please find pdf on my fb in attachemnt. Looking foreward for help. Attachmentfb.pdf (386 Downloads) |
5/3/2020 2:54 PM | |
Joined: 2/5/2013 Last visit: 8/28/2025 Posts: 326 Rating:
|
Hi Leszek Jaszczak, 1.You have used multiple coils for same address which is not allowed as it will create malfunction. 2.There is no any condition consider to jump from step 1 to step 2. 3.There is no set point consider for timer it is T#0s.You need to take care for the same.If you want use timers then you need to use some non zero time set point. Please find attached sample program for your reference may be it will helpful to you. Br, AmolG. AttachmentStepLogic.pdf (407 Downloads) |
Last edited by: AmolG at: 05/03/2020 14:55:42Please rate it. |
|
This contribution was helpful to
2 thankful Users |
5/3/2020 10:16 PM | |
Joined: 4/3/2019 Last visit: 8/12/2025 Posts: 116 Rating:
|
AmolG thank you for advices, you program looks beautifull, I am studying it. I do not understan everything but I think in a few days I will come back with questions. Regarding your points: 1.You have used multiple coils for same address which is not allowed as it will create malfunction. ad.1 yes - this was main mistake 2.There is no any condition consider to jump from step 1 to step 2. ad.2 there are conditions in a form of bits (coils) - please see attachment 3.There is no set point consider for timer it is T#0s.You need to take care for the same.If you want use timers then you need to use some non zero time set point. ad.3 there are set points for timers- I have moved them and fulfill in a OB |
Last edited by: Leszek Jaszczak at: 05/03/2020 22:19:26 |
|
This contribution was helpful to
1 thankful Users |
5/3/2020 10:30 PM | |
Joined: 2/5/2013 Last visit: 8/28/2025 Posts: 326 Rating:
|
Regular practice will make you perfect. Still there are some point which will you improve day by day. Br, AmolG. |
Please rate it. |
|
Follow us on