6/29/2009 4:34 PM | |
Joined: 2/23/2007 Last visit: 2/19/2023 Posts: 75 Rating:
|
hi all, I am try to use a function to monitor a communication fail with a converter drive by profinet. In the converter have a bit signal always pulse (0,5sec=0, 0,5sec=1). in the PLC I am monitor this bit, and if this not oscilate in 2 sec bit fail is set. My problem is the ADD_I always true condition... Anybody can help me?? Thanks for attention. Oliveira AttachmentComm_tes.zip (194 Downloads) |
6/29/2009 6:00 PM | |
Joined: 2/23/2007 Last visit: 2/19/2023 Posts: 75 Rating:
|
Obs.: In the simple atached application this function normaly, but when add this function in my real application not function. Obs2.: In my real appliucation when i change (P) address #PlsAdd1 -> M540.0 and #PlsAdd2 -> M540.1 function running normaly. Anybody have any idea about this?? AttachmentComm_t_2.zip (202 Downloads) |
6/29/2009 6:38 PM | |
Joined: 1/29/2006 Last visit: 8/19/2024 Posts: 446 Rating:
|
Dear NewTech! 1. Positive Edge (or Negative Edge).... can NEVER! be used on temp variables! (OK, It can be used, but results would be totally unpredictible!). Values of temporaly variables are lost between 2 calls of FC or FB........ . Edge detection is in principle comparison of new value of bit with old value of the same bit!.... therefoe, you must use M area (or DB area) for proper use of edge detection, as you allready noticed in your Obs 2. 2. And a tip: next time, when you post your code, PLEASE mark it (as I proposed in my attachment) so, that it can be opened in any language! I spent a half an hour only to open your project..... AttachmentAnyLanguage.pdf (347 Downloads) |
6/30/2009 8:38 AM | |
Joined: 1/29/2006 Last visit: 8/19/2024 Posts: 446 Rating:
|
Hey, UMENCHO ! Where is this "Language" file? On my PC, there are files with name Language, as attached. Which one must be deleted? Thanks in advance! uel123 AttachmentWhich Language file.pdf (186 Downloads) |
Last edited by: uel123 at: 6/30/2009 8:39 AM |
|
Follow us on