How to find address for ML 1200 for modbus or RS485

@akshayjain we are not here to do you job for you.

As colin rightly states this is for node-red help.

Clearly this is a work related thing and you should either be competent with PLCs or you should hire someone who is.

In the interest of getting past this, I will do your job for you.

It took me less than 2 minutes to find this info and about 10 minutes to write it up for you.



A quick search on google for "allen bradley ml1200 modbus mapping" resulted in finding this manual

Page 140 states...

For more information on configurating your MicroLogix 1200 controller for
Modbus protocol, refer to the MicroLogix 1200 and 1500 Programmable
Controllers Instruction Set Reference Manual, publication 1762-RM001

Then I did a quick search on google for "1762-RM001"
The VERY FIRST RESULT was a link to the manual: https://literature.rockwellautomation.com/idc/groups/literature/documents/rm/1762-rm001_-en-p.pdf

Page 449 reveals how the AB PLC addresses are mapped to ModBus addresses...

Essentially, by default, it appears that

  • N12:0 will be accessible by reading Address 1 (*1) using FC4 (Read Input Registers)
    N13:0 will be accessible by reading Address 1 (*1) using FC3 (Read Holding Registers)
  • N10:0 will be accessible by reading Address 1 (*1) using FC1 (Read Coil Status)
    N11:0 will be accessible by reading Address 1 (*1) using FC2 (Read Contact Status)

But that might NOT be the case - you will need to check the actual PLC settings - never assume.


NOTES...

(*1) Sometimes the PLC maps address 0 to modbus 0, sometimes it is modbus address 0 is PLC address 1, sometimes it is modbus address 1 is PLC address 0, it depending on how AB have mapped things