How to Modify Data in Mitsubishi PLC Register D1128

Question:

Hello, I have included a photo showing the modification of the data stored in register D1128 at a different program location. Thank you for your attention.

Top Replies

Could it be that the DEDIV instruction assumes the bits at the addresses mentioned in its parameters are interpreted as floating point values, while the PLSR instruction assumes 16-bit integer values, and the DPLSR instruction assumes 32-bit integer values? Refer to item (i) in my signature for a Python example demonstrating this concept. In the provided Python code snippet, we see an example where a floating point value is converted into a 32-bit integer value and two 16-bit integer values. This showcases how different instructions may interpret the bits at given addresses in various ways.

This means that the data bits at memory address D1128 remain unchanged between the mentioned instructions, however, the way in which they are interpreted and displayed varies for each instruction.

It is likely that the initial register in question is a floating point, requiring two registers D1128 & D1129. The Pulse train output is typically defined as either an integer or double word, such as a 32-bit integer. It appears unusual that floats are being used given that the PLSR function does not support float values.

The formula I am implementing calculates the degrees of roller travel based on the measurement in millimeters and roller circumference. By dividing the degrees of roller travel by 1.8°, we can determine the steps required for the driver. For example, using a roller circumference of 281mm, we can calculate that 128.114° of roller travel equates to 71.174 steps for the driver.

To input data into the Human-Machine Interface (HMI) system in millimeters (MM) within the range of 1 MM to a maximum of 850 MM, and trigger a rotation of a roller by utilizing a stepper motor. Additionally, a separate function will be initiated to complete the specified task.

Hi there, I've taken a look at the photo you've posted, and indeed the modification in register D1128 seems notable. One point that piqued my interest is how this modification impacts the functioning of your program elsewhere. I'd suggest monitoring data changes with a debugging tool to ensure consistency across all registers. Please keep us updated with your findings.

Thanks for sharing the photo of the modified data, it does give us a clearer picture of your scenario. One potential issue could be a conflict caused by another program inadvertently accessing D1128. It'd be useful to double-check any overlapping sequences to prevent ceaseless overwriting.

Very interesting, thanks for sharing this. By modifying the data in register D1128, you can significantly impact the program's execution depending on its usage in subsequent instructions. Be cautious though, any unanticipated changes might lead to program errors. Would you mind sharing more about the context behind these changes? Was it for optimization purposes or some specific functionality you wanted to implement?

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 modify data in a Mitsubishi PLC register, specifically register D1128? Answer: To modify data in register D1128 of a Mitsubishi PLC, you can use programming software such as GX Works3 to access and edit the value stored in that specific register.

FAQ: 2. Can you provide step-by-step instructions on how to modify data in register D1128 of a Mitsubishi PLC?

Answer: Answer: Sure, to modify data in register D1128, you would first need to open your project in the programming software, navigate to the specific program location where D1128 is located, and then update the data value as needed.

FAQ: 3. Is it possible to modify the data in register D1128 from a different program location?

Answer: Answer: Yes, it is possible to modify the data stored in register D1128 from a different program location by accessing the register through the programming software and updating the value accordingly.

FAQ: 4. Are there any precautions to keep in mind while modifying data in register D1128 of a Mitsubishi PLC?

Answer: Answer: It's important to ensure that you have a good understanding of the PLC program and the impact of modifying data in register D1128 on the overall system operation. Make sure to back up your project before making any changes and test thoroughly after the modification.

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  â†’