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 Quote 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. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted September 21, 2021 MVP 2022 Report Share Posted September 21, 2021 Is the 32 bit register a float or a long integer? Joe T. Quote 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 Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted September 21, 2021 MVP 2022 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. Quote 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.