plc.myforum.ro Forum Index plc.myforum.ro
PLCs users www.plc.myforum.ro!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Convert 2 INT to Real and versa

 
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> OMRON Reg. U
View previous topic :: View next topic  
Author Message
cuongvcs
Member 2
Member 2


Joined: 09 Dec 2011
Posts: 263
Location: DaNang, Viet Nam

PostPosted: 15/08/2021 16:57    Post subject: Convert 2 INT to Real and versa Reply with quote

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
View user's profile Send private message
juatmann
Junior
Junior


Joined: 11 Mar 2021
Posts: 14

PostPosted: 13/06/2023 13:54    Post subject: Reply with quote

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

8-)


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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> OMRON Reg. U All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro