morandoron78 Posted January 6, 2013 Report Posted January 6, 2013 hello, i need some help in measuring the amplitude of one 50ms pulse. i am using V570 PLC and V200 and i wired the incoming pulse in to Analog in 1 of the V200 and link it to MI1. i can see the voltage reading , but how can i capture it and save it ? thanks for your help...
Emil Posted January 6, 2013 Report Posted January 6, 2013 I can give you two ideas: 1. If you just want ot catch te max reading, you ccan perform simple logic, as follow: Each scan of the controller you will compare the reading (in your case MI1) to a "buffer" - let's say MI2 (any other MI can be used too). If MI1 > MI2 (curent value greater than buffer), Store MI1 to MI2. This way in the buffer (MI2 in our example) you will have the max value. 2. Make DT and store MI1 on it each scan. In some cases yu can fil lMI1 in vector (Vector Fill) instead in DT.
morandoron78 Posted January 7, 2013 Author Report Posted January 7, 2013 hello, i did what you suggested in no 1. and MI 2 is getting the value of MI1 but when the pulse goes to 0 MI 1 and MI 2 goes to 0 too.... i dont know why MI 2 dont remain whit the high value...
Emil Posted January 7, 2013 Report Posted January 7, 2013 MI1 will follow the analog signal, but MI2 needs to keep always the max value. It needs to be something in your logic. Can you send the project ot support@unitronics.com?
morandoron78 Posted January 9, 2013 Author Report Posted January 9, 2013 hi, i send you the project... thanks for your help.
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