Jump to content

word to double word


Patko

Recommended Posts

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

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

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
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.