Results 1 to 9 of 9

Thread: Transfer commands to plotter(LPT)

  1. #1

    Transfer commands to plotter(LPT)

    I've just gotten a plotter which was about to get scrapped. it came with a old(!) computer which contained autocad 3.1 which was used to draw and plot the drawing to the plotter.

    Now i've found out that this plotter uses hpgl to plot and i read up on it. now i think i could write a delphi application that would be a little easier to use than this old pile of **** that the plotter came with. i can generate the code in a propper way that the plotter understands but then:

    How do i send all this information to the plotter?
    it's just plain text that i generate.. do anybody know anything on this "Language" hpgl?

    regards Jeppe
    ps. i don't know if my explaination was proper but i didn't have much time to write this..
    Peregrinus, expectavi pedes meos in cymbalis
    Nullus norvegicorum sole urinat

  2. #2

    Transfer commands to plotter(LPT)

    is figured out!
    Peregrinus, expectavi pedes meos in cymbalis
    Nullus norvegicorum sole urinat

  3. #3

    Transfer commands to plotter(LPT)

    Quote Originally Posted by JSoftware
    is figured out!
    How did you do that ?
    If you save your data in a proprietary format, the owner of the format owns your data.
    <br /><A href="http://msx80.blogspot.com">http://msx80.blogspot.com</A>

  4. #4
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    Transfer commands to plotter(LPT)

    Nice Job!

    Maybe you could tell us the results? Someone else down the road might benifit from it... maybe...?
    Jason McMillen
    Pascal Game Development
    Co-Founder





  5. #5

    Transfer commands to plotter(LPT)

    i forgot an old friend of mine who was in the possion of the answer... (*cough*google*cough*) ops:

    [pascal]
    var f: textfile;
    begin
    assignprn(f);
    rewrite(f);
    writeln(f,'IN;PD;PA10,10;PU;');
    closefile(f);
    end;
    [/pascal]

    now i just need to find out why it doesn't work.. it transfers the commands properly but the plotter won't understand it.. atleast i think so. do you know if i could need some sort of string terminator?

    Regards
    Jeppe
    Peregrinus, expectavi pedes meos in cymbalis
    Nullus norvegicorum sole urinat

  6. #6

    Transfer commands to plotter(LPT)

    does that still work in Windows 2000/XP ?

    The reason I ask is that Win2000/XP is very grumpy when it comes to ports!
    Do it by the book, but be the author!
    <br />
    <br />Visit the Lion Productions website at:
    <br />http://lionprod.f2o.org

  7. #7
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    Transfer commands to plotter(LPT)

    Quote Originally Posted by TheLion
    The reason I ask is that Win2000/XP is very grumpy when it comes to ports!
    Oh a nice little library called 'ZLPortIO' can help with that. Not sure about the website... jsut google for it.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  8. #8

    Transfer commands to plotter(LPT)

    Quote Originally Posted by TheLion
    does that still work in Windows 2000/XP ?

    The reason I ask is that Win2000/XP is very grumpy when it comes to ports!
    if you add Printers to your uses clause then it's possible

    Regards
    Jeppe
    Peregrinus, expectavi pedes meos in cymbalis
    Nullus norvegicorum sole urinat

  9. #9

    Transfer commands to plotter(LPT)

    Nice, i also used ZLPortIO for hardware access, it's an excellent fast and easy-to-use library that uses an extremly small .sys file for NT+ systems, you can access any hardware resource with it.
    The future must be... Fast and OpenSource so...
    <br />Think Open and Lightning Fast!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •