marcinmrag

subtracting the real value

4 posts in this topic

Hello everyone!

I would like to do something like this in CX-programmer :

calibration.thumb.jpg.1db5c8b6a84742488f

Can someone explain me how to do it? When i try to use F-(434) function something strange happend. The value is still jumping and the line is not active. I would like to add auto calibration option for the weight module.

 

Share this post


Link to post
Share on other sites

You should show us what is not working.

Share this post


Link to post
Share on other sites
1 hour ago, marcinmrag said:

Can someone explain me how to do it? When i try to use F-(434) function something strange happend. The value is still jumping and the line is not active. I would like to add auto calibration option for the weight module.

This is just my assumption, but if you are reading data of the weighing module to, let's say memory D0, you must save the calibration/subtraction result on other memory, for example D10, then use that as your calibrated reading result.

If you use the same memory (D0) to save the calibration result, it will get overwritten time by time by the actual reading of the weighing module

Share this post


Link to post
Share on other sites

problem fixed. It was some kind of conflict between local and global variables. I changed all variables to global and everything start working well .

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