ahsan1820 Posted June 1, 2013 Report Posted June 1, 2013 hi I have to take input of weight from HMI as real data type and after scaling into INT compare it with the input feed back from analog input channel . how can I do that. does real data handling possible in FX 1n plc?
Crossbow Posted June 3, 2013 Report Posted June 3, 2013 FX1N can do real numbers. If the data from the analog module is integer, then you need to convert one value or the other. Comparison must be done with the data in the same format. Choose 1. 1. Convert the value from the HMI to integer. The command is INT. 2. Convert the value from analog to real number. The command is REAL. Then perform your comparison, either on integers (like >, <) or floating point (E>, E<).
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