Sign in to follow this  
Followers 0
Guest Conno

Comparing two DataBlock in a PLC

3 posts in this topic

Hello everybody, I need help with PLC code for comparing 2 DB's in the PLC. example: DB1 contains 100 floating points DB2 contains 100 floating points How can I compare if the 100 floats in DB1 is egual to the 100 floats in DB2 in a smart way? Would be nice to have a loop that runns 100 times. Hope for help regards

Share this post


Link to post
Share on other sites
I wrote a bit of code hope this is what you are looking for. Remember that 100 Real value compares probably will add a little peak to the scan cycle time if this i critical you can spilt the comparision over more scancycles. CompareR.zip Edited by Klaus

Share this post


Link to post
Share on other sites
Thanks, That was exactly what I needed.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0