CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Tue Feb 19, 2019 10:01 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Jun 22, 2018 6:37 am 
Offline

Joined: Wed Sep 17, 2014 6:56 am
Posts: 20
Hi,
I am trying to communicate with a modbus slave device to read the floating point variable. In Codesys I can see only the option to read as a 16 bit word. How can i read the real value from my slave 32bit floating point variable. I face this problem both Modbus RTU and Modbus TCP


Top
   
PostPosted: Fri Jun 22, 2018 12:12 pm 
Offline
Frequent User
Frequent User

Joined: Fri Sep 02, 2011 8:02 pm
Posts: 297
Modbus only supports WORD data transfer. You need to read two registers locations (2 words) and then convert your DWORD to REAL. You also may need to confirm the order of your words, too (upper/lower).

_________________
Scott Cunningham
KEB America, Inc.
www.kebblog.com
www.kebamerica.com


Top
   
PostPosted: Fri Jun 22, 2018 3:45 pm 
Offline

Joined: Sun Jun 28, 2015 12:23 pm
Posts: 77
viewtopic.php?f=11&t=8922


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 7 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited