12/14/2011 10:04 AM | |
Posts: 140 Rating: (0) |
I have attached my code also!
AttachmentFC73.pdf (55 Downloads) |
12/14/2011 10:13 AM | |
Posts: 1064 Rating: (72) |
! quick thing i noticed is that you are using t42 twice in your program this might be part of you issue |
12/14/2011 10:23 AM | |
Posts: 140 Rating: (0) |
Hi, That surely is not the issue because T42 is being used to trigger the timer T41 again after each round. BI is somehow outputting strange values
|
12/14/2011 10:34 AM | |
Joined: 1/28/2009 Last visit: 4/1/2024 Posts: 6836 Rating: (1359)
|
Dear Khyzer, The BI value is in hex format (16#021E).I think same problem discussed here.I just quote part of it here.It would be a great help: https://www.automation.siemens.com/tf/WW/en/Posts/52585
Best regards, Hamid hosseini |
12/14/2011 11:04 AM | |
Posts: 140 Rating: (0) |
Hi Hosseini, I have re-written my code and now timer's BI is behaving normally, same code but just re written again. Please see the attached code and picture. Now its able to calculate one wave cycle period. I am not sure what could be the reason. However i asked you to suggest any other way for calculating period for one wave cycle of any waveform? AttachmentFC71.pdf (67 Downloads) |
12/14/2011 11:05 AM | |
Posts: 140 Rating: (0) |
Picture attached! |
12/19/2011 9:21 AM | |
Joined: 10/7/2005 Last visit: 4/18/2024 Posts: 3003 Rating: (1046)
|
I hazard a guess dear Khyzer: Sheer luck (and apologise for being frank). The thing is, playerslightis correct in his earlier advise, you are indeed triggering the same Timer twice (T42 in your first example, and T4 in yoru second). Dependingon the RLO in front of each Timer "S" input and type of timer used, this can lead to all sorts of weird and wonderful behaviour. My advise: Use the "S" (Set) input ofa Timer once and only once in your program. I hope this helps |
Cheers |
|
Follow us on