MODS_R16R read Uint register, How can i read int register? i need conver 2 register to float variable
I have a AC 900 Controller. i have configurated the controller how slave Modbus, and i need from a Master modbus write in the controller float values.
I am using the instruction MODS_R16R and after i use METOR instruction for convert 2 registers in a Real value.
The problem is that the MODS_R16R instruction does not take into account the sign of the registry, and when i convert the 2 register in a float value, this value is incorrect.
How can i solve it?
Thanks
I am using the instruction MODS_R16R and after i use METOR instruction for convert 2 registers in a Real value.
The problem is that the MODS_R16R instruction does not take into account the sign of the registry, and when i convert the 2 register in a float value, this value is incorrect.
How can i solve it?
Thanks
Answers
Hello.
I assume you have two words that represent the 16+16=32 bit of a IEEE real.
See my response in https://forum-controlsystems.abb.com/...
A combination of PWODW and TO_RE (change input to DWORD) should do.
If that is not what you need check the conversions TO_xx in the help. E.g open the dialog of the MODS_R16R, press help. Then look for TO_ in the index.
Best regards
Jürgen
I assume you have two words that represent the 16+16=32 bit of a IEEE real.
See my response in https://forum-controlsystems.abb.com/...
A combination of PWODW and TO_RE (change input to DWORD) should do.
If that is not what you need check the conversions TO_xx in the help. E.g open the dialog of the MODS_R16R, press help. Then look for TO_ in the index.
Best regards
Jürgen
Add new comment