# 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:** 1\
**Showing post:** 9

<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"]]}]

```

---

_[View the full topic](https://discourse.nodered.org/t/mitsubishi-ethernet-communication/50072)._
