11/2/2021 6:32 AM | |
Posts: 3 Rating: (0) |
Is it possible to write the main driver on Block FC1 without using OB1 in CPU313C? ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 11/02/2021 06:33:37New subject after splitting |
|
11/2/2021 7:26 PM | |
Joined: 9/21/2012 Last visit: 4/27/2024 Posts: 3930 Rating: (444) |
Can you be a little more specific? |
11/2/2021 7:44 PM | |
Joined: 9/27/2006 Last visit: 4/27/2024 Posts: 12257 Rating: (2665)
|
Hello muayad; In Step 7, OB1 acts like the "main()" function in C programming. It organises the cyclic calls of all other FCs and FBs in the user program. So, if you decide for any reason to program all your functions in FC1, you should make sure FC1 is called in OB1, or it will never be executed. See the description of OB1 in the System and Standard Functions manual: https://support.industry.siemens.com/cs/us/en/view/109751826 Just between us, why would you want to drop your complete program in FC1? Hope this helps, Daniel Chartier |
Last edited by: dchartier at: 11/02/2021 19:47:22 |
|
This contribution was helpful to2 thankful Users |
Follow us on