8/30/2017 10:18 AM | |
Posts: 13 Rating:
|
Hello, I found some stranges in SCL code. Its possible to declare in FC the static variable: FUNCTION Material_code_check:VOID
Fl :BOOL; END_VAR VAR_IN_OUT Control :"Parameters"; // Struct of UDT2 VAR How it would be work ? I suppose in this case it would be normal TEMP variable ? The Function can be compiled without Failure. Also by Test this Block its Works! But i need to be ssure what happened now if i declare in FC the static variable? In STL, KOP, FUP the static declaration is not possible in FC only in FB. Kind Regards ------------------------------------------------------------------------------------------ |
Last edited by: The Helping Hand at: 8/30/2017 3:36:06 PMNew subject after splitting |
|
8/31/2017 6:56 AM | |
Posts: 13 Rating:
|
Thanks for Info! =) Kind Regards |
8/31/2017 7:27 AM | |
Joined: 3/5/2014 Last visit: 8/5/2022 Posts: 5521 Rating:
|
hi ToFast, this topic is maybe interresting for you: Difference between FB and FC's hope this helps, regards, |
FCK WAR! |
|
This contribution was helpful to
1 thankful Users |
Follow us on