Programming M340 with Modbus TCP/IP

Forrest

Member
Join Date
Dec 2009
Location
Vancouver
Posts
45
This is my first time to use Unity Pro S and M340 PLC. I have to connect my Automation Direct C-more HMI to PLC using Modbus TCP/IP. Is there any setting in Unity Pro or M340 to enable Modbus messaging? Which function block I have to use for the setup. My PLC CPU module has build-in Ethernet port for Modbus communication. Thanks
 
As a ModbusTCP server, which the PLC usually is when connected to an HMI, it should just work out of the box. You don't need any special function blocks to make it service the requests - only be sure the network parameters are configured properly for the device in Unity.
 
Hi Robertkjonesjr: Network parameters are configured and there is no communication error in connection between HMI and PLC.

That's meant, for example, I just create an indicator in HMI and set the address to 10001. It can read the input with address %I0.1.0 in PLC directly. Am I right? Thanks
 
Last edited:
Yes, according to the mapping. I am not certain without looking in the manual what 10001 is mapped to, but whatever it is, it should be available to you without any additional work on your part.
 
No 10001 is not mapped by default to %I0.1.0
In the plc you will need to map your data to %M or %MW addresses
If using an Modbus driver then read %M0 using 00001 and %MW0 using 40001
Note the 1 offset - why I prefer to use modbus drivers that support iec addressing
 

Similar Topics

Hello, I am currently working on a project on Modbus TCP communication between a Modicon M340 PLC and an electronic card with a DSP Texas...
Replies
13
Views
20,219
Hello. I know nothing but Allen Bradley Products. I know need to program a Modicon M340 PLC. I need to purchase the software package but I am...
Replies
1
Views
4,902
Dear all, I have fx2n plc on my hand but I don't have the programming cable sc-09 and it would not be easy for me to get one. I need the cable...
Replies
3
Views
77
Hi all, i am the new controls guy at the plant and i have inherited a pc from the previous controls guy with Siemens tia portal version 16 and 17...
Replies
20
Views
792
I need to pull the program off of an old 90-30 so I can convert it to Allen Bradley. This is my first time messing with GE and I don't have the...
Replies
2
Views
83
Back
Top Bottom