Hi!
I’m glad to announce the new snapshot of PascalSCADA, released today.
This new version contains the bug fixes of the last year and new features, of which SVG-based controls stand out. Yes, vector controls, based on files generated by Inkscape, due to support added to vectors by the BGRABitmap library. It has some bugs (mainly drawing paths, such as lines and polygons), but it is a resource with a promising future. Soon as possible, I’ll write a small guide teaching how use this new feature.
You can download the new snapshot here. To install, just follow the instructions listed here.
Hello,
i already download latest PascalScada snapshot (pascalscada_0.7.3_20160726.tar.bz2).
i try to build it on Delphi 2010 and it’s failed.
some error found.
– collections in ‘src\common\collections.pas’, collecions.pas is missing)
– in Tag.pas
{$IFNDEF CONSOLEPASCALSCADA}
Application.RemoveAsyncCalls(Self);
{$ENDIF}
getting result
[DCC Error] tag.pas(970): E2003 Undeclared identifier: ‘Application’
– in Tag.pas
function TTag.IndexOf(List: TTagNotificationList; aHandler: TNotifyEvent
): Integer;
var
c: Integer;
begin
if aHandlernil then
for c:=0 to High(List) do begin
if (TMethod(List[c]).Code=TMethod(aHandler).Code) and (TMethod(List[c]).Data=TMethod(aHandler).Data) then begin
Result:=c;
exit;
end;
end;
Result:=-1;
end;
getting result
[DCC Error] tag.pas(978): E2035 Not enough actual parameters
– TFormatDateTimeOptions
[DCC Error] protocoltypes.pas(262): E2003 Undeclared identifier: ‘TFormatDateTimeOptions’
– TTagList = specialize TFPGList;
[DCC Error] protocoldriver.pas(30): E2003 Undeclared identifier: ‘specialize’
[DCC Error] protocoldriver.pas(30): E1030 Invalid compiler directive: ‘TFPGList’
maybe more error will found
just courious how to build it in Delphi 2010 … can you help me ? because i very very love this pascal scada.
Thanks
Regards.
Hi Mr Alkatiri
Delphi support on latest PascalSCADA versions are missing, because I don’t have much time to test it on Delphi and because Lazarus is my default IDE on last years.
Patches are another point: Delphi users don’t send patches of their changes. Feedback of Delphi users is very poor.
The last point is that the last PascalSCADA versions uses more and more features of Lazarus and freepascal, becoming hard to make it functional on Delphi. Examples of this are the fgl unit (generics) and BGRABitmap.
But, if want make some patches to get PascalSCADA working on Delphi, please contact me.
(Sorry by the reply in parts, I losed my reply text 3 times this this morning)
Hi Fabio,
I’d like to make PascalSCADA usable for Delphi Tokyo… but as Husin pointed out, collections.pas file is missing. It’s not even in the tar.bz2…
It’s disappointing, because it look pretty cool and I wanted to give it a try, I’m actually using Kassl dOPC Client Toolkit for Delphi, but there aren’t demos like yours.
Thank you.
Hi David!
Will be harder to port PascalSCADA in the current state to make it work again with Delphi, since I used many features that only exists in FreePascal. An example is the keyword “specialize” used together with generics, that I don’t know if it exists in Delphi, and I use it a lot.
About unit collections.pas, I suspect that it’s (again) a unit of Lazarus/Freepascal, or in the previous versions of PascalSCADA it’s a copy of Lazarus/Freepascal collections.pas unit.
If you want, I can help you with errors that happens while you are porting it to Delphi. If you will do that, I recommend starts by pascalscada.lpk and pascalscada_common.lpk, since pascalscada_hmi have some dependencies (BGRABitmap and BGRAControls that aren’t created and maintained by me).
Hi Fabio, Would you test in Delphi XE again for pascalscada, and update again for the scada component.
Because much my last project with pascalscada with delphi 7 and now I will upgrade in delphi XE.
Thanks.
Hi @Rudi!
The last version of PascalSCADA will not work on Delphi because of the heavy dependency of BGRABitmap and FreePascal Generics. Even if I cut off some features will not make it works on Delphi XE.
But I’ll try again soon.
Yes Fabio thanks.
Maybe you can create different version for delphi and FreePascal. we just need Pascal Protocol, PascalPort, PascalTags, Pascal HCI and Zeos Connection. That is very usefull.
And maybe you can add again Pascal HMI for HMI button.
Hello
I tried to compile the latest version of Pascal scada on Lazarus 1.8.0 (from your DEB) with Linux operating system.
I receive this error and I can not solve:
bgratext.pas(361,30) Error: Identifier not found “lpNoGUI”
How can I solve?
Thank you
Hi Francesco!
Whats PascalSCADA version you are using?
The simplest way to resolve this is updating the BGRABitmap/BGRAControls that together with PascalSCADA, or use the OPM:
http://www.pascalscada.com/2017/04/04/pascalscada-on-opm-repository/
Hello Fabio,
thanks for pascalscada,
however I have troubles using latest stable fpc+lazarus (3.04, 18.2):
– using forms with components works fine
– using a console app, with components dropped into a tdatamodule, they don’t works
I’m using directly the methods .READ and .WRITEDIRECT, setting the mem address, size, and data type at runtime
Can you suggest me a solution?
Best regards
Can you provide a example that reproduce this?
I uploaded a small example, communicating with a ModBus TCP Simulator.
Take a look:
https://sourceforge.net/p/pascalscada/code/HEAD/tree/trunk/examples/laz_console_app/
You should put a CheckSynchronize(1) on your console program loop, to ensure that TThread.synchronize will be received by the main program loop.