# Reading multiple addresses from MC Protocol (Mitsubishi FX PLC)

**URL:** <https://discourse.nodered.org/t/reading-multiple-addresses-from-mc-protocol-mitsubishi-fx-plc/92340>\
**Category:** Industrial\
**Created:** [12 October 2024 11:32 UTC](https://discourse.nodered.org/t/reading-multiple-addresses-from-mc-protocol-mitsubishi-fx-plc/92340 "2024-10-12T11:32:11Z")\
**Posts on this page:** 9\
**Page:** 4

<div class="post-metadata">

**Author:** ![Jayeshpitale1](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jayeshpitale1/32/70216_2.png) [@Jayeshpitale1](https://discourse.nodered.org/u/Jayeshpitale1)\
**Post date:** [13 October 2024 09:03 UTC](https://discourse.nodered.org/t/reading-multiple-addresses-from-mc-protocol-mitsubishi-fx-plc/92340/61 "2024-10-13T09:03:38Z")

</div>

@Steve-Mcl  
I just wanted to take a moment to personally thank you for all the time and effort you've spent helping me over the past four days. I know how valuable your time is, and it means a lot to me that you were willing to invest so much of it to assist me.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [13 October 2024 09:05 UTC](https://discourse.nodered.org/t/reading-multiple-addresses-from-mc-protocol-mitsubishi-fx-plc/92340/62 "2024-10-13T09:05:29Z")

</div>

> [@Jayeshpitale1](#):
>
> D1088.2

based on the below

> [@Steve-Mcl](#):
>
> Byte Offset = (Address - Start Address) \* 2
> 
> e.g.  
> Address: `D1048`  
> Start Address: `D1040`  
> Byte Offset = `(1048 - 1040) * 2` = `16`

(1088 - 1040) \* 2 = Offset `96`

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/6/26add4f125904a7801ab11edbd6fd0a9b83af147.png)

---

<div class="post-metadata">

**Author:** ![Jayeshpitale1](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jayeshpitale1/32/70216_2.png) [@Jayeshpitale1](https://discourse.nodered.org/u/Jayeshpitale1)\
**Post date:** [13 October 2024 09:33 UTC](https://discourse.nodered.org/t/reading-multiple-addresses-from-mc-protocol-mitsubishi-fx-plc/92340/63 "2024-10-13T09:33:33Z")

</div>

@Steve-Mcl  
this is HMI screen where the data is showing in decimal for

 ![20241013_145224](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/5/b5119579303158917fb5a55c2e7b83375b2559e9.jpeg)

residualPosition: 1230.3  
masterCylinderPosition: 335.0

this is the output which i get where it shows  
residualPosition: 12303  
masterCylinderPosition: 3350

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/a/6a9f53c29dbf97301ebeabd1eb6c645d841f145f.png)  
How to do it

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [13 October 2024 09:37 UTC](https://discourse.nodered.org/t/reading-multiple-addresses-from-mc-protocol-mitsubishi-fx-plc/92340/64 "2024-10-13T09:37:11Z")

</div>

> [@Jayeshpitale1](#):
>
> How to do it

@Jayeshpitale1 you REALLY need to read the help.

Here you go, one last time.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/6/66106ca5485796dc22523a8324e88e7e4651d6ce.png)

---

<div class="post-metadata">

**Author:** ![Jayeshpitale1](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jayeshpitale1/32/70216_2.png) [@Jayeshpitale1](https://discourse.nodered.org/u/Jayeshpitale1)\
**Post date:** [13 October 2024 09:39 UTC](https://discourse.nodered.org/t/reading-multiple-addresses-from-mc-protocol-mitsubishi-fx-plc/92340/65 "2024-10-13T09:39:34Z")

</div>

My one last question and i am done with this how to find Types of address if for example in future i required it and how to find what is 16bits and 32 bits

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [13 October 2024 09:44 UTC](https://discourse.nodered.org/t/reading-multiple-addresses-from-mc-protocol-mitsubishi-fx-plc/92340/66 "2024-10-13T09:44:27Z")

</div>

That entirely depends on the PLC functions used to or how the PLC ladder was written

If you have to guess, then use the below as a reference.

**Signed 16-bit integer:** (1 WORD / 2 BYTES)

- Minimum: -32,768
- Maximum: 32,767

**Signed 32-bit integer:** (2 WORD / 4 BYTES)

- Minimum: -2,147,483,648
- Maximum: 2,147,483,647

**Unsigned 16-bit integer:** (1 WORD / 2 BYTES)

- Minimum: 0
- Maximum: 65,535

**Unsigned 32-bit integer:** (2 WORD / 4 BYTES)

- Minimum: 0
- Maximum: 4,294,967,295

* * *

The best advice I can give is

- CHECK EVERYTHING - twice.
- If the value in the PLC is different to what your read, try a different type.
- Lastly, CHECK EVERYTHING AGAIN 😉

---

<div class="post-metadata">

**Author:** ![Jayeshpitale1](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jayeshpitale1/32/70216_2.png) [@Jayeshpitale1](https://discourse.nodered.org/u/Jayeshpitale1)\
**Post date:** [13 October 2024 09:45 UTC](https://discourse.nodered.org/t/reading-multiple-addresses-from-mc-protocol-mitsubishi-fx-plc/92340/67 "2024-10-13T09:45:15Z")

</div>

Also i wanted to know if i want to use Write MC protocol node  
then how to use means i have address M70 to open a door then i have put M70 in address and what to put in data

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [13 October 2024 09:52 UTC](https://discourse.nodered.org/t/reading-multiple-addresses-from-mc-protocol-mitsubishi-fx-plc/92340/68 "2024-10-13T09:52:27Z")

</div>

> [@Jayeshpitale1](#):
>
> i have address M70 to open a door then i have put M70 in address and what to put in data

You know you can just try stuff right?

try  
`payload: 1`

If you are using a change or inject node to provide the value, make sure you chose the NUM type

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/1/e14b6f43729eceb1333582608f0e7e86d614536a.png)

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/8/48adf2d7ee94b4f5eb8ffd51ff4e48cd4bceabd2.png)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/4/e499c4178ba98055c2c189c805be54083a7af64e.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [27 October 2024 09:52 UTC](https://discourse.nodered.org/t/reading-multiple-addresses-from-mc-protocol-mitsubishi-fx-plc/92340/69 "2024-10-27T09:52:47Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

[Previous page](https://discourse.nodered.org/t/reading-multiple-addresses-from-mc-protocol-mitsubishi-fx-plc/92340.md?page=3)
