Recent

Author Topic: OPC client with Lazarus  (Read 59070 times)

vinceducat

  • New Member
  • *
  • Posts: 15
OPC client with Lazarus
« on: July 18, 2010, 06:28:51 pm »
Hi i want to know if someone developpe an OPC client With Lazarus.


felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: OPC client with Lazarus
« Reply #1 on: August 08, 2010, 01:35:54 pm »
What is OPC?

ahmetnurideniz

  • Full Member
  • ***
  • Posts: 110
  • As you sow, you shall reap.
    • Big Student Web Site
Re: OPC client with Lazarus
« Reply #2 on: August 13, 2010, 12:32:01 am »
opc is  device programing on com port or lan port may be plc(programing locig control)
i want to develop it. but i don't know enought freepascal and lazarus programing.
if you use simens plc you can test libnodave components. it has delphi and pascal version. may be it can port for lazarus.

Guzzi

  • Newbie
  • Posts: 1
Re: OPC client with Lazarus
« Reply #3 on: August 07, 2013, 01:56:19 pm »
You will find a OPC Client Tool Kit for Delphi and Lazarus at:
http://www.dopc.kassl.de
It is not free, you have to pay for it.

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: OPC client with Lazarus
« Reply #4 on: August 08, 2013, 09:26:49 am »
There is a lot of free Delphi OPC server/client code here:
http://www.opcconnect.com/delphi.php

Maybe with latest COM/DCOM advances in Lazarus, conversion would be possible with some manual effort. Anyway if you decide to try it then I suggest using SVN Laz+FPC versions.
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

mig-31

  • Sr. Member
  • ****
  • Posts: 305
Re: OPC client with Lazarus
« Reply #5 on: August 08, 2013, 10:41:52 am »
I think it will be better to release server/client for OPC UA. It is multi-platform . Do not need COM/DCOM.
Anyway mostly it better use MODBUS TCP to communicate with PCL and HMI devices. PascalScada project support it.
Lazarus 2.2.6 - OpenSuse Leap 15.4, Mageia 8, CentOS 7

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: OPC client with Lazarus
« Reply #6 on: August 09, 2013, 10:34:45 pm »
I think it will be better to release server/client for OPC UA. It is multi-platform . Do not need COM/DCOM.
OPC UA specification is not free and available only to members. There isn't any free implementation even for Delphi. The day it shows for either Delphi or Lazarus will make me very happy. Till then, OPC DA is quite fine and working with current OPC servers.

Quote
Anyway mostly it better use MODBUS TCP to communicate with PCL and HMI devices. PascalScada project support it.
That is all right if your device is also talking MODBUS. Although MODBUS is one of most widely used protocols there are thousands of others, and if you make your application OPC client instead of just MODBUS client, then you will be able to talk to almost any device (not just ones with MODBUS) since OPC servers exist for virtually all of them.
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

jl

  • Full Member
  • ***
  • Posts: 178
Re: OPC client with Lazarus
« Reply #7 on: July 14, 2015, 08:36:42 am »
It has been 2 years and lots of new solutions are using OPC UA, just want to check with you guys if there's any endeavor on OPC-UA Client along the likes of the opcdelphi project?  Thanks in advance.  :)

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: OPC client with Lazarus
« Reply #8 on: July 27, 2015, 01:24:23 pm »
It has been 2 years and lots of new solutions are using OPC UA, just want to check with you guys if there's any endeavor on OPC-UA Client along the likes of the opcdelphi project?
There isn't FPC/LAZ solution yet. The good thing is that that there is now an open source solution in C at http://open62541.org. The bad thing is that no one with free time seams to be interested enough to convert it into Pascal. There is another C solution at http://www.openopcua.org, but unfortunately author allowed using it only as a library from Pascal - which makes it a worse candidate.
« Last Edit: July 27, 2015, 01:27:20 pm by avra »
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: OPC client with Lazarus
« Reply #9 on: August 17, 2016, 11:43:03 am »
https://sourceforge.net/projects/myopcclient/?source=directory

OPC components now exist for Lazarus, too. Unfortunately GPL.
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

jl

  • Full Member
  • ***
  • Posts: 178
Re: OPC client with Lazarus
« Reply #10 on: August 17, 2016, 11:52:22 am »
https://sourceforge.net/projects/myopcclient/?source=directory

OPC components now exist for Lazarus, too. Unfortunately GPL.


It's only OPC DA, still no UA.

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: OPC client with Lazarus
« Reply #11 on: August 17, 2016, 12:44:16 pm »
It's only OPC DA, still no UA.
I am happy anyway, because I will be able to get rid of D7 in few of my old projects. Unfortunately because of GPL I will not be able to use the component, but since OPCDA headers are not under GPL I can use just them. It will save me some time at least.

UPDATE: Just changed server from Kassl to Matrikon which I had on my dev machine and Test1 demo works.
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

ZbynekZ

  • Newbie
  • Posts: 1
Re: OPC client with Lazarus
« Reply #12 on: September 27, 2016, 10:44:01 pm »
It is possible to develop OPC client in Lazarus with QuickOPC, http://www.quickopc.com. It is a commercial product. For Windows only. Supports OPC DA, OPC A&E, and OPC Unified Architecture (data, and Alarms&Conditions, currently). Some more info: http://kb.quickopc.com/First_experiences_using_QuickOPC_with_Free_Pascal_(Lazarus) .

Disclaimer: This is a self-promotion.
« Last Edit: September 27, 2016, 10:47:01 pm by ZbynekZ »

Daren453

  • Newbie
  • Posts: 3
Re: OPC client with Lazarus
« Reply #13 on: May 10, 2017, 02:24:40 am »
Did you have issues with opcconnect on the encoding? If so can you tell me the work-around?

Thanks,
Daren

LacaK

  • Hero Member
  • *****
  • Posts: 691
Re: OPC client with Lazarus
« Reply #14 on: June 05, 2020, 02:33:24 pm »
I have created pascal wrapper to open source http://open62541.org.
You can look at http://lacak.users.sourceforge.net/ for headers and Windows DLL

There are also implementations of other industrial communication protocols like Modbus TCP or EtherNet/IP

 

TinyPortal © 2005-2018