• anmpanorama_fish_eye
    33 posts
    6 years ago

    Hello,

    I installed inkcut to windows yesterday, but my Creation PCUT CT-630 isn't working at all. I tried various settings in connection - but no change.

    If I export it to a file, my file from Artcut looks like:
    ;:H A L0 ECN U V10 U80,80 D80,80 D80,100,80,140 U80,140 U896,80 D896,80 D896,100,878,224,899,209,934,217,963,232,976,240,988,252,997,266,1008,277,1015,291,1020,306,1026,322,1028,339,1035,374,1033,414,1031,455,1020,489,1013,503,1006,517,997,529,987,539,965,554,943,564,920,569,896,565,876,561,859,548,845,531,836,512,831,492,823,464,813,425,800,...

    File from inkcut looks like (tried to fill beforeconnection and so on to get best result, but the plotter is not moving):
    ;:H A L0 ECN U V10 U4731,9557 D4589,9418 D4455,9267 D4328,9109 D4209,8945 D3991,8614 D3798,8296 D3644,7997 D3577,7846 D3526,7699 D3503,7616 D3493,7595 D3479,7586 D3358,7697 D3246,7813 D3197,7874 D3154,7937 D3119,8003 D3093,8073 D3074,8132 D3040,8182 D2996,8223 D2946,8254 D2893,8273 D2843,8281 D2799,8278 D2765,8261 D2720,8209 D2681,8155 D2617,8041 D2570,7921 D2534,7796 D2478,7546 D2448,7425 D2411,7309 D1253,7348 D1116,7361 D993,7379 D773,7418 D668,7432 D561,7439 D447,7436 D323,7421 D324,7348 D329,7287 D338,7233 D417,6994 D515,6758 D631,6524 D762,6295 D905,6070 D1058,5850 D1219,5637 D1386,5431 D1433,5379 ....

    I use DMPL Mode 3...

    How can I get my ct-630 to work with inkcut?

    Thanks in advance

    Andi

  • anmpanorama_fish_eye
    33 posts
    6 years ago

    I found out that the plotter uses PL/HT-GL - is there a possibility to communicate with my device?

  • frmdstryrpanorama_fish_eye
    6 years ago

    Most cutters support HPGL and DMPL. Since the commands are the same it seems like a communication problem.

    If you upgrade to the current development version with pip3 install git+https://github.com/codelv/inkcut.git there's a connection monitor tab which you can paste in commands to send. Try sending the artcut output and see if that helps.

  • anmpanorama_fish_eye
    33 posts
    6 years ago

    Thanks for your help, I will try later on. Is there a possibility to set Hardware-Handshake or do I have to set it in System only?

    Do i have to paste output of ArtCut only or is there a special command to send it?

  • frmdstryrpanorama_fish_eye
    6 years ago

    You may need to change the serial port settings (check RTS/CTS for hw flow control), it depends on the device.

    Yes just paste the output

  • anmpanorama_fish_eye
    33 posts
    6 years ago

    I just tried that - no reaction.
    Same Settings as in Artcut - 9600 baud, 8 bits, no parity, 1 stopbit, RTS/CTS. In Artcut "dtr/dsf" is set - what's that?

    It seems to be a connection problem, but what can I do to solve it?

    Thanks!

  • frmdstryrpanorama_fish_eye
    6 years ago

    Ah... that may be it. Inkcut did not have the option to set DSR/DTR (as it wasn't in the original versions of some of the libraries), I just added it.

    Could you update again (with pip3 install git+https://github.com/codelv/inkcut.git) and try with DSR/DTR instead of RTS/CTS?

  • anmpanorama_fish_eye
    33 posts
    6 years ago

    Hello,

    I give it a try - I just sent the HPGL generated File via HTERM to my plotter - it works. So only sending to plotter is the problem!

    EDIT: Does not work also... :(

  • anmpanorama_fish_eye
    33 posts
    6 years ago

    I tried to Emulate COM1 -> COM2 --> I get no traffic on the virtual com port! I only see IN; - and nothing more!

  • frmdstryrpanorama_fish_eye
    6 years ago

    Oh, didn't know this was windows. Could you try downgrading pyserial stackoverflow.com/a/46912536/2362877?

  • anmpanorama_fish_eye
    33 posts
    6 years ago

    downgraded to 2.7 - The 'pyserial>=3.4' distribution was not found and is required by inkcut

  • frmdstryrpanorama_fish_eye
    6 years ago

    Uhhh... I don't get why python does this now.

  • frmdstryrpanorama_fish_eye
    6 years ago

    Sorry, reinstall pyserial (pip install --upgrade pyserial)

    Could you see if there's any errors in the logs?

  • anmpanorama_fish_eye
    33 posts
    6 years ago

    No errors in log...

    After job it says: "QSocketNotifier: Invalid socket specified" (in console)

    see Attachment for log.

    insert_drive_file
    inkcut.txt

    Text, 127.3 KB, uploaded by anm 6 years ago.

  • frmdstryrpanorama_fish_eye
    6 years ago

    Or you can run it directly with python -m inkcut.app which should skip the distribution checks

  • anmpanorama_fish_eye
    33 posts
    6 years ago

    Starts, but on device setup I get the following error:

    TypeError: The 'ports' member on the 'SerialConfig' object must be of type 'list'. Got object of type 'generator' instead.

    And starting job says AttributeError: 'Serial' object has no attribute "_port_handle"

  • anmpanorama_fish_eye
    33 posts
    6 years ago

    It's working with pyserial > 3.1, but there is no output also with version 3.1...

  • frmdstryrpanorama_fish_eye
    6 years ago

    Ok, one hack that may work (if I understand the problem)...

    Find the file "inkcut/device/transports/serialport/plugin.py" (should be in C:\Pythonx.x\site-packges\inkcut or something) and open it with an editor (eg notepad) add a new line at 97 (github.com/codelv/inkcut/blob/master/inkcut/device/transports/serialport/plugin.py#L97) with

                self.connection.write = self.connection._serial.write
    

    Make sure to include the spaces, it has to match the indentation. If that works it's a bug with twisted on windows.

  • anmpanorama_fish_eye
    33 posts
    6 years ago

    Sorry, I did not had time to check - I give it a try now :)

    I get "IN;" only on COM-Interface. Nothing more :(

  • frmdstryrpanorama_fish_eye
    6 years ago

    Not sure why I didn't see this before. Did you change the protocol to DMPL v3 and save it? The log above is showing it's set to HPGL.

  • anmpanorama_fish_eye
    33 posts
    6 years ago

    My plotter works fine with HPGL when I send the file via HTERM.

    I had to swap x/y and mirror y for correct output - but thats no problem.

    Overcut would be great if it would follow the path and not cut into last? direction - in some cases of fonts, it gets a little "step" at the meeting point of beginning and ending of path...

    But I get good results after trying a bit with my plotter!

  • frmdstryrpanorama_fish_eye
    6 years ago

    I'm still not sure why it's not sending.

    Can you create a new thread for the overcut problem? I'll try to reproduce it with my new Stika (i've been using Inkcut with an engraver so it doesn't use these options).

  • anmpanorama_fish_eye
    33 posts
    6 years ago

    I just tried to use offset=5mm, and there is no problem. If I face it again I try to locate the problem, but it seems to work correctly!

    Many thanks for the fast response, I send via HTERM - works great :)

Search
  • Enter search query (at least 3 characters).

Your options