try stuff?

modpoll -b 4800 # Baudrate -p none # No parity -a 1 # Slave address (1-255 for serial, 0-255 for TCP, 1 is d +efault -r 13 # Start reference (1-65536, 1 is default) -c 1 # Number of values to read (1-125, 1 is default), option +al for writ ing (use -c 1 to force FC5 or FC6) /dev/ttyUSB0

so

my $client = Device::Modbus::RTU::Client->new( port => '/dev/ttyUSB0', baudrate => 4800, parity => 'none', ); my $req = $client->read_holding_registers( address => 1, # -r quantity => 1, #-c ); $client->send_request($req); my $resp = $client->receive_response;

https://grep.metacpan.org/search?q=start&qd=Device-Modbus&qft=

https://metacpan.org/release/JFRAIRE/Device-Modbus-RTU-0.022/source/examples/simple_client_rtu.pl


In reply to Re: How to talk with my RS485 Modbus devices by Anonymous Monk
in thread How to talk with my RS485 Modbus devices by founder

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.