Syed_Uni Posted September 20, 2021 Report Share Posted September 20, 2021 I have a Modbus TCP configured on two Eaton drives. I have to a read the status coming from 32 bit register and and convert it to decimal to display on HMI. I am using Variable: list of pointers to display the status depending upon the value I receive from the VFD register. How do I convert the 32 bit register to a decimal value? Thanks Link to comment Share on other sites More sharing options...
Cam Posted September 20, 2021 Report Share Posted September 20, 2021 Under the vector menu there should be a bit to num function. It would do this for you. Link to comment Share on other sites More sharing options...
MVP 2023 Joe Tauser Posted September 21, 2021 MVP 2023 Report Share Posted September 21, 2021 Is the 32 bit register a float or a long integer? Joe T. Link to comment Share on other sites More sharing options...
Syed_Uni Posted September 21, 2021 Author Report Share Posted September 21, 2021 The manual doesn't specify exactly. It just says the word is composed of 32 bit. Thanks Link to comment Share on other sites More sharing options...
MVP 2023 Joe Tauser Posted September 21, 2021 MVP 2023 Report Share Posted September 21, 2021 That clarifies things - it's a bitfield, not a number. Read two registers into two MIs and then do a NUM->BIT. Joe T. Link to comment Share on other sites More sharing options...
Syed_Uni Posted September 21, 2021 Author Report Share Posted September 21, 2021 Oh ok. Thank you Joe. 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