9/25/2014 9:58 AM | |
Posts: 17 Rating: (0) |
Hello dear experts, I have a project about motors which have mains and feedback informations. At the attachment you can see the project. And i have a problem in SFB4 (its not counting ). I read the subject from the forum but i can't succes. Can you help me? Thanks.
Attachmentdeneme.zip (244 Downloads) |
9/25/2014 4:02 PM | |
Posts: 17 Rating: (0) |
Does not anybody have any idea ? |
Last edited by: HSerdar at: 9/25/2014 4:02 PM |
|
9/25/2014 5:56 PM | |
Joined: 6/24/2013 Last visit: 11/18/2024 Posts: 1652 Rating: (426) |
Hi Ref Project for others to be able to open it Yopu can make it langiage neutra in STEP 7 or by removing language file from <folder_where_project_is>\deneme\Global Codewise Timer Call looks ok. it should count. I have found another problem - when You call SR Relay the bit for exclusive SR use was assigned to FB input and Your SR would never work. I have created dedicated variable (it must be STAT) for Set/Reset and assigned to it as well. I had cases when SFB4 failed to count and remedy was to download the FBs' instance DB. It may not count as well when Contactor input is ON since first scan as it must see the edge. To eliminate this problem You can put in series with Input inverted contact with FIRST_SCAN bit which can be generated by setting it in OB100 and clearinf in LAST network of OB1 also it is nice practice to prefix all inputs / outputs with I_ for inputs, Q_ for outputs, IQ_ for inouts and use consistent convention for naming stats and temps. Have done all the above in Your project and put as an example (changed symbols and FB interface; added first scan and have put it in timer call) Regards Piotr PS. Your project is set (in Block Proporties) to have Absolute Address Priority. Beware of this when using Data Blocks - when something is added in middle of the data block and other addresses are shifted program will access wrong data. To use Symbols Priority (for Symbolic Programming) You need change Block Proporties to bottom right (symbol has priority, behaviour>=v5.2) The modified project (with addressing priority left as it is) is attached to this post. Note: Removed Language file so it can be opened with any PC regardless of local settings. NOTE: Archive was too large so RARed it as SFX first then ZIPped to extract: 1. save 2. extract ZIP 3. Run .Exe to extract the project 4. open project in STEP 7 using Open-->Browse Function. AttachmentDeneme.zip (240 Downloads) |
9/26/2014 9:45 AM | |
Posts: 17 Rating: (0) |
Hi , ı did whatever you say but, OB100 is still 1, i added a screenshot, the output must be a set bit ? Thanks
|
Follow us on