Vai al contenuto

FreeProtocol macro communication, INPORT buffer limit

Home Forum Terminali operatore (Weintek) FreeProtocol macro communication, INPORT buffer limit

Stai visualizzando 2 post - dal 1 a 2 (di 2 totali)
  • Autore
    Post
  • #66706
    CarlCarls
    Partecipante

    I try to use FreeProtocol to recieve some bytes, but limit with INPORT function is 1024 bytes. Recieve bytes in packet are over this limit (for example 1500 bytes).

    I heard about INPORT3 (Discription: Recieved but unread data will be stored in device buffer until next reading command command. The space of data buffer is 1024 bytes). Function INPORT cuts recieved bytes in 1024 bytes.

    How can i use this device buffer to read left bytes? What means INPORT3? Any real examples to use INPORT3?

    #66725
    Sergio Bertana
    Amministratore del forum

    Unfortunately the INPORT and INPORT3 have the same limit of 1024 bytes. If the TCP packet is longer than the limit the exceeding bytes are lost.

    I’ve no suggestions how to solve your problem to receive long packets with the Weintek terminal.

    Just for your informations we manufacture a programmable devices (PLC) that can easily manage TCP communications and probably can be used to solve the problem. For example the MPS056 can be used.

    By using the SysTCPServer and SysTCPClient you can manage TCP connection, in the programming manual you can find all the available program object

Stai visualizzando 2 post - dal 1 a 2 (di 2 totali)
  • Devi essere connesso per rispondere a questo topic.