5/9/2012 5:54 PM | |
Posts: 557 Rating: (64) |
Hello, You can call fc many times as per your requirment. FP is give 1 pulse which is valid for 1 scan. pls. explain your requirment in detail? |
5/9/2012 7:47 PM | |
Joined: 1/28/2009 Last visit: 4/1/2024 Posts: 6836 Rating: (1359) |
Hello naveen_paliwal, 2 cases are considered in the attachment.FP and FN need memories to keep tracking the edge change.In FC1, these memories(global addresses) are provided as FC parameters and it works good.For FC2,these memories provided from temporary local data.Stored data are not retained for the next scan. The moral of story,it is better to provide global memories for FN,FP instructions. Best regards, Hamid Hosseini AttachmentFP.zip (290 Downloads) |
This contribution was helpful to2 thankful Users |
5/16/2012 3:49 PM | |
Posts: 8 Rating: (0) |
I use globals allways for FC's as temps dont work. But I usually use a FB and use an array of ONS[x] defined as static variables, for my edge evaluation. gav s |
5/16/2012 8:41 PM | |
Posts: 559 Rating: (87) |
Dear naveen_paliwal, Please refer to below Post which may help you. |
Follow us on