{}

Our Brands

Welcome to the Schneider Electric Website

Welcome to our website.
Search FAQs
How do I configure a READ_VAR in an M340 or M580 PLC to read a Floating Point (REAL) number?

Issue:
Configuring a READ_VAR in an M340 or M580 PLC to read a Floating Point (REAL) number


Product Line:
Unity Pro/EcoStruxure Control Expert


Resolution:
The READ_VAR can only be configured using INT Arrays or Direct Address Arrays. In actuality, the READ_VAR brings in the contents of the remote memory location undisturbed. If at the remote device %MW100 was configured as a real number, this real number occupies %MW100 and %MW101. The READ_VAR will read this back as %MW100 INT and %MW101 INT. You should then create a variable of data type REAL and locate it to %MW100, it will display the same number as the remote device in REAL format. There are other ways to use the data once you have it in the local PLC, but this was just meant to clarify the process.
***Note: if your REAL data comes in on an ODD numbered %MW, you will need to move it to an EVEN numbered %MW as M340 REALs must start on an EVEN number.

You can also use the WORD_AS_REAL block to "convert" those 2 registers into a REAL type variable.

Schneider Electric Saudi Arabia

How do I configure a READ_VAR in an M340 or M580 PLC to read a Floating Point (REAL) number?

Issue: 
Configuring a READ_VAR in an M340 or M580 PLC to read a Floating Point (REAL) number


Product Line:
Unity Pro/EcoStruxure Control Expert


Resolution:
The READ_VAR can only be configured using INT Arrays or Direct Address Arrays. In actuality, the READ_VAR brings in the contents of the remote memory location undisturbed. If at the remote device %MW100 was configured as a real number, this real number occupies %MW100 and %MW101. The READ_VAR will read this back as %MW100 INT and %MW101 INT. You should then create a variable of data type REAL and locate it to %MW100, it will display the same number as the remote device in REAL format. There are other ways to use the data once you have it in the local PLC, but this was just meant to clarify the process.
***Note: if your REAL data comes in on an ODD numbered %MW, you will need to move it to an EVEN numbered %MW as M340 REALs must start on an EVEN number.

You can also use the WORD_AS_REAL block to "convert" those 2 registers into a REAL type variable.

Schneider Electric Saudi Arabia

Explore more
Range:
Explore more
Range:
Users group

Discuss this topic with experts

Visit our Community for first-hand insights from experts and peers on this topic and more.
Users group

Discuss this topic with experts

Visit our Community for first-hand insights from experts and peers on this topic and more.
Explore more
Range:
Explore more
Range:
move-arrow-top
Your browser is out of date and has known security issues.

It also may not display all features of this website or other websites.

Please upgrade your browser to access all of the features of this website.

Latest version for Google Chrome, Mozilla Firefox or Microsoft Edgeis recommended for optimal functionality.
Your browser is out of date and has known security issues.

It also may not display all features of this website or other websites.

Please upgrade your browser to access all of the features of this website.

Latest version for Google Chrome, Mozilla Firefox or Microsoft Edgeis recommended for optimal functionality.