Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2011-04

New to freepascal and how to translate my delphi program.

6 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

P. vanderWal

I am new to free pascal, but have some experience with delphi. I wrote a program to control a milling machine (Elektor Profiler, see elektor.nl/ forum program Doit). The program is written in delphi-7 ( about 25.000 lines in 20 modules) and runs on MS-Xp. But as MS changes to much in its os's I want to change to linux as os. The program uses 2 I/O-ports (serial or usb-serial) and here I have a problem in translating my program into free-pascal. I think the forms and screen layouts present no problem, it will take a lot of re-typing but oke.

The serial-port problem is my main worry as the programflow depends heavely on the communication with the milling machine.

My question is: where do I find lib's with serial-port or usb-port routines which I may use to control the communication-lines (bits) to the milling machine.

Thanks in advance,

Piet van der Wal (PE0PWA).

Jeppe Johansen
to P. vanderWal

I think the synaser unit(from Synapse) is a very solid unit for crossplatform serial port access

P. vanderWal wrote 22 lines
I am new to free pascal, but have some experience with delphi. I wrote a program to control a milling machine (Elektor Profiler, see elektor.nl/ forum program Doit). The program is written in delphi-7 ( about 25.000 lines in 20 modules) and runs on MS-Xp. But as MS changes to much in its os's I want to change to linux as os. The program uses 2 I/O-ports (serial or usb-serial) and here I have a problem in translating my program into free-pascal. I think the forms and screen layouts present no problem, it will take a lot of re-typing but oke. The serial-port problem is my main worry as the programflow depends heavely on the communication with the milling machine. My question is: where do I find lib's with serial-port or usb-port routines which I may use to control the communication-lines (bits) to the milling machine. Thanks in advance, Piet van der Wal (PE0PWA). _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Felipe Monteiro de Carvalho
to P. vanderWal: I am new to free pascal, but have some experience with delphi. I wrote a program to…

Hello,

I have already written such a program and I used the Pascal unit provided by FTTI, because I was using FTTI's USB component: http://wiki.lazarus.freepascal.org/Hardware_Access#FTDI

For serial I would probably use Synaser:
http://wiki.lazarus.freepascal.org/Hardware_Access#Serial_Communication

You might also be interrested in knowing that fpvectorial, a library to read/modify/write vectorial images, exists:
http://wiki.lazarus.freepascal.org/fpvectorial

I used it in my program to read PDF files (generated by CorelDraw) and convert them to g-code.

Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho
to Marcos Douglas
Marcos Douglas wrote
Like read the text of PDF files?

No, vectorial drawings. PDF can hold raster images, vectorial drawings and/or rich text.

In CorelDraw in the dialog to export to PDF there is an option "Convert text to vectors", that's what we used.

Felipe Monteiro de Carvalho
Marcos Douglas
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 8 lines
On Mon, Apr 18, 2011 at 2:45 PM, Marcos Douglas wrote: > Like read the text of PDF files? No, vectorial drawings. PDF can hold raster images, vectorial drawings and/or rich text. In CorelDraw in the dialog to export to PDF there is an option "Convert text to vectors", that's what we used.

Oh, OK... thanks.

Marcos Douglas