12/6/2016 3:02 PM | |
Posts: 5225 Rating: (1187)
|
I am sorry to say... what you are showing is not enough. I do think you have the wrong idea on what "pulse catching" is. In your case you have 3ms cycle. What I think you need is to use a hardware interrupt which triggers at the exact moment that the input is switched on. The delay on reacting to the signal is significantly reduced. Recent posts that might be helpful - note comments made by Radel in.. AttachmentExtract_S7-1200 System Manual_Pulse catching.pdf (460 Downloads) |
Last edited by: William_B at: 12/6/2016 3:07:15 PM |
|
12/7/2016 11:25 AM | |
Posts: 12 Rating: (0) |
Thank you for advices, I will try ASAP. All testing I doing on the machine. I will let you know I hope till the end of this week Greetings Jacob |
12/15/2016 10:10 PM | |
Posts: 5225 Rating: (1187)
|
What you are doing there is not an interrupt on the hardware input. Recently I helped a German gentleman. See [LINK] and look for the step by step PDF guide for configuring an HSC. You need to set a value for PV via the CTRL_HSC instruction if you want to use that functionality. I doubt that is what you need. Linking to the "zeroing" of the HSC will not help either - by the time you enter the interrupt, the HSC will already be zero. You need a regular interrupt connected to the input. See a clue attached. Greetings. What you can do is conf |
This contribution was helpful to1 thankful Users |
12/15/2016 11:34 PM | |
Posts: 5225 Rating: (1187)
|
I am going to try something new. Please find attached a ZIPPED video file. I recommend using VLC to play the file. AttachmentMovie_Define hardware interrupt.zip (296 Downloads) |
This contribution was helpful to1 thankful Users |
12/16/2016 5:13 PM | |
Joined: 4/9/2010 Last visit: 3/22/2024 Posts: 222 Rating: (33) |
I just happened to have the hardware and some free time to apply all the valuable advice . I enabled HSC1 and accepted the default reset signal to be connected to I0.3, set input fliters of all three signals to minimum, checked the "Generate interrupt for external reset event" and accepted default name "Hardware interrupt" for Hardware interrupt OB. Works like a charm.By the way, it is not necessary to use the physical input inside the interrupt since the interrupt itself is triggered by that input. Hopefully the enclosed project will help Jakob. Regards, Adam AttachmentHSCTest.zip (282 Downloads) |
This contribution was helpful to1 thankful Users |
12/16/2016 7:37 PM | |
Joined: 4/9/2010 Last visit: 3/22/2024 Posts: 222 Rating: (33) |
William, Is the enclosed program what you had in mind? Regards, Adam AttachmentHSCTest1.zip (301 Downloads) |
Last edited by: adam_ski at: 12/16/2016 9:24:33 PMLast edited by: adam_ski at: 12/16/2016 9:25:41 PM |
|
12/20/2016 4:51 AM | |
Joined: 3/16/2015 Last visit: 10/10/2021 Posts: 1250 Rating: (173) |
Never |
Follow us on