2/5/2014 2:15 PM | |
Posts: 1 Rating: (0) |
I have a similar subject and I have searched the forum but didn't find a solution to my problem. All the threads I found discuss well documented principles as - Basic timing - Priority - Error Handling What I search for is an example program (that can be upgraded to V12) in order to see how it is implemented. In the file you can find mine. The purpose of my program is that the user can choose the cyclic interrupt time to perform an OB3x (for example the time interval for data logging). When I analyse the timing of my program, it's not right. When I set the cyclic interrupt to 1s, the first time OB3x takes 1s. After that it always takes 2s. The pause in between always takes 1s. I believe the duration has to be the same and not a multiple of 1s. So I expect the program to be: If the cyclic interrupt OB takes 300ms, that every 1s (choice) the OB is called for and only takes 300ms and not a multiple of 1s influenced by the chosen time parameter. AttachmentCyclicInterrupt.zip (389 Downloads) |
Last edited by: GrasserF at: 2/5/2014 11:07 PMLast edited by: GrasserF at: 2/5/2014 11:05 PMnew subject after splitting from /tf/WW/en/Posts/82819 |
|
2/28/2014 9:13 AM | |
Joined: 10/10/2005 Last visit: 1/13/2025 Posts: 1921 Rating: (136) |
Hello, in STEP 7 (TIA Portal) there are the "Time delay interrupt" OBs (OB20) which do you can use. A comprehensive description you will find in the online help. There are also an example program with "Time delay interrupt" in STEP 7 (TIA Portal): http://support.automation.siemens.com/WW/view/en/45045947 With best regards |
Last edited by: GrasserF at: 2/28/2014 10:19 AMLast edited by: GrasserF at: 2/28/2014 10:19 AMlink edit (de/en) |
|
Follow us on