How to use ModBus TCP/IP... Any way....

Begonnen von mbruck, 02. April 2013, 23:04:26

Vorheriges Thema - Nächstes Thema

0 Mitglieder und 1 Gast betrachten dieses Thema.

mbruck

Hello!

I need help to understund how to use any block for modbus protocol. I have installed even Mosdbus RTU and Modbus TCP server. I have boards with bothModbus RTU (client) and ModBusTCP server and tested with several modbus test tools for TCP and RTU protocol versions.
Now I'm trying to install also network library but there is problem I also asked foe help.....
Enyway, my problem is that I don't know how to  call modbus function every PLC cycle. Do I have to that way ? Is this possible anway?
I have tryed several ways including timers, but always get stuck hoe to call functions again! I just need read all inputs and back all coils.
I'm stuck. Only way I work now is that I write C# project that use twincat.asd.dll and custom write modbus procedures. So it act as some kind of OPC. But this take lots of my energy.
Please,  can anyone explain me how to call modbus function to read all inpusts and write back all coils to board, in cycle every 10ms.. I appreciate if someone can send demo project.

Regards !

Mladen Bruck