| View previous topic :: View next topic |
| Author |
Message |
cuongvcs Member 2

Joined: 09 Dec 2011 Posts: 263 Location: DaNang, Viet Nam
|
Posted: 15/08/2021 16:57 Post subject: Convert 2 INT to Real and versa |
|
|
Dear all.
I have issued with NX1P2 when get data from modbus RTU.
the data from slave have 2 INT. I wan convert to real for displays but I can not do anything.
Pls advise about this.
Many thanks. |
|
| Back to top |
|
 |
juatmann Junior

Joined: 11 Mar 2021 Posts: 14
|
Posted: 13/06/2023 13:54 Post subject: |
|
|
You have to use "Union" data type . With this you can link an array of 2 int with a real or float data
https://www.youtube.com/watch?v=RhEr544b3S4&ab_channel=OMRONEnd%C3%BCstriyelOtomasyonTR
| cuongvcs wrote: | Dear all.
I have issued with NX1P2 when get data from modbus RTU.
the data from slave have 2 INT. I wan convert to real for displays but I can not do anything.
Pls advise about this.
Many thanks. |
|
|
| Back to top |
|
 |
|