Reading Data from Input Signals

  • Hi, i am working on communication via tcp/ip i am succesfully sending decomposed position with command BITS, is there any analog of this command? So i could use it to read input signals as a byte array?

  • You can use the BITS function:


    number = BITS(starting_input_number, number of bits)


    For example:


    i.number = 1129

    number_bits = 8


    number = BITS (i.number, number_bits) it will read from 1129 to 1136 (8 signals)

  • Welcome to the forum........:beerchug:

    Not 100% sure what you're asking.

    TCP/IP is a communication protocol which sends/receives character string arrays.


    The usual way of sending/receiving IO data is usually via a fieldbus protocol such as profibus, profinet, ethernet/ip.

Advertising from our partners