How to split two values from a single data register into two separate data registers in Fax Series PLC

Question:

Greetings, I am currently utilizing a Fax Series PLC and I have a query. How can I split two values (V, 6) moving into a single data register (D1432) into two separate registers (V into D1433, 6 into D1434)? Which function should I use for this task?

Top Replies

Are you familiar with FAX PLC, or did you mean FX PLC? If the register is 16-bit (also known as D1432), it could potentially be a 32-bit register, which in some PLCs is represented as two 16-bit registers (D1432 and D1433). If it is a 32-bit value, splitting it would be unnecessary. However, if it consists of two 16-bit values, you can simply address them as D1432 and D1433. If the values are 8-bit within one 16-bit register, splitting them is straightforward with the right software and functions. For example, you can use load instructions, bit masks, AND operations, and shifting to split the values accordingly. The attached image depicts a Mitsubishi PLC with 16-bit registers. When splitting a 16-bit value into two, use mask values for the lower and upper bytes and store them in separate 16-bit registers. If it is a 32-bit value, it already takes up two registers, which can be accessed using register X and X + 1.

Hey there, you might want to look into using the MOV instruction feature for your current task. Essentially, each MOV instruction may be used to shift one specific value between registers. Just configure two MOV commands - one to transfer 'V' from D1432 to D1433 and another to move the '6' from D1432 (after removing 'V') to D1434. Remember, you'll need to tailor the set up to make sure 'V' and '6' are recognized as separate entities. Hope this helps!

Hello, it seems like you need to employ the mechanism of indirect addressing. What you want to do is essentially map your data. Initially, you can store the combined value in D1432. Afterwards, you can use the MOVE instruction to transfer 'V' to D1433 and '6' to D1434. Remember to ensure that your data doesn't overwrite anything important in the new registers.

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 split two values from a single data register into two separate data registers in Fax Series PLC? Answer: To split two values moving into a single data register into two separate registers in Fax Series PLC, you can use the appropriate function block or instruction provided by the PLC programming software.

FAQ: 2. What is the process to move value 'V' into data register D1433 and value '6' into data register D1434 in Fax Series PLC?

Answer: Answer: You can achieve this by utilizing the necessary programming logic to extract and move each value into the respective data registers D1433 and D1434 within the Fax Series PLC.

FAQ: 3. Which function should I use in Fax Series PLC to separate and store two values from a single data register into two separate data registers?

Answer: Answer: You may need to refer to the PLC's programming manual or documentation to identify the specific function block or instruction that allows you to split and store two values from one data register into two separate data registers in the Fax Series PLC.

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