7/30/2012 11:25 AM | |
Joined: 1/28/2009 Last visit: 9/2/2024 Posts: 6846 Rating:
|
Hello, For byte comparison in FBD, in LAD/STL/FBD editor select options-->cutomize-->LAD/FBD and uncheck "type check of addresses". Best regards, Hamid Hosseini Attachmentuncheck.zip (200 Downloads) |
Last edited by: hdhosseini at: 7/30/2012 11:26 AM//typo |
|
7/30/2012 11:35 AM | |
Posts: 69 Rating:
|
Yes I know this solution, It´s not realy nice. It´s porssible to have a FC with the output connectable with another AND PORT? |
7/30/2012 11:38 AM | |
Joined: 1/28/2009 Last visit: 9/2/2024 Posts: 6846 Rating:
|
Hello again, Yes, possible.Output of an FC can be assigned to a Global or local memory and simply combined with other memories based on AND (or other basic binaty functions). see the attachmnet. Best regards, Hamid Hosseini Attachmentfc.zip (148 Downloads) |
Last edited by: hdhosseini at: 7/30/2012 11:43 AM// attachment uploaded |
|
7/30/2012 11:58 AM | |
Joined: 1/28/2009 Last visit: 9/2/2024 Posts: 6846 Rating:
|
Hello again, Your question is not clear up to now, Let's summarize what you have done: 1-You can not compare bytes in FBD so you can use option provided here( uncheck.zip ). 2-You created an FC, so how did you implement the byte comparison there? 3- Do you want to save result of comparison on "ENO" output of FC? About the uploaded snapshot(G:\FC CONNECTION.jpg ),I think it is not possible to do it as editor waiting for address "??.?". Best regards, Hamid Hosseini |
Last edited by: hdhosseini at: 7/30/2012 12:06 PM//updated |
|
7/30/2012 12:27 PM | |
Joined: 10/7/2005 Last visit: 9/6/2024 Posts: 3018 Rating:
|
Hello mrkintaro
sorry, NO you can NOT do that in FBD (nor LADDER), but can do so in CFC (which is an optional extra for Step 7 unless you use PCS7 where it is the "standard" way of programming).
Correct, the only to avoid this then is to make INTcopies of theBYTE variable (e.g.use a MOVE to transfer them intoTEMP variables thatare declared as an INT's). This however is rather wasteful and unticking the dreaded Type check of addresses for LAD/FBD woulddefinitely be my personal preferred solution. |
Cheers |
|
7/30/2012 12:32 PM | |
Joined: 1/28/2009 Last visit: 9/2/2024 Posts: 6846 Rating:
|
Hello again, Graphic Connection of boolean output of your function to input of the AND function is not possible .As I mentioned the editor waits to get addresses there "??.?" About saving comparison result to ENO output of function is possible but again it is not a nice solution different purpose.Check here: HD_Cases on BR-EN/ENO Mechanism I think using global or local addresses is the safest solution. Best regards, Hamid Hosseini |
This contribution was helpful to
1 thankful Users |
Follow us on