Thank you in advance, I know that this some have a solution to my problem.

I have two slaves that communicate with a twido plc using Modbus RTU, and i want to read and write some registers in those slaves. the problem is that those registers are Float, like temperation and setpoint.

Moderator's Note:I think temperation maybe temperature.

for example, in the list of the modbus registers, i want to read the temperation that has two registers 0x3 and 0x4 and they say it's a float register. also i want to write a setpoint that has also two registers 0x101 and 0x102.

for reading the registers, i configure the macros and everything. i thought that, if the registers are float and the response are words, i have to use the function ''CONCATW'' to concatenate two words to a single doubleword. then convert this doubleword to floatword. Am i doing it right? if not how can i do that in twidosuite?

We are not experts in twidosuite so we would not be able to help you out in that regard, but we can help you with Modbus questions. If this interests you and you are willing to purchase Modbus support hours, please contact us.

A first step in dealing with 32 bit floating point is to assemble two 16 bit Modbus words in the proper high/low byte and word order (concatenation), but that is only the first step in interpreting the 32 bits as floating point value. The remaining interpretation is not trivial.

Users of this site are benefiting from open source technologies,
including Linux,
PHP,
MySQL and
Apache. Be happy.
This page served by Yesod4 in the beautiful
Blackstone Valley of Massachusetts, the home of the American Industrial
Revolution.

FortunePeople who understand context would be steamed to have someone else
dictating how they can call it.
-- Larry Wall in <199710221710.KAA24242@wall.org>

You have clicked on the "?" button for search help. To search the
site, enter your search terms in the box labeled "search the site"
and hit Enter.

Some tips for better search results...

Precede each search term with a "+", as follows:

+Modbus +TCP

Otherwise, any post with either term will match.

Use double quotes around phrases, as follows:

+"Allen Bradley" +ethernet

Otherwise, posts containing these words in separate locations will match.

To exclude a word, precede it with a "-", as follows:

+Modbus -Plus

This will return only posts containing "Modbus" but NOT containing
"Plus".

Note that common words (and, that, etc.) and words shorter than 2 characters
are automatically excluded from searches.

Your subscription request is being
processed.

You must be a Control.com member
to subscribe to threads. Please log in and try again.

If you're not already a member, consider joining. It's free,
and you can customize the content you view, as well as being
able to subscribe to threads and topics, getting new posts
delivered to your email as they appear.

Username

Password

Remember me on this computer

Select the categories for which you would like to
see messages displayed...

Applications

Application Questions and Problems

Automation Business

The Business of Automation and Control

Communications

Communications systems and equipment.

Engineering

Engineering and workplace issues.

HMI

Human-Machine Interface and SCADA.

Information

Information resources, documentation.

Languages

Programming languages.

Motion Control

Motion control, servos, steppers, etc.

Networking

Local and wide area networking in factory automation.

Open Control

Open interfaces, software and hardware

PCs in Automation

Computers in manufacturing; also hardware discussion.

PLCs

PLCs and related questions.

Power Generation

Power generation equipment control.

Process Control

Continuous process industries, DCS questions.

Sensors

Sensor technologies.

Software in Automation

Software, including programming, OS issues, etc.

You must be a Control.com member
to vote on a post. Please log in and try again.

If you're not already a member, consider joining. It's free,
and you can customize the content you view, as well as being
able to subscribe to threads and topics, getting new posts
delivered to your email as they appear.