EkremVK Posted November 1, 2019 Report Posted November 1, 2019 (edited) Hi all! I need help with detecting the presence of a pulse signal on an input. I have a İQ-F FX5U PLC, and a sensor generating a pulse signal with 500 Hz frequency. When the sensor detects nothing, it outputs just flat 0 volts. But if it detects something, it outputs a 500 Hz pulse signal with a varying duty cycle (the duty cycle depends on the condition of detection but that is not relevant, I don't need that). I only need to detect whether there is a pulse signal on the input or there is just nothing. I thought of using Pulse Catch Function which I've never used before, but I couldn't comprehend how it exactly works. Looking at the image below; since there will be always a pulse signal on the input when the sensor detects something, "Input Device" will always be ON. And when the sensor detects nothing, there will be no pulse signal on the input, so the "Input Device" will be OFF. But what is that Input Device exactly? Is it a relay? An output? Or is it the result of an instruction (which I've found nothing as such)? So, if anyone can help me with this Pulse Catch Function or another solution, I would be glad. Edited November 1, 2019 by EkremVK Adding additional information
EkremVK Posted November 6, 2019 Author Report Posted November 6, 2019 Anyone? I still couldn't figure out, nor the technical support.
arturm@sperryrail.com Posted November 7, 2019 Report Posted November 7, 2019 hi. I think you can use SPD command. [SPD X0 K100 D5] counts inputs in X0 during 100ms and put in to data register D5. After that you can use [> d5 k20] . If data register d5 is greater then 20 you can switch some device on . Im using gx3 for programming. and that code works for fx5uc.
Inntele Posted November 8, 2019 Report Posted November 8, 2019 LD X0 OUT M0 [END] where M0 is a desired signal of presence the pulse sequence at X0 input
EkremVK Posted November 15, 2019 Author Report Posted November 15, 2019 On 07.11.2019 at 4:28 PM, arturm@sperryrail.com said: hi. I think you can use SPD command. [SPD X0 K100 D5] counts inputs in X0 during 100ms and put in to data register D5. After that you can use [> d5 k20] . If data register d5 is greater then 20 you can switch some device on . Im using gx3 for programming. and that code works for fx5uc. Thank you very much. It works just fine
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now