-Menü

Beiträge anzeigen

Dieser Abschnitt erlaubt es Ihnen, alle Beiträge anzusehen, die von diesem Mitglied geschrieben wurden. Beachten Sie, dass Sie nur Beiträge sehen können, die in Teilen des Forums geschrieben wurden, auf die Sie aktuell Zugriff haben.

Beiträge anzeigen-Menü

Beiträge - mbruck

#1
YEA .... :)
At end, It seams it goes without problems. Because of memory constraints it is not possible to implement both basic and network libraries at same time. However I imported all necessary function blocks into network lib.
Compiled without problems !!!
Now I should assemble hardware from module than try.

:) :)
#2
Hi peewit !

Zitatthe core block IP_CONTROL coordinates the access to ethernet with the help of SysLibSockets.lib
Ok. That's some start. :)
There is SysLibSocket.lib in beckipc library list. So it seems to me I can try. Can lose nothing.  As I see, Oscat routines are written in ST. When I get stuck, I hope you can help me to try to correct problems.

Zitatyou made a bad buying
Yes.... And that's without VAT and custom fee.  However, modules are quite cheap ~80 euro, and SDK is about 350. If I manage to recode OSCAT libraries...Well that would be idea for manufacturing small PLC controllers. (joke)

Zitatthe easiest way would be to buy a reasonable control
I'm considering Wago since it support CodeSys, and seam to me not too expensive comparing Siemens or ABB. Other vendors like Mueler, Telemechanique or Omron use other software not CodeSys (IEC61131), which I'm not ready to learn from start again.


#3
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


#4
Hi Alex !

Thank you for code...

I meant it vould be valuable for including to library. However, I noticed code later,  and I have writen function block since I don't know how to use function in ladder yet. :(

But, I declared all variables as REAL like so:

FUNCTION_BLOCK MAP
VAR_INPUT
Start:BOOL;
In:REAL;
fromLow:REAL;
fromHigh:REAL;
toLow:REAL;
toHigh:REAL;
END_VAR
VAR_OUTPUT
End:BOOL;
Out:REAL;
END_VAR
VAR
END_VAR

Funcion body>
Out := (In-fromLow) * (toHigh - toLow) / ((fromHigh - fromLow) + toLow) ;


Is this would be problem ?






#5
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
#6
Any chance for english documentation ?   :-\

So far, I copy/paste to google translate and use... ;)

#7
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









#8
Modulentwicklung / Modbus serial server/client
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!