Patko Posted August 3, 2023 Report Share Posted August 3, 2023 Version software: 1.33.236 Hello, I communicate with the frequency converter and the PLC via modbus. I have an absolute sensor connected directly to a frequency converter. I read the parameters from the frequency converter. I need to read the value of the current revolutions (rev). I can read this using two parameters: PAR543 - HighWord Actual Position PAR544 - Actual LowWord position It is a word ( int16 ) value. How do I combine them into a double word so that it shows me a real value, comparable to the revolutions shown in the frequency converter. Thank you Link to comment Share on other sites More sharing options...
ORSO2001 Posted August 3, 2023 Report Share Posted August 3, 2023 ciao considering that you have to have a variable like UINT32 or INT32 called "revolutions" ...i think that the faster way is ... revolutions = PAR543 * 65536...then revolutions = revolutions + PAR544 ... so use the FB "multiplication" then the FB "addition". Link to comment Share on other sites More sharing options...
Patko Posted August 4, 2023 Author Report Share Posted August 4, 2023 it works this way too. Thank you Link to comment Share on other sites More sharing options...
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