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 |
Follow us on