5/15/2014 1:22 PM | |
Posts: 5 Rating: (0) |
THX I will tra this. |
5/16/2014 6:31 AM | |
Posts: 5225 Rating: (1197) |
Okay.. I'll byte (bite).. [pause] [smile] @Dado_BiH: Please check the structures of the datablocks you are using. Check if these are set to be retentive or not. Please make a choice if you wish them to have memory or not. Consider my advise -> [serious] Recovery from power outage is one of the things most programmers ignore or do not impliment correctly. Now you know how much of a problem it can cause. Think about what routine you can develop that will "recover" or "reset" your sequencing after a power outage. Have that new routine be triggered indirectly by OB100, which you now know of. Be careful to develop a routine that is safe! [very serious] The problem with OB100 is that it does not distinguish between power outage and you placing the PLC in RUN mode after extensive changes. You can detect this condition. After you have done your recovery, set a "sure" bit. This "sure" bit indicates you can trust the positioning. This bit is also not retentive. After a power outage this bit looses its own state. So.. you execute the recovery routine only after you see "sure" = FALSE or when the user requests a system reset. A variation on the theme is to not write a automatic routine. You can have the user assist you by making manual movements available to him/her. The "loop-in-alarm" function of the alarms on a current generation Siemens panel, can make this happen for you. [Nice function to use for this.] Utilising your panel is beyond the scope of this thread. To find out more about "loop-in-alarm", you can enquire from "Visualization/WinCC (TIA)" section of this forum. I hope these commentary are of value to you. Please do not hesitate to ask detailed questions (even in a new thread). WithIn this month our forum friends will be most willing to help. [smile] Good luck. w |
Last edited by: William B. at: 5/16/2014 6:38 AMbetter the readability. |
|
This contribution was helpful to2 thankful Users |
Follow us on