iTools communication with 3rd party devices

I was wondering if it is possible for iTools to read data from a third party temperature sensor and display it alongside the data that is currently being read from my eurotherm devices. I can already read data from this device on labview, it would be convenient to record it through iTools, however.
1 person has
this question
+1
Reply
  • Yes it can.

    In EuroMBus/iTools OPC Server, select the comms port your device is going to be connected to - right-click, select Properties - select the correct comms BAUD rate/etc. Close. Then right-click, select New Device... specify the correct MODBUS address. Then press "OK" at the bottom - this will create an empty device. When right-click on the device, and add folder and tags.

    Finally, remember to save your address space and get EuroMBus to reload it on startup - otherwise it will forget everything.

    Hope that helps.

    Adrian
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. happy, confident, thankful, excited indifferent, undecided, unconcerned kidding, amused, unsure, silly sad, anxious, confused, frustrated

  • Thank you. This was very useful, I was able to find my device and load it but how can I read the individual bytes in each 16 byte packet received. Byte 9 and 10 correspond to the temperature by the following formula:

    Temperature (F) = (byte 9 * 256) + byte 10

    I'm fairly new to this software to please excuse my naivete.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. happy, confident, thankful, excited indifferent, undecided, unconcerned kidding, amused, unsure, silly sad, anxious, confused, frustrated

  • Some background regarding MODBUS communications...

    MODBUS communicates using "Registers", where 1 MODBUS register is equivalent to 2 bytes of data (total of 16 bits).

    So if you read from (for example) MODBUS register address 10, and read 8 MODBUS registers (16 bytes), you can also read sub-parts by using a different MODBUS register address. So reading MODBUS register address 14 and 1 MODBUS register will read bytes 8 and 9 of the original message.

    So in your case, I believe all you need to do is read the appropriate MODBUS register to extract the bytes you need.

    You might need to examine your sensor's communications manual to determine the exact MODBUS register address to read.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. happy, confident, thankful, excited indifferent, undecided, unconcerned kidding, amused, unsure, silly sad, anxious, confused, frustrated

  • So I've taken some time to learn about MODBUS protocol and I've come to the conclusion that I would need a MODBUS device to communicate to iTools. The sensor I am using does not communicate using MODBUS protocol so I am guessing I cannot connect this device to iTools to log data.

    Is this assumption correct?
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. happy, confident, thankful, excited indifferent, undecided, unconcerned kidding, amused, unsure, silly sad, anxious, confused, frustrated

  • You are correct - the iTools OPC Server only supports MODBUS protocol, and cannot handle none-MODBUS protocols.

    If the device is simple serial, then I suggest you investigate Python's PySerial library. Something like:

    ser = serial.Serial()
    ser.port = "\\.\COM2"
    ser.baudrate = 9600
    ser.open()
    ser.flushInput()
    data = ser.read(size=1)

    Hope that helps.

    Adrian
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. happy, confident, thankful, excited indifferent, undecided, unconcerned kidding, amused, unsure, silly sad, anxious, confused, frustrated