How to Convert 16-Bit Registers into a 32-Bit Float in Delta Ispsoft using Big Endian Format

Question:

Hello, I am looking for instructions on how to convert two 16-bit registers into a 32-bit float in Delta Ispsoft, utilizing the Big Endian format. Currently, I am using a MODRW command to extract data from an Eastron energy meter.

Top Replies

To improve the quality and efficiency of your code, consider writing the two 16-bit integers into consecutive D devices such as D101 and D100. Then, utilize binary floating point instructions on these devices by specifying the first one (D100). It may be necessary to rearrange the order of the integers in order to ensure proper execution.

I believe Brian is correct. It is important to understand how the Delta handles the floating point data, as you may need to perform byte swapping. This will ensure proper data interpretation and communication between systems.

Hey there! It seems like you're tackling quite an interesting task. To convert two 16-bit registers into a 32-bit float in Delta IspSoft, you could use the FLOATRW instruction instead of MODRW. This command is specifically designed for reading floating-point numbers. Be sure that the PLC is configured for Big Endian format as IspSoft may use Little Endian by default. Always double-check your settings to match with your Eastron energy meter!

Sure, you should be able to use the MAKE_DWORD/HIGH_LOW command to convert two 16 bit registers into a 32-bit floating point value. Make sure you consider the order of high and low registers according to the Big Endian format. After that, use the FLOAT command to convert this DWORD to a floating point. It might look something like this: FLOAT(MAKE_DWORD(MODRW(), MODRW())). Don't forget to verify the results through monitoring.

More Replies →

Streamline Your Asset Management
See How Oxmaint Works!!

✅   Work Order Management

✅   Asset Tracking

✅   Preventive Maintenance

✅   Inspection Report

We have received your information. We will share Schedule Demo details on your Mail Id.

To add a comment, please sign in or register if you haven't already..   

Frequently Asked Questions (FAQ)

FAQ: FAQs:

Answer: 1. How can I convert two 16-bit registers into a 32-bit float in Delta Ispsoft using Big Endian format? - To convert two 16-bit registers into a 32-bit float in Delta Ispsoft using Big Endian format, you can use appropriate conversion algorithms or functions provided by the software. Make sure to handle the byte order correctly to ensure the correct interpretation of the data.

FAQ: 2. What is the significance of utilizing Big Endian format for the conversion process?

Answer: - Using Big Endian format ensures that the most significant byte is stored at the lowest memory address, which is important for correctly interpreting the data when converting 16-bit registers into a 32-bit float. It helps maintain data integrity and accuracy during the conversion process.

FAQ: 3. Can you provide guidance on extracting data from an Eastron energy meter using the MODRW command?

Answer: - To extract data from an Eastron energy meter using the MODRW command, you need to ensure that you are communicating with the meter using the correct protocol and addressing scheme supported by the meter. Refer to the Eastron energy meter's documentation for specific instructions on data extraction and communication protocols.

Ready to Simplify Maintenance?

Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.

Request Demo  â†’