Serial Port Transmission problems

program: ASPAN, TASK

There are two different ways to send part-programs directly to the NC from ASPAN/TASK.
They are switched automatically.

  • ASPAN/TASK internal Kermit protocol.
  • Columbia University Kermit.exe (DOS version).

If ASPAN finds kermit.exe program in C:\ASPAN4 (or if TASK finds kermit.exe program in C:\TASK3) the Columbia University Kermit.exe is Run, elsewhere the internal Kermit is Run.
Starting from Aspan 4.62 the Kermit95 program can be used too.
You can identify which is the protocol (ATool Software or Columbia University) looking at the screen:

  • if the ASPAN/TASK internal Kermit protocol is used you will see a color "DOS-style window";
  • if the Columbia University Kermit protocol is used you will see a typical black&white DOS screen.

Transmission of Lists:
TASK can not send Lists. ASPAN can be used to send lists:
From the supervisor Machine -> Utility -> RTX.
If you experience problems while transmitting part programs to Tria N.C., please verify the following steps:

    1. You need a serial cable with connections as follows:

      Cable: PC <-> Tria (null-modem,
      3 wires,
      PC side shorted)

      Wiring diagram for the serial cable between the PC and the TRIA.

       

      PC side (female connector) <------> TRIA (ESA) side
      DB9 DB25 name link name DB25 DB9
      3 2 TxD <----> RxD 3 2
      2 3 RxD <----> TxD 2 3
      7
      8
      4
      5
      RTS
      CTS
      <-|
      <-|
           
      6
      4
      6
      20
      DSR
      DTR
      <-|
      <-|
           
      5 7 GND <----> GND 7 5

       

      Wiring note at PC side:

      Between the two connectors: 2-3, 3-2, 7-7
      Shorts for the PC-side connector: 4-5, 6-20

      Important note:
      for best results, the cable should be shielded with "low reactive capacitance" (i.e. a good quality shielded cable).
      You should use a three wires + shield cable. The three wires (Rx, Tx, and GND) must be connected to the indicated connector pins.
      The cable shield should be connected to the serial connector shield (casing earth) of the two connectors (DB25 and/or DB9).
      Please note that shielded cables are not cheap and they can not be used for long cables due to their "reactive capacitance" that loads the RS232 drivers. Shielded cables are of great help in noisy environments (from the electrical point of view) if limiting the cable length to 10..20 meters/yards.

    2. Use a small baud rate (I suggest 1200 baud) and a short cable (less than 10 yards/meters) until you get successful. In any case, we recommend to keep the cable as short as possible and the baud-rate as low as possible.
      Please note that transmitting at 2400 without errors is quicker than transmitting at 9600 with errors.
    3. Verify that PC/TRIA communication parameters match.
      1. From ASPAN/TASK side you will find them in
        Machine->Utility->Serial Port
        A typical configuration is:
        Port COM2 (or the port available on your PC)
        Baud Rate 4800 (we do not suggest a higher speed)
        Parity NONE
        Data Bit 8
        Stop Bit 1
        HandShake Xon/Xoff
        Protocol Kermit
        Transmitter internal

        Premendo OK verra' scritto il file mskermit.ini;
        vedi paragrafo 3.2 per piu' dettagli su questo file o salta al 3.3 per i settaggi del TRIA.

      2. Questo paragrafo contiene informazioni dettagliate sul file mskermit.ini (il file di configurazione per la comunicazione); 
        si trova nel direttorio della configurazione macchina:
        • cioe', se ASPAN e' installato in C:\ASPAN4 e la configurazione macchina e' AUT504:
          C:\ASPAN4\p2cfg\AUT504\mskermit.ini
        • cioe', se TASK e' installato in C:\TASK3 e la configurazione macchina e' TECH90S:
          C:\TASK3\p2cfg\TECH90S\mskermit.ini

        Il file mskermit.ini e' di tipo ASCII, ma di solito non e' necessario editarlo.
        Solitamente il file si presenta cosi':

        ;* 
        ;* Written by TASK 3.52 p1
        ;* 
        ;* Warning: be sure that the following parameters
        ;*are the same in the N.C. machine.
        ;*
        Set Port COM2
        set terminal VT102
        Set Baud 9600
        Set Parity NONE
        set block-check-type 1
        set warning on
        set incomplete discard
        set send timeout 1
        set send packet-length 90
        Set send padding 0
        Set send padchar 0
        Set send start-of-packet 1
        set end-of-line 13 
        set receive timeout 1
        set receive packet-length 90
        Set receive padding 0
        Set receive padchar 0
        Set receive start-of-packet 1
        Set flow-control Xon/Xoff
        Set send end-of-packet 13
        Set receive end-of-packet 13
        cd D:\TASK.352\P2PART\TECH90S

        Questo file viene creato o aggiornato da ASPAN/TASK (vedi paragrafo 3.1).

      3. 3.3) Dal lato TRIA i parametri di comunicazione DEVONO essere gli stessi di ASPAN/TASK.
        Vi sono due menu' che devono essere modificati. La posizione dei menu' dipende dalla versione del TRIA.
        Alcuni esempi:
        • TRIA 3.10 =>
          - Services->Serial Line->Communication Setup (kermset.dat)
          - Services->Enter Password: (normally MORBI), Services->Setup Menu->Port Setup (setport.dat)
        • TRIA 2.61 => 
          - Archives->Serial Line->Communication Setup (kermset.dat) 
          - Services->Enter Password: (normally MORBI), Services->Setup Menu->Port Setup (setport.dat)

        NOTA: si DEVE impostare la giusta velocita' e Parita' in entrambi i menu', o la comunicazione non funzionera'!.
        Configurazione tipica per SETPORT:

        /-----------------------\ 
        |       SETPORT:        | 
        |-----------------------|
        |      Device: COM1     | 
        |     Baud Rate: 4800   |
        |      Parity: NONE     |
        |  Character length: 8  |
        |      Stop bits: 1     |
        |    Control bit:DISA   |
        \-----------------------/

        Tipica configurazione per KERMSET.DAT:

        /-----------------------------------------------------------\ 
        |                        KERMSET.DAT                        |
        |-----------------------------------------------------------|
        |Baud rate:4800                 Parity: NONE                |
        |TX Timeout: 1                  RX Timeout: 1               |
        |N. of TX PADDING chars: 0      N. of RX PADDING chars: 0   |
        |Rx block length: 60            Tx block length: 60         |
        |BLOCK CHECK type: 1            8-bits char prefix: 33      |
        |Char repetition prefix: 126    Convert existing names: 0   |
        |Save incomplete files: 0       Serial line: COM1           |
        |TX PADDING character: 127      RX PADDING character: 127   |
        |TX START character: 0          RX START character: 0       |
        |TX END character: 13           RX END character: 13        |
        |Host: 1                                                    | 
        \-----------------------------------------------------------/
    4. Ora i parametri della comunicazione sono impostati, se può scegliere se usare il protocollo Kermit interno di ASPAN/TASK o il programma kermit.exe o Kermit95 della Columbia University (Kermit95 è disponibile a partire da ASPAN 4.62/TASK 3.52).
      Se ASPAN trova il programma kermit.exe in C:\ASPAN4 (o seTASK in C:\ TASK3, o dove ASPAN/TASK è stato installato) viene eseguito il Kermit.exe della Columbia Università, altrimenti viene eseguito il Kermit interno.
      Per ASPAN 4.62/TASK 3.52: se si seleziona "Trasmettitore: esterno" e poi "Kermit95," viene eseguito il Kermit95.
      Il Kermit 95 della Columbia Università deve essere installato sul PC.
    5. Trasmissione senza kermit.exe.
      Chiudere qualsiasi "Finestra DOS" prima di tentare di comunicare.
      Questo e' necessario per liberare la porta seriale.
      5.1) Spedire il part-program da dentro ASPAN/TASK: apparira' la finestra di trasmissione di ASPAN/TASK.
      Se appare l'errore P1310 significa che e' avvenuto un errore generico di trasmissione, e questo messaggio non sara' di aiuto per scoprirne le cause.
    6. Trasmissione senza kermit.exe
      Se si continuano ad avere problemi con il kermit interno AutoSoftware, utilizzare la versione DOS del Kermit.exe della Columbia University: e' disponibile gratuitamente;
      Attualmente si adopera la versione 3.10. Talvolta e' incluso nel software TRIA-PC.
      Copiare kermit.exe in C:\ASPAN4 per ASPAN (o dove ASPAN e' installato) o in C:\TASK3 per TASK (o dove TASK e' installato).
      E' possibile anche trovarlo in: http://www.columbia.edu/kermit
      • Scaricarlo
      • copiarlo nel direttorio ASPAN/TASK: tipicamente C:\Aspan4 per Aspan or C:\Task3 per Task
      • Chiudere qualsiasi "Finestra DOS" prima di tentare di comunicare. Questo e' necessario per liberare la porta seriale.
      • Spedire il part-program da dentro ASPAN/TASK: apparira' lo schermo del kermit.
      • Verificare che i parametri di comunicazione del Kermit corrispondano con quelli del TRIA.
        Per far cio' agire come segue (i comandi sono racchiusi da "", non e' necessario editarli o scriverli).
        • Scrivere "status" per vedere i parametri del kermit.
        • Impostare la porta seriale COM1: (o COM2: a secondo del vostro PC):
          "set port com1" o "set port com2".
          Se appare il messaggio "this port will be operated through the Bios as BIOS1" significa che la porta indicata non e' disponibile.
        • Se e' necessario cambiare la velocita' (Baud-Rate), esempio 1200 baud: "set speed 1200"
        • "set handshake none"
        • "set parity none"
        • "set flow xon/xoff"
        • Verificare che: Start-Of-packet-Char S: ^A R: ^A
        • Verificare che: End-Of-packet-Char S: ^M R: ^M
        • Verificare che il TRIA ha gli stessi parametri.
        • Mettere il TRIA in modo server.
        • Spedire il part-program (esempio TEST.PGM): "Send test.pgm"
        • "quit" per uscire da Kermit.

 

  1. Trasmissione con kermit95.exe.
    Dal supervisore di ASPAN/TASK selezionare: Machine->Utility->Serial Port
    Scegliere trasmettitore: Esterno and premere il bottone "Set".
    Tipo di trasmettitore esterno: Kermit 95
    Impostare il percorso esatto per il programma Kermit 95 K95.exe.
    Lasciare vuoti i parametri da passare sulla linea comandi.
    Confermare.
    Si possono provare i parametri di comunicazione come di seguito
    1. Spedire il part-program da dentro ASPAN/TASK: apparira' lo schermo del kermit. Verificare che i parametri di comunicazione del Kermit corrispondano con quelli del TRIA.
      Per far cio' agire come segue (i comandi sono racchiusi da "", non e' necessario editarli o scriverli).
    2. Scrivere "show communications" per vedere i parametri di Kermit
    3. Impostare la porta seriale COM1: (o COM2: a secondo del vostro PC):
      • "set mskermit keycode"
      • "Set port com1"
      • "set speed 1200"
      • "set handshake none"
      • "set parity none"
      • "set flow-control xon/xoff"
    4. Verificare che: Start-Of-packet-Char S: ^A R: ^A
    5. Verificare che: End-Of-packet-Char S: ^M R: ^M
    6. Verificare che il TRIA ha gli stessi parametri.
    7. Mettere il TRIA in modo server.
    8. Spedire il part-program (esempio TEST.PGM): "Send test.pgm"
    9. quot;quit" per uscire da Kermit.

Vedere anche La porta seriale non funziona ancora

Read 1729 times
More in this category: « Serial Port still doesn't work