M340 Modbus TCP Communication

ii7onyx

Member
Join Date
May 2022
Location
Australia
Posts
2
Hi, I hope everyone's week is going great.

I have ADAM-6217 Analogue module which supports Modbus TCP and I am trying to get the AI values of the temperature sensor connected to Channel 0 of the Adam module.

I am new to the M340 programming and trying to get my head around the memory addressing scheme and communications with external devices.

I have already tried the following two methods but it doesn't seem to work.

http://www.plctalk.net/qanda/showthread.php?t=127057&highlight=m340+modbus and

https://www.youtube.com/watch?v=QhkIQCOyxjo


Please have a look at the attached screenshots.
I have tried the ADDM block with different addressing schemes, e.g., 'Ethernet_1{84.26.17.150}TCP.MBS', '0.0.3{84.26.17.150}TCP.MBS', '0.0.3{84.26.17.150}' and 'Ethernet_1{84.26.17.150}'

Can someone please tell me what should be the values of the READ_VAR parameters in order for me to read 40001 address from the adam 6217?


The details are below:
M340 PLC -- > IP: 84:26.17.167

Adam 6217:
IP: 84.26.17.150,
Address to be read: 40001

adam_6217_registers.jpg ethernet_1.jpg plc_code.jpg table_1.jpg
 
You need to use IEC registers when using %MW. The address 40001 in Modbus registers is equal to %MW0. So put a 0 in the NUM input.
 
You need to use IEC registers when using %MW. The address 40001 in Modbus registers is equal to %MW0. So put a 0 in the NUM input.

Thanks for your reply. I managed to make it work by changing the NUM to 0 as suggested. Really appreciate!!!

I have attached a screenshot of the working code example.

plc_code_working.jpg
 

Similar Topics

Hello, this is a message for specialists in Schneider, I am trying to establish communication in modbus tcp between a schneider M340 (P3420302)...
Replies
2
Views
1,610
I've got 16-bit data at address 40200 on a Schneider Scapack 350. I can grab the data over Modbus TCP using Kepware at IP 172.16.1.100. When I...
Replies
8
Views
2,497
Hi has any one linked a Schneider Electric Smart UPS to a PLC through Modbus TCP? Supposedly it can do it, I'm told. but I'm not entirely sure...
Replies
3
Views
2,423
Hi Guys, I have a project that requires a M340 PLC to communicate with a PM5340 power meter over Modbus TCP. I have previously used the same type...
Replies
3
Views
3,308
hi there! i am trying to read modbus registers in M340 PLC from a Turck BL20 Gateway. I have done this with a Emerson Gateway and everything...
Replies
1
Views
1,949
Back
Top Bottom