Показано с 1 по 3 из 3

Тема: OWEN Communication Library

  1. #1

    Post OWEN Communication Library

    Hi Evgeniy .
    I am Using Owen Communication library 3.5.11.3 with SPK110M01.
    When Using Function block MB_SerialRequest (FB) with RS-485 port, I do not understand tTimeOut timer functionality. Because When Setting tTimeout := T#100ms, function waits 100ms and gives TimeOutError when reading bigger amount of data blocks that need more than 100ms for completing request task(for example 64 bytes, RTU,9600bps) , I think function block must return TimeOutError : If no response returned in 100ms or Function can calculate approximately time to complete tasks by using relativity by uiDataCount with Baudrate that shown on related hCom port. Thanks.

  2. #2
    Супер Модератор Аватар для Евгений Кислов
    Регистрация
    27.01.2015
    Адрес
    Москва
    Сообщений
    12,066

    По умолчанию

    Hi, Zulfiqor.

    Цитата Сообщение от Zulfiqor Посмотреть сообщение
    I think function block must return TimeOutError : If no response returned in 100ms or Function can calculate approximately time to complete tasks by using relativity by uiDataCount with Baudrate that shown on related hCom port. Thanks.
    Modbus specifications says:

    The master is configured by the user to wait for a predetermined timeout interval ( Response time-out) before aborting the transaction.
    This interval is set to be long enough for any slave to respond normally ( unicast request).


    https://www.modbus.org/docs/Modbus_o...line_V1_02.pdf (chapter 2.6)

    Therefore, we do not validate the user-specified timeout in any way.
    This seems pointless, because the response time depends not only from baudrate / data count, but also from the characteristics of a particular slave, which cannot be taken into account in the calculations.

    For your slave device, you can by yourself write a timeout validation function and connect its output to the tTimeout input of our MB_SerialRequest block.

  3. #3

    По умолчанию

    Hi, Evgeniy.
    Thanks for reply.
    I learned modbus specification, and You are right.
    I must change TimeOut parameter for every request individually.
    Thanks.

Похожие темы

  1. Исключение в modbus tcp slave library 1.0.0.6 (owen)
    от Андрей_Б. в разделе СПК1хх [М01]
    Ответов: 12
    Последнее сообщение: 20.04.2022, 16:54
  2. опрос по owen communication
    от Dmitrijb в разделе СПК1хх
    Ответов: 9
    Последнее сообщение: 19.03.2021, 09:55
  3. Ответов: 3
    Последнее сообщение: 04.08.2017, 17:03
  4. ComService.compiled-library
    от GeLeX в разделе СПК2хх
    Ответов: 4
    Последнее сообщение: 30.09.2013, 10:08
  5. ПЛК304 + ModBus.compiled-library
    от Jumo в разделе ПЛК3хх
    Ответов: 20
    Последнее сообщение: 02.12.2011, 13:30

Ваши права

  • Вы не можете создавать новые темы
  • Вы не можете отвечать в темах
  • Вы не можете прикреплять вложения
  • Вы не можете редактировать свои сообщения
  •