Beiträge anzeigen

Diese Sektion erlaubt es ihnen alle Beiträge dieses Mitglieds zu sehen. Beachten sie, dass sie nur solche Beiträge sehen können, zu denen sie auch Zugriffsrechte haben.


Themen - mbruck

Seiten: [1]
1
Codesys 2 / Modbus RTU and Modbus TCP from scratch ! :(
« am: 08. Oktober 2013, 12:17:11 »
Hi !

I have SC24IEC DIP32 package module from BeckIPC company. This is very nice module with programming in CodeSys 2.3. It is more like microcontroller.
Bad story is that BeckIPC is not write ANY kind of support for any industrial protocol. Even there is very good hardware base (Ethernet, 2XUsart , CAN).
What there is support for only basic 485 (serial) and TCP/IP routines (EasyIP).   
I forget to say that SC24 module basically came as RTOS module programming in pure C. CodeSys language is only optional, and not a flagship product. Unfortunate for me, it BeckIPC support is under any reasonable value, since they are not interested to write this functions for CodeSys language.  Fortunate full CodeSys IEC 61131-3 languages are supported.
Now I have to write Modbus RTU and Modbus TCP support, at least that module behave as master PLC that can R/W I/O on extension board. I know this is huge work, but this is only what is left for me, since I have 10pcs of this modules + SDK board... All payed about 1000 Euros...

So, my question is.....

What basic routines/functions I need from BeckIPC 485 and EasyIP libraries to rewrite/translate oscat modbus routines. For example block read, byte read/write from serial and ethernet.

Regards !

Mladen Bruck



2
Hi!

I have using this funcion in Arduinos software:
http://arduino.cc/en/Reference/map

I believe this would be valuable function in Oscat basic library under engineering/conversion category.  :)

Regards !

Mladen Bruck

3
BECKHOFF / How to use ModBus TCP/IP... Any way....
« am: 02. April 2013, 23:04:26 »
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










4
Modulentwicklung / Modbus serial server/client
« am: 10. März 2010, 23:26:36 »
Sorry, I don't speak German language, hope you don't mind I ask in English.

Since documentation is in German, I still not sure is there support for serial port for Modbus functions... Twincat (don't know for Codesys) support only physical port on motherboard, which my laptop lack, so I USB-serial which is not supported.
So, my question is network.lib support Modbus serial on usp<>serial driver, and if not, is possible to write that support.

Regards!

Seiten: [1]