9/26/2011 1:09 PM | |
Joined: 1/28/2009 Last visit: 10/26/2024 Posts: 6852 Rating: (1365) |
Dear mcetin Would you please upload your codes(project) here.Why did not you use OB35 and its cyclic execution property instead of a timer? Best regards |
9/26/2011 1:26 PM | |
Joined: 7/9/2011 Last visit: 8/22/2024 Posts: 19 Rating: (0) |
Thanks for reply, I am new at programming s7300. This is my code. Attachmentfb_test2.zip (173 Downloads) |
9/26/2011 1:50 PM | |
Joined: 1/28/2009 Last visit: 10/26/2024 Posts: 6852 Rating: (1365) |
This may help Step7 project different language |
This contribution was helpful to1 thankful Users |
9/26/2011 2:01 PM | |
Joined: 10/7/2005 Last visit: 11/7/2024 Posts: 3026 Rating: (1056)
|
Hello mcetin your problem is caused by incorrect usage of TEMP variables. Put simple, TEMP variables are "lost" when the Block execution is finished (they do NOT retain their value which means you MUST always write to them first before you read from them). The simple fix in you case is to change the TEMP variable "REAL2" to a STAT variable and I hope this helps. |
Cheers |
|
This contribution was helpful to1 thankful Users |
9/26/2011 2:09 PM | |
Joined: 7/9/2011 Last visit: 8/22/2024 Posts: 19 Rating: (0) |
Sorry, I don't know what should i do. There is a video attachment (screen2exe file). Next Step i will send you screen captures. Thanks Attachmentfbtest.zip (157 Downloads) |
9/26/2011 2:54 PM | |
Joined: 10/7/2005 Last visit: 11/7/2024 Posts: 3026 Rating: (1056)
|
Hello mcetin there's plenty of good reading material and help around and here's a few suggestions: 1.) Step 7's inbuilt help 2.) Go to "Start menu-SIMATIC-Documentation" and you'll findplenty of automatically installed pdf manuals 3.) Online tuorials at: http://support.automation.siemens.com/WW/view/en/34008480 4.) Manual links at All SIMATIC useful manuals 5.) Search for subjects at: https://support.automation.siemens.com P.S: One more thing about your FB: Make the used S5 Timers input to the FB so you can assignunique Timer numbers to every call. Alternatively use the SFB Timers from the IEC library as Multi Instance calls inside the FB. I hope this helps |
Last edited by: fritz at: 9/26/2011 3:14 PMtypos Cheers |
|
Follow us on