Reading multiple addresses from MC Protocol (Mitsubishi FX PLC)

@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.

based on the below

(1088 - 1040) * 2 = Offset 96

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

residualPosition: 1230.3
masterCylinderPosition: 335.0

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


How to do it

@Jayeshpitale1 you REALLY need to read the help.

Here you go, one last time.

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

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 :wink:

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

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

image

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