8/23/2013 7:34 PM | |||
Joined: 1/28/2009 Last visit: 4/26/2024 Posts: 6838 Rating: (1359) |
Hello, as a starting point check the following.All you want is packed in a simple sample: Schedule output
Hello, Check the following sample, I am sure you can make a function with input of current date and time of CPU to generate set and reset signals.Your function may have flexible comparison data for day and hour plus a reset mechanism.
I have not tested the codes but you try! For such a question with more details, split it to small one to get fast and short answers.Also conference for STEP 5 is not a proer place to discuss S7 300 issue. Best regards Hamid Hosseini |
||
Last edited by: hdhosseini at: 8/23/2013 7:48 PM |
|||
8/23/2013 9:50 PM | |
Posts: 7 Rating: (0) |
i am unable to use this. As in S7-300 there are networks, but you have written the code in any progamming language. it is giving an error at CDT of sfc 1. |
Last edited by: Sam Sami at: 8/23/2013 9:52 PM |
|
8/23/2013 10:32 PM | |
Joined: 1/28/2009 Last visit: 4/26/2024 Posts: 6838 Rating: (1359) |
I hope you can generate block from this source.Just copy SFC1 from standard library to your blocks folder and then substitute ORGANIZATION_BLOCK "Cycle Execution" by ORGANIZATION_BLOCK OB1
.If you compile there should not be any problem. To access libraries, in SIMATIC Manager Ctrl+O or file-->open -->Libraries-->standard Library.That is also available in LAD/STL/FBD editor. |
8/23/2013 11:28 PM | |
Posts: 7 Rating: (0) |
I am using SFC 1 as shown in snap shot. but when i try to write the codes after that, it gives error.
|
8/24/2013 5:56 AM | |
Joined: 1/28/2009 Last visit: 4/26/2024 Posts: 6838 Rating: (1359) |
In your case the Semicolon ";" is extra.About the address, I am not sure you are using the right address because it is one of OB1 parameters.Try to make your own "date and time" via lokal area or using Data Blocks.
|
Last edited by: hdhosseini at: 8/24/2013 6:24 AM |
|
8/24/2013 8:03 AM | |
Posts: 7 Rating: (0) |
how can i use local DBs? |
8/24/2013 9:16 AM | |
Posts: 1064 Rating: (72) |
here take a look at this it might give you some ideas
AttachmentC:\Documents and Settings\smoor\My Documents\Test.zip (49 Downloads) |
Last edited by: playerslight at: 8/24/2013 9:17 AM |
|
Follow us on