From OpenSCADAWiki
Jump to: navigation, search

API of the function of the output requests

API of the function for the output requests (messIO()) operates of exchanging the PDU-blocks, wrapped into the XML-packages, with the following structure:

  • <{prt} id="{sId}" reqTm="{reqTm}" node="{node}" reqTry="{reqTry}">{pdu}</{prt}>
Where:
  • prt — name of the tag with the name of the used variant of the protocol (TCP, RTU or ASCII).
  • sId — identifier of the source of the query. Used for placing to the output protocol report.
  • reqTm — time of the request, that is the time during which the answer is expected, in milliseconds.
  • node — number of the destination node or identifier of the ModBus/TCP unit.
  • reqTry — number of attempts of repeating the request with the error in the answer. Only for ModBus/RTU and ModBus/ASCII.
  • pdu — directly block of the data unit (PDU) of the ModBus protocol.