# Mitsubishi Ethernet Communication

**URL:** <https://discourse.nodered.org/t/mitsubishi-ethernet-communication/50072>\
**Category:** Industrial\
**Created:** [23 August 2021 16:28 UTC](https://discourse.nodered.org/t/mitsubishi-ethernet-communication/50072 "2021-08-23T16:28:46Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hector-Duran](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hector-duran/32/46897_2.png) [@Hector-Duran](https://discourse.nodered.org/u/Hector-Duran)\
**Post date:** [23 August 2021 16:28 UTC](https://discourse.nodered.org/t/mitsubishi-ethernet-communication/50072/1 "2021-08-23T16:28:46Z")

</div>

Hello, hope you are doing great!  
I'm trying to extract data from a Mitsubishi PLC. I am using the MC Protocol connection mode and trying it with the buffer parser block, but still not results.

Important to mention, I have setup my IP correct in my PC - I did ping to the PLC, is working fine.

These are the tags I am interested in.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/b/cb6b3d4edfe6cb7be5477d8965d630d176a7a4c9.png)

Thank you, have an awesome start of the week  
Hector

---

<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:** [23 August 2021 19:01 UTC](https://discourse.nodered.org/t/mitsubishi-ethernet-communication/50072/2 "2021-08-23T19:01:20Z")

</div>

Hi. Gonna need more info to help you.

Which part doesn't work? Getting data from PLC or parsing it in node-red?

What settings have you entered in the PLC?

What settings have you entered in node-red MC protocol config node.

Are you trying to read tag names (MC protocol only supports memory area addressing)

---

<div class="post-metadata">

**Author:** ![Hector-Duran](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hector-duran/32/46897_2.png) [@Hector-Duran](https://discourse.nodered.org/u/Hector-Duran)\
**Post date:** [23 August 2021 20:49 UTC](https://discourse.nodered.org/t/mitsubishi-ethernet-communication/50072/3 "2021-08-23T20:49:28Z")

</div>

Thank you Steve Mcl for the super fast answer.

Which part doesn't work? Getting data from PLC or parsing it in node-red?  
Getting the data. Sometimes I have the error: "time-out" or "Quality Issue"

 ![ErrorTimeout-QualityIssue](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/2/6286cb37955f8f818157666ce0760462a134c05a.png)

What settings have you entered in the PLC?  
Unfortunately I can't see what has the PLC. I have some documentation from the manufacturer of the machine, saying the IP (I confirm it is with the ping), and the tag name list I shared, which I can see it from Kepware.

What settings have you entered in node-red MC protocol config node.  
The following ones

 ![MC1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/9/09d2c43918894ba94ee2498e49cde47a588b763c.png)  
 ![MC2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/4/c4e93fc4fb7558ca8e1f0ee5c2f11e14dfabcd78.png)

Are you trying to read tag names (MC protocol only supports memory area addressing)  
Reading the values.

Thank you!  
Hector

---

<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:** [23 August 2021 21:15 UTC](https://discourse.nodered.org/t/mitsubishi-ethernet-communication/50072/4 "2021-08-23T21:15:56Z")

</div>

> [@Hector-Duran](#):
>
> Unfortunately I can't see what has the CNC. I have some documentation from the manufacturer of the machine, saying the IP (I confirm it is with the ping), and the tag name list I shared, which I can see it from Kepware.

Can you show me the settings in KEPWARE of the PLC object and the parent object (need to see port numbers and network numbers used etc)  
NOTE: this will show us an already existing connection & we shouldnt use the same port - but it may give us some clues.

Also, do you know the PLC model? Q series? A Series? QnA series? iQR series?

Ideally, you would connect to the PLC using GX-Programmer or GX-Works to determine the PLC settings - do you have these?

If not, you could cross your fingers and hope the integrator opened some UDP (or TCP) ports on the PLC. You can scan with a port scanner (nmap can scan UDP and TCP)

e.g: find open UDP ports...

```auto
nmap -sUV -T4 -p1000-5012 --version-intensity 0 192.168.0.253

```

e.g: find open TCP ports...

```auto
nmap -sSV -T4 -p1000-5012 192.168.0.253

```

---

<div class="post-metadata">

**Author:** ![Hector-Duran](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hector-duran/32/46897_2.png) [@Hector-Duran](https://discourse.nodered.org/u/Hector-Duran)\
**Post date:** [24 August 2021 14:38 UTC](https://discourse.nodered.org/t/mitsubishi-ethernet-communication/50072/5 "2021-08-24T14:38:12Z")

</div>

Hello Steve,

Once again, thank you so much for your answer!

**Can you show me the settings in KEPWARE of the PLC object and the parent object (need to see port numbers and network numbers used etc)**  
**NOTE: this will show us an already existing connection & we shouldnt use the same port - but it may give us some clues.**

 ![Saw-kepware1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/1/0167204e48a824b0a3faabe2e1e591f6180eabb8.png)  
 ![Saw-kepware2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/3/d3e2fd489b6d87ee1ec88c39ec46a8479d425332.png)  
 ![Saw-kepware3](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/d/1d7f6425fdde35a82376b2f6d9700a34dffb5692.png)  
 ![Saw-kepware4](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/6/368a2d6458cec449f920ac4a926256901be79923.png)  
 ![Saw-kepware5](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/1/81b8a21a99b9f370c899c3b219d10fe1eaeae522.png)

**Also, do you know the PLC model? Q series? A Series? QnA series? iQR series?**  
It is a Mitsubishi Melsec FX3G-60M. That I believe is the ethernet module has this part number: FX3u-ENETADP

I will try the recommendations with the GX-Programmer, GX-Works, and test UDP or TCP ports during today.

Thank you and have a great day!  
Hector

---

<div class="post-metadata">

**Author:** ![Hector-Duran](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hector-duran/32/46897_2.png) [@Hector-Duran](https://discourse.nodered.org/u/Hector-Duran)\
**Post date:** [2 September 2021 19:55 UTC](https://discourse.nodered.org/t/mitsubishi-ethernet-communication/50072/6 "2021-09-02T19:55:25Z")

</div>

hello Steve,

hope you are doing awesome! I was able to leverage Kepware and configure it, and I see data coming out from the PLC 😃 ! I will now try it again with Node-red. My greatest fear now is that the MC Read node is not compatible with this type of Mitsubishi PLC - FX3U. What is your opinion about it?

Thank you!  
Hector

---

<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:** [2 September 2021 20:28 UTC](https://discourse.nodered.org/t/mitsubishi-ethernet-communication/50072/7 "2021-09-02T20:28:10Z")

</div>

> [@Hector-Duran](#):
>
> My greatest fear now is that the MC Read node is not compatible with this type of Mitsubishi PLC - FX3U. What is your opinion about it?

No worries...

> <https://github.com/Steve-Mcl/node-red-contrib-mcprotocol/issues/6>
>
> Hi,
> I can confirm I was able to use this node also to communicate with FX3U PLC…. I didn't do a stress test.
> I use these settings:
> \-FRAME: 1E
> \-PROTOCOL: TCP
> \-PLC Type: A
> 
> These settings are not set (default)
> \-Network No
> \-PC No
> \-Dest Module
> \-Dest Module Stn No
> 
> Regards,
> Jinx

---

<div class="post-metadata">

**Author:** ![Hector-Duran](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hector-duran/32/46897_2.png) [@Hector-Duran](https://discourse.nodered.org/u/Hector-Duran)\
**Post date:** [2 September 2021 21:16 UTC](https://discourse.nodered.org/t/mitsubishi-ethernet-communication/50072/8 "2021-09-02T21:16:28Z")

</div>

Hello Steve,

Victory!!!!!

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/7/97781e67077347cba3a4a4c592dbf48e6aeb0fd6.png)

It is working for one parameter.  
Port: 2001  
Frame: 1E  
Protocol: TCP  
PLC Type: A

The rest values were not filled and with a time out of 1000ms (default).

I have tried with the Buffer - Parser node...  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/4/54b4b5d522f1322b14db2bc7d5791bb0ace9cb5b.png)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/7/a730889ecf5e64475e2b75d16bc632a26daef7b0.png)

But error have shown. I have some doubts of how to fill the length and offset. My values sent by the PLC are Int16 and In32.

Thank you so much for the support!  
Hector

---

<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:** [2 September 2021 21:34 UTC](https://discourse.nodered.org/t/mitsubishi-ethernet-communication/50072/9 "2021-09-02T21:34:41Z")

</div>

> [@Hector-Duran](#):
>
> I have some doubts of how to fill the length and offset

Normally length is 1 for 1 item.

Offset is the byte from first value.

Read the built in help (explains it better)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/9/c93e331d43281528224330b5519afb3fe38fe88c.png)

  

Also, try the built in demos `(CTRL+I)`

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/b/0bcda58783a5533e1f7bdb47845faa9090662467.png)

  

Lastly, it pays to generate a table for reference - to help yourself when mapping the values. E.g...

| PLC address | name | type | byte |
| --- | --- | --- | --- |
| D4000 | bladeSpeed | int16 | 0 |
| D4001 | motorA | int16 | 2 |
| D4010 | Test Value | int32 | 20 |

Basically, each PLC memory area is 2 byte value.

  

Example...

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/7/37d55b806ae39a326026eb870de816a55dcf6bbf.png)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/5/d55a9af487a06b40aa48b5006fc437bbf07acaee.png)

Demo (use CTRL+I to import)

```auto
[{"id":"5c4ec4d6f5146fc0","type":"buffer-parser","z":"766a1068.58afb","name":"","data":"payload","dataType":"msg","specification":"spec","specificationType":"ui","items":[{"type":"int16be","name":"bladeSpeed","offset":0,"length":1,"offsetbit":0,"scale":"/ 10","mask":""},{"type":"int16be","name":"motorA","offset":2,"length":1,"offsetbit":0,"scale":"/ 100","mask":""}],"swap1":"","swap2":"","swap3":"","swap1Type":"swap","swap2Type":"swap","swap3Type":"swap","msgProperty":"payload","msgPropertyType":"str","resultType":"keyvalue","resultTypeType":"output","multipleResult":false,"fanOutMultipleResult":false,"setTopic":true,"outputs":1,"x":2250,"y":1320,"wires":[["b96ee73c918f4453"]]}]

```

---

<div class="post-metadata">

**Author:** ![Hector-Duran](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hector-duran/32/46897_2.png) [@Hector-Duran](https://discourse.nodered.org/u/Hector-Duran)\
**Post date:** [2 September 2021 21:38 UTC](https://discourse.nodered.org/t/mitsubishi-ethernet-communication/50072/10 "2021-09-02T21:38:28Z")

</div>

Thank you Steve, I will have a look to the examples and all the screen shots you just shared! Awesome! Thank you once again, and have a nice day!

---

<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:** [16 September 2021 21:38 UTC](https://discourse.nodered.org/t/mitsubishi-ethernet-communication/50072/11 "2021-09-16T21:38:33Z")

</div>

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