HMI Pad Forums Old forum Common Support Requests (old) Modbus Character String

This topic contains 1 reply, has 1 voice, and was last updated by  John 6 years, 6 months ago. This post has been viewed 1311 times

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #20031

    John
    Keymaster

      How can I read and display a character string from a Modbus slave that is saved as two chars per word and held as integers ?

      #20032

      John
      Keymaster

        You can use CHAR[n] on column B of your csv, ‘n’ is the number of chars (n chars will use n/2 registers). For example CHAR[10] will read 5 consecutive registers and will represent a string of up to 10 characters. If you find your PLC to swap characters on registers you can set ‘str_byte_swap’ to true in order to get the correct string.

      Viewing 2 posts - 1 through 2 (of 2 total)

      You must be logged in to reply to this topic.

      Copyright © SweetWilliam, S.L 2009-2013. All rights reserved.
      Science and Technology Park of the University of Girona, Emili Grahit, 91 (NarcĂ­s Monturiol building, Office P3-B03) 17003-Girona. Phone +34972183244