[Request] sample Modicon M340 Modbus TCP/IP communication

примеры программ
RND2LL
Posts: 5
Joined: Mon Oct 19, 2009 5:18 am

[Request] sample Modicon M340 Modbus TCP/IP communication

Post by RND2LL »

Hi, friends. I need sample programm for M340 communication with any ethernet device(freqdrive for example) over Modbus TCP.
Please, i need it very much.
Schneider says come to Moscow for training. o_O.
Kuzyma
Posts: 31
Joined: Tue May 12, 2009 8:32 am

Re: [Request] sample Modicon M340 Modbus TCP/IP communicatio

Post by Kuzyma »

If you mentioned Moscow I guess you are Russian speaker. Try to read this articles:
http://se-automation.in.ua/2011/06/tran ... s-tcp.html
http://se-automation.in.ua/2011/06/tran ... nning.html
and watch video from them. I think it would be useful for you.
:)
Schtiel
Site Admin
Posts: 1122
Joined: Wed Sep 06, 2006 12:03 pm
Location: CIS

[SAMPLE:] Modicon M340 Modbus TCP/IP communication

Post by Schtiel »

Use ADDM and READ_VAR / WRITE_VAR functions.

For example, to read first 8 holding registers from device with IP 192.168.1.5 with Modbus TCP it should be done like this:

Image
Oldman
Posts: 797
Joined: Tue Aug 21, 2007 7:05 am

Re: [Request] sample Modicon M340 Modbus TCP/IP communicatio

Post by Oldman »