1/4/2013 2:39 PM | |
Joined: 8/22/2011 Last visit: 9/30/2024 Posts: 47 Rating: (1) |
Hi to everybody reading this. It's me again with questions about HSC in S7-1200. I'm trying to make a program with 2 presets. First preset (let's say 1000 counts) is loaded in I0.0 rising edgehardware interrupt. When the counter reaches preset value, CV=PV hardware interrupt routine occurs and loads the next preset value (1500 for example). Now when the next preset is reached I'd like to reset the counter by setting CV to 0. What bothers me is that the reset should be conducted in the same CV=PV interrupt routine and I cannot get the program not to reset the value after first CV=PV. How do you guys write your multiple presets programs? Would you pleasebother to have a look at the example attached. Best Regards AttachmentProject2.zip (573 Downloads) |
1/9/2013 2:09 PM | |
Joined: 8/22/2011 Last visit: 9/30/2024 Posts: 47 Rating: (1) |
Here are the screnshots if you (or others) areinterested. Attachmentcaptures.zip (528 Downloads) |
Follow us on