1/2/2011 7:11 AM | |
Joined: 1/28/2009 Last visit: 9/10/2024 Posts: 6849 Rating: (1365) |
Dear member follow the instruction illustarted in chapter 5 (Creating a Program with Function Blocks and Data Blocks) and chapter 8 (Programming a Function) of THIS manual. Best regards |
Last edited by: hdhosseini at: 1/2/2011 7:14 AM |
|
1/3/2011 5:59 AM | |
Joined: 3/21/2006 Last visit: 9/10/2024 Posts: 10228 Rating: (1181) |
Hello, Did you follow instructions from hdhosseini ' link? Basically steps are: 1. Create FB with own instance DB. 2. Download both in CPU. (first DB and then FB). 3. Call FB (foe example in OB1)... Best regards, Hristo Mihalev |
This contribution was helpful to1 thankful Users |
1/3/2011 2:09 PM | |
Joined: 1/28/2009 Last visit: 9/10/2024 Posts: 6849 Rating: (1365) |
The attachment is what you need a FB in OB1.Calling a function or a function block in a specific OB depends on the nature of that FB. Consider FB 58 "TCONT_CP" ought to be called in a cyclic manner so it is called in OB3X.If another FB determines the behavior of CPU while start up you should call it in (OB100,101,102) and finally diagnostic FBs should be called in corresponding OB. An FB is necessary to ba called in OB1, is executed in each scan of CPU for example a function to handle auxiliary parts of a machine. I hope this helps BR Attachment1.zip (68 Downloads) |
Last edited by: hdhosseini at: 1/3/2011 2:19 PMLast edited by: hdhosseini at: 1/3/2011 2:10 PM//attachment added |
|
Follow us on