Chikus
Lifetime Supporting Member
I have been working on a project involving a Schneider M340 PAC attached via ethernet to a Red Lion G310 and was having difficulties figuring out the addressing of the Red Lion tags. After a couple days of trying to search for a solution on the web, I e-mailed Schneider. I noticed this subject had been covered in these forums once or twice before, but there was never a complete solution. Here is my message and their reply:
Using Modbus TCP/IP, The Red Lion HMI uses the addressing format 4x, 3x, 1x, 0x while the M340 is using IEC61131 addressing. I have found that %MWx=4x+1 and %Mx=0x+1 for internal logic, but I have not been able to find how to address the I/O, i.e. %Q0.5.3 or %IW0.6.1 without using internals in the logic and then mapping them to the I/O. Is there a way to directly address the I/O in my Red Lion HMI? Thanks!
==========================================================
Generally when using the M340 and communicating with a ModbusTCP Master, it becomes necessary to locate the information to memory words within the M340. For example %MW0:=%IW0.1.0 would place the input into %MW0 and that could be read over ModbusTCP from a Master device. You could do the same with %M0:=%Q0.4.0 for example. I realize that this is not what you want to do.
Now, it is possible for our Magelis HMI to attach to exported tags or the actual M340 project and access the information directly that way without programming the memory word relocations.
I do not know if the Red Lion is capable of this, you would need to speak to their technical support team. They would need to specifically have an M340 Driver and tag import utility.
Using Modbus TCP/IP, The Red Lion HMI uses the addressing format 4x, 3x, 1x, 0x while the M340 is using IEC61131 addressing. I have found that %MWx=4x+1 and %Mx=0x+1 for internal logic, but I have not been able to find how to address the I/O, i.e. %Q0.5.3 or %IW0.6.1 without using internals in the logic and then mapping them to the I/O. Is there a way to directly address the I/O in my Red Lion HMI? Thanks!
==========================================================
Generally when using the M340 and communicating with a ModbusTCP Master, it becomes necessary to locate the information to memory words within the M340. For example %MW0:=%IW0.1.0 would place the input into %MW0 and that could be read over ModbusTCP from a Master device. You could do the same with %M0:=%Q0.4.0 for example. I realize that this is not what you want to do.
Now, it is possible for our Magelis HMI to attach to exported tags or the actual M340 project and access the information directly that way without programming the memory word relocations.
I do not know if the Red Lion is capable of this, you would need to speak to their technical support team. They would need to specifically have an M340 Driver and tag import utility.
Last edited: